Postfix ignoring MX record

2 posts / 0 new
Last post
#1 Wed, 05/18/2011 - 19:03
synergos

Postfix ignoring MX record

I created a domain under virtualmin, modified the DNS MX records to point to existing mail server. When sending mail from a php form it was bouncing with an unknown user error.

I turned off mail for the domain and attempted to configure postfix by removing any mention of the domain, but it is still not working.

The form correctly delivers mail to other domains, i.e. gmail, etc., but it does not deliver any mail addressed to the servers virtual host domain.

There is only one domain on this server for www, ftp, etc., but the mail server is located elsewhere.

Server is RHEL 5, Virtualmin 3.84 Pro

-Jeff

Wed, 05/18/2011 - 20:05
andreychek

Howdy,

Yeah, having Mail for Domain enabled can certainly cause what you're seeing.

Occasionally, even after disabling that option, a rogue entry can find it's way into the /etc/postfix/virtual file. You may want to make sure no entries for that domain name exist in that file.

If there are any, remove them, and run "postmap /etc/postfix/virtual".

Also, you may also want to verify that you're server is seeing the correct MX records... to do that, run this command while logged into your server:

host -t MX your_domain.tld

-Eric

Topic locked