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 ignoring MX record on the new forum.
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
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