[CentOS] Not receiving root mail
Marc Deop i Argemí
damnshock at gmail.com
Mon Aug 22 14:05:24 UTC 2011
On 22/08/2011 15:29, Anne Wilson wrote:
> On Monday 22 Aug 2011 13:12:54 Always Learning wrote:
>> Once your email is out on the Internet is needs a genuine Internet email
>> address. xxx.lan is known only to your internal system and it is not an
>> Internet email address.
>>
> Exactly - and my problem is knowing where it is getting this from.
>
>> Care to show the headers of your outgoing email ? (cover-up the bits you
>> want to keep private)
>>
> Not sure where I can find the outgoing mail but I can give more info that might
> help.
>
> It's a long story, but probably relevant, so -
>
> We first set up a family LAN around 12 years ago, and called it xxx.net.
> Eventually I realised that xxx.net was actually a TLD name, so not a good
> idea. Actually I now own both xxx.org and xxx.net, but I decided that with
> this install I'd correct what had long been our practice.
>
> On the new CentOS install I set the server name to borg.xxx.lan. I then
> changed every reference to xxx.net in /etc/hosts, and set about changing the
> Postfix config files. (I know now that it is using postfix.sendmail,) Somewhere
> I either have some other file still pointing to the old name, or, more likely,
> postfix is still using it somewhere.
>
> I have been careful to re-map transports and restart postfix after any changes
> to the config files. The following from maillog may shed some light as to where
> the problem lies:
>
> Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: from=anne, size=6877,
> class=0, nrcpts=1, msgid=<201108221302.p7MD29Lf001711 at borg.xxx.lan>,
> relay=root at localhost
> Aug 22 14:02:11 borg postfix/smtpd[2067]: connect from borg.xxx.net[127.0.0.1]
> Aug 22 14:02:11 borg postfix/smtpd[2067]: B4693A377C:
> client=borg.xxx.net[127.0.0.1]
> Aug 22 14:02:11 borg postfix/cleanup[2070]: B4693A377C: message-
> id=<201108221302.p7MD29Lf001711 at borg.xxx.lan>
> Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: from=<anne at borg.xxx.lan>,
> size=7487, nrcpt=1 (queue active)
> Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=anne at xxx.org,
> ctladdr=anne (500/100), delay=00:00:02, xdelay=00:00:00, mailer=relay,
> pri=36877, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as
> B4693A377C)
> Aug 22 14:02:11 borg postfix/smtpd[2067]: disconnect from
> borg.xxx.net[127.0.0.1]
> Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=<anne at xxx.org>,
> relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.43,
> delays=0.09/0.02/0.15/0.18, dsn=5.0.0, status=bounced (host
> mailhost.zen.co.uk[212.23.3.98] said: 550-Verification failed for
> <anne at borg.xxx.lan> 550-Unrouteable address 550 Envelope Sender: Domain must
> resolve in DNS! (in reply to RCPT TO command))
> Aug 22 14:02:12 borg postfix/cleanup[2070]: 2EB94A371B: message-
> id=<20110822130212.2EB94A371B at borg>
> Aug 22 14:02:12 borg postfix/bounce[2072]: B4693A377C: sender non-delivery
> notification: 2EB94A371B
> Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: from=<>, size=9481,
> nrcpt=1 (queue active)
> Aug 22 14:02:12 borg postfix/qmgr[1499]: B4693A377C: removed
> Aug 22 14:02:12 borg postfix/smtp[2071]: 2EB94A371B: to=<anne at borg.xxx.lan>,
> relay=mailhost.zen.co.uk[212.23.3.98]:25, delay=0.75, delays=0.04/0/0.16/0.54,
> dsn=2.0.0, status=sent (250 OK id=1QvU8e-00085m-9o)
> Aug 22 14:02:12 borg postfix/qmgr[1499]: 2EB94A371B: removed
>
> The old transport read:
>
> xxx.net local:
> .xxx.net local:
> * smtp:[mailhost.zen.co.uk]
> .* smtp:[mailhost.zen.co.uk]
>
> Those lines have been left and
>
> xxx.lan local:
> .xxx.lan local:
>
> added in.
>
> A more likely suspect, I think, is main.cf - the relevant lines in the old one
> being
>
> mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
> myhostname = borg.xxx.net
> mydomain = xxx.net
> myorigin = $mydomain
> masquerade_domains = $mydomain
> #masquerade_domains = |borg.xxx.net
> mynetworks = 192.168.0.0/24,127.0.0.0/8
>
> and the latest version (after many thrashing edits)
>
>
> mydestination = $myhostname, localhost.$mydomain, $mydomain, xxx.lan
> myhostname = borg
> mydomain = xxx.org
> myorigin = $mydomain
> # masquerade_domains = $mydomain
> mynetworks = 192.168.0.0/24,127.0.0.0/8
>
> Sorry this was so long, but it seemed important to give you as much info as I
> could.
>
> Anne
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Aug 3 10:20 /usr/sbin/sendmail ->
/etc/alternatives/mta
ls -l /etc/alternatives/mta
lrwxrwxrwx 1 root root 27 Aug 3 10:20 /etc/alternatives/mta ->
/usr/sbin/sendmail.sendmail
ls -l /usr/sbin/sendmail.sendmail
-rwxr-sr-x 1 root smmsp 833512 Jun 17 2010 /usr/sbin/sendmail.sendmail
We fist should make sure you are using postfix instead of sendmail,
could you please check that Anne?
Regards
More information about the CentOS
mailing list