Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Not receiving root mail (http://www.linux-archive.org/centos/566857-not-receiving-root-mail.html)

Anne Wilson 08-22-2011 11:49 AM

Not receiving root mail
 
Although I have the alias defined in /etc/aliases and /etc/postfix/aliases,
I'm not receiving root mail. Following the previous thread about unreceived
logwatch mail, I tested with a manual run of logwatch, and found that my ISP
is rejecting the mail because it is seeing an envelope carrying my local
address. My suspicion is that the mail is going out via sendmail instead of
postfix-sendmail. IIRC there used to be system-switch-mail or a similarly
named package. I can't find any such package - and can't remember which file
it edited. Can someone please point me to that file?

Anne
--
New to KDE Software? - get help from http://userbase.kde.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Barry Brimer 08-22-2011 12:07 PM

Not receiving root mail
 
> <anne@xxxx.org>: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
> failed for <anne@xxx.lan> 550-Unrouteable address 550 Envelope Sender:
> Domain must resolve in DNS! (in reply to RCPT TO command)

It looks like your outgoing mail from your local user(s) needs to be
masqueraded or the whole server does.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Anne Wilson 08-22-2011 12:07 PM

Not receiving root mail
 
On Monday 22 Aug 2011 12:49:21 Anne Wilson wrote:
> Although I have the alias defined in /etc/aliases and /etc/postfix/aliases,
> I'm not receiving root mail. Following the previous thread about
> unreceived logwatch mail, I tested with a manual run of logwatch, and
> found that my ISP is rejecting the mail because it is seeing an envelope
> carrying my local address. My suspicion is that the mail is going out via
> sendmail instead of postfix-sendmail. IIRC there used to be
> system-switch-mail or a similarly named package. I can't find any such
> package - and can't remember which file it edited. Can someone please
> point me to that file?
>
The actual return report says:

<anne@xxxx.org>: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
failed for <anne@xxx.lan> 550-Unrouteable address 550 Envelope Sender:
Domain must resolve in DNS! (in reply to RCPT TO command)

Anne
--
New to KDE Software? - get help from http://userbase.kde.org
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Always Learning 08-22-2011 12:12 PM

Not receiving root mail
 
On Mon, 2011-08-22 at 13:07 +0100, Anne Wilson wrote:

> <anne@xxxx.org>: host mailhost.zen.co.uk[212.23.3.98] said:
> 550-Verification
> failed for <anne@xxx.lan> 550-Unrouteable address 550 Envelope
> Sender:
> Domain must resolve in DNS! (in reply to RCPT TO command)

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.

Care to show the headers of your outgoing email ? (cover-up the bits you
want to keep private)


--
With best regards,

Paul.
England,
EU.


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Brian Mathis 08-22-2011 12:37 PM

Not receiving root mail
 
On Mon, Aug 22, 2011 at 8:07 AM, Barry Brimer <lists@brimer.org> wrote:
>> <anne@xxxx.org>: host mailhost.zen.co.uk[212.23.3.98] said: 550-Verification
>> * *failed for <anne@xxx.lan> 550-Unrouteable address 550 Envelope Sender:
>> * *Domain must resolve in DNS! (in reply to RCPT TO command)
>
> It looks like your outgoing mail from your local user(s) needs to be
> masqueraded or the whole server does.


I think Barry has it right here.

Also, if you're using postfix, you should "yum remove sendmail" to
avoid any possible conflicts. There's no reason to have sendmail,
postfix implements its own 'sendmail' command.


-☙ Brian Mathis ❧-
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Scott Robbins 08-22-2011 12:41 PM

Not receiving root mail
 
On Mon, Aug 22, 2011 at 01:12:54PM +0100, Always Learning wrote:
>
> On Mon, 2011-08-22 at 13:07 +0100, Anne Wilson wrote:
>
> > <anne@xxxx.org>: host mailhost.zen.co.uk[212.23.3.98] said:
> > 550-Verification
> > failed for <anne@xxx.lan> 550-Unrouteable address 550 Envelope
> > Sender:
> > Domain must resolve in DNS! (in reply to RCPT TO command)
>
> 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.
>
> Care to show the headers of your outgoing email ? (cover-up the bits you
> want to keep private)

If you're running postfix, you might want to also edit /etc/aliases.
The last line or so has a commented line, person who should get root's
mail. (The name is marc, probably the person who first wrote it.)

After changing that, run newaliases /etc/alias to rebuild the
/etc/alias.db.

To answer your other question, alternatives is the command you asked
about in an earlier post

alternatives --config mta

This will show you if you're using postfix or sendmail.


--
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: Where have you been pet?
Drusilla: I went for a walk. I met an old man. I didn't like him,
he got stuck in my teeth.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Anne Wilson 08-22-2011 01:29 PM

Not receiving root mail
 
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@borg.xxx.lan>,
relay=root@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@borg.xxx.lan>
Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: from=<anne@borg.xxx.lan>,
size=7487, nrcpt=1 (queue active)
Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=anne@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@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@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@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@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@centos.org
http://lists.centos.org/mailman/listinfo/centos

Marc Deop i Argem 08-22-2011 02:05 PM

Not receiving root mail
 
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@borg.xxx.lan>,
> relay=root@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@borg.xxx.lan>
> Aug 22 14:02:11 borg postfix/qmgr[1499]: B4693A377C: from=<anne@borg.xxx.lan>,
> size=7487, nrcpt=1 (queue active)
> Aug 22 14:02:11 borg sendmail[1711]: p7MD29Lf001711: to=anne@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@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@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@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@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@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

_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Philippe Naudin 08-22-2011 02:13 PM

Not receiving root mail
 
Le lun 22 ao 2011 14:29:29 CEST, Anne Wilson a crit:

> ...
> Aug 22 14:02:12 borg postfix/smtp[2071]: B4693A377C: to=<anne@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@borg.xxx.lan> 550-Unrouteable address 550 Envelope Sender: Domain must
> resolve in DNS! (in reply to RCPT TO command))
> ...

I think you also need to rewrite your envelop address.

I had the same problem years ago, so the way to solve it has probably
changed, hopefully not too much :

- edit (create if necessary) /etc/postfix/sender_cannonical
anne@borg.xxx.lan some.address@some.real.server.for.the.bounces

- edit main.cf :
sender_canonical_maps = hash:/etc/postfix/sender_cannonical

- rehash /etc/postfix/sender_cannonical and reload postfix

Good luck,

--
Philippe Naudin
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Kai Schaetzl 08-22-2011 02:26 PM

Not receiving root mail
 
Actually, the "main suspect" is the program or person that is sending out
mail with an unqualified sender, e.g. just "user". Change it to a
qualified sender (e.g. with a resolvable FQDN).

Kai


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


All times are GMT. The time now is 06:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.