On 2010-09-09 12:50, Richard Chapman wrote:
postfix 2.3.3 under centos 5.5
I have had this postfix server running fine for ages with:
mydestination = $myhostname, localhost.$mydomain, $mydomain
With this setting it receives mail addressed to
validu...@aardvark.com.au and validu...@c5.aardvark.com.au.
I want to restrict this server to receive only mail addressed to its
host name which is: c5.aardvark.com.au
However - as soon as I set:
mydestination = $myhostname, localhost.$mydomain
The server doesn't seem to receive mail addressed to that address. In
diagnosing the problem - I have been assuming that there is something
wrong with the way myhostname has been defined so I have also added:
myhostname = c5.aardvark.com.au
But still no joy. Mail addressed to validu...@c5.aardvark.com.au
(using the c5.aardvark... server as the clients SMTP server) seems to
be sent to the server servicing the remainder of the aardvark.com.au
domain.
I can't figure out what the problem is here nor how to diagnose it any
further. Any suggestions welcome.
c5.aardvark.com.au has both a CNAME and MX pointing to
c5-aardvark.dyndns.biz. I think it is not valid to specify any records
next to a CNAME. c5-aardvark.dyndns.biz has no MX record, I recommend
adding it (I prefer explicit MX over implicit A-as-MX). If you have
recently altered your DNS records, some servers may still be serving old
records. This may not be the cause of your issue, but it is still a good
idea to make sure DNS records are all valid.
Please include logs of a test message that is going to the wrong place.
Do you have any settings that might rewrite addresses, alter next-hop
decision, etc.? Have you tried delivery via other SMTP servers (e.g.
with a free webmail) and to different valid users?