Postfix equivalent of etc/remotedomains and etc/localdomains in exim

4 posts / 0 new
Last post
#1 Thu, 03/18/2010 - 21:20
martynw

Postfix equivalent of etc/remotedomains and etc/localdomains in exim

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)

Thu, 03/18/2010 - 21:27
andreychek

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

Fri, 03/19/2010 - 08:51
martynw

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.

Fri, 03/19/2010 - 09:19
andreychek

Super, glad to hear it's working, thanks for the update!

-Eric

Topic locked