Remote Email Stuff

Marshall

Verified User
Joined
Nov 1, 2004
Messages
148
Location
California
I think it would be nice to have e-mail settings transfer setup in the same way that DNS is now. Another checkbox in the Multi Server Setup that would transfer over new domains added to the /etc/virtual/domains file and setup folders/passwd files as they are created/changed on the other server. This would make it a lot easier to setup remote MX gateways as we can use the (relatively) same exim.conf and just change how it handles the delivery from local to remote. All the checks for domains and user existing would apply as all the files it checks are on that server.

If not that, just an email_create_post.sh script add-on for people to use that will be called whenever: a) a new domain is created and it's emails are setup, b) a new email is added, c) an email is modified on the server (such as password), d) a new forwarder is setup, etc. That would make it easier to handle instead of running a cron script every minute to look for differences and, if found, scp to new server as it would only be called when email is added/changed.

Anyone else share similar thoughts on this?
 
Also, using the former method where it will auto update external servers from directadmin in the same way it does DNS, it would need to call from a different file than /etc/virtual/domains. That file will have the domain removed from it if you un check to use the main server as the mail server, but the domain will need to remain on the external MX server it updates. Maybe it can keep a list of all domains on that server someplace else and add them all to the external MX server, or allow the admin to pick and choose which domains will be sent to the external server from a list of domains on the current server with the default being to add it on creation.
 
Back
Top