flamewalker
Verified User
- Joined
- Aug 21, 2007
- Messages
- 64
Hello,
I am attempting to setup a second VPS with Directadmin as a backup MX server in case our main server goes down (it's been having a lot of problems lately!).
My thoughts are setting up rsync to synchronize the local domains and users to the backup server, say maybe every hour, or 15 minutes or so. In order to make that work, can I just rsync the entire /etc/virtual directory and restart exim? Or would I need to set up a script to only sync certain files?
I'm not worried about authentication at all as it will not be used for sending email, I just need exim to accept, spam-scan and relay the mail to our main server when it is up, or queue it if the main server is down, and push it once it is back up. No local delivery should happen either.
Also, I could use some pointers for the smarthost director: (this is what I currently have on the backup server)
I also have on the main mail server:
I've been searching for a while and can't find the exact situation I need. Any help/advice is much appreciated.
Thanks,
flamewalker
I am attempting to setup a second VPS with Directadmin as a backup MX server in case our main server goes down (it's been having a lot of problems lately!).
My thoughts are setting up rsync to synchronize the local domains and users to the backup server, say maybe every hour, or 15 minutes or so. In order to make that work, can I just rsync the entire /etc/virtual directory and restart exim? Or would I need to set up a script to only sync certain files?
I'm not worried about authentication at all as it will not be used for sending email, I just need exim to accept, spam-scan and relay the mail to our main server when it is up, or queue it if the main server is down, and push it once it is back up. No local delivery should happen either.
Also, I could use some pointers for the smarthost director: (this is what I currently have on the backup server)
Code:
smarthost:
driver = manualroute
domains = ! +local_domains
ignore_target_hosts = 127.0.0.0/8
condition = "${perl{check_limits}}"
route_list = !+local_domains 69.73.142.47
#route_data = "69.73.142.47"
transport = remote_smtp
I also have on the main mail server:
Code:
hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts : 127.0.0.1 : 209.140.19.66
I've been searching for a while and can't find the exact situation I need. Any help/advice is much appreciated.
Thanks,
flamewalker