These forums are locked and archived, but all topics have been migrated to the new forum. You can search for this topic on the new forum: Search for Postfix equivalent of etc/remotedomains and etc/localdomains in exim on the new forum.
I've been moving my domains over from a server that uses Exim. With Exim, if you have a domain for which the server is the Web server but NOT the email server you put the name of the domain in /etc/remotedomains and take it out of etc/localdomains. In this way the EXIM server knows not to deliver email from someone on the same server but rather to send it out to the Internet.
What would be the method of doing this in Postfix?
One of my domains uses Google apps for email but sends out email from Dadamail based on the server. Currently this means confirmation emails are getting stuck in an account on the server rather than being sent out to the Web (and ultimately finding Google)
Howdy,
With Exim, if you have a domain for which the server is the Web server but NOT the email server you put the name of the domain in /etc/remotedomains and take it out of etc/localdomains. In this way the EXIM server knows not to deliver email from someone on the same server but rather to send it out to the Internet.
Well, you may need to get more of an Exim guy to help, but so far as I know, you wouldn't want to do anything with Postfix in that case. Either Postfix delivers emails locally, or it doesn't.
If Postfix is setup to accept email for a given domain, it happily does so... and otherwise, looks up the MX record to deliver it remotely.
In the case of Virtualmin -- what it sounds like you'd want to do make sure the "Mail for Domain" feature isn't enabled for that particular Virtual Server. You can still send email, but Postfix will no longer be configured to attempt to receive email.
-Eric
It looks like you nailed it! Thanks. I noticed that if I had still had an email on the domain, e.g. email@domain.com that when DadaMail sent an email from domain.com to email@domain.com it still stayed on the local server even though "Mail for Domain" feature was disabled. Once I deleted the email@domain.com account from the server that DadaMail sits on, email was delivered to email@domain.com at Google apps correctly. Thanks again.
Super, glad to hear it's working, thanks for the update!
-Eric