Hi, I'm currently having some trouble setting up an alias for the root user on 
several Redhat machines.

Although I the alias was set using newaliases and postalias and although 
postmap -q is telling me the alias is ok, postfix keeps sending root mails to 
"root@##MYORIGIN##".

The following entry was added to the default entries (postmaster:     root 
etc.) of the /etc/aliases:

root:           [email protected]

It was mapped with "newaliases"/" postalias" and postfix was 
reloaded/restarted, then it was tested with "postmap -q root 
hash:/etc/aliases". But if the system is now actually sending mail to root (for 
example cron, but also mail send via "mailx"), it will still go to 
"root@##MYORIGIN##" and not to the one listed in /etc/aliases.

>From the logs:

May 26 15:15:52 ##### postfix/qmgr[22268]: 5B001895D: from=<root@##MYORIGIN## 
>, size=453, nrcpt=1 (queue active)
May 26 15:15:52 ##### postfix/smtp[22736]: 5B001895D: to=<root@##MYORIGIN##>, 
orig_to=<root>, relay=mail. ##MYORIGIN## [###.###.###.###]:25, delay=0.28, 
delays=0.11/0.01/0.07/0.1, dsn=2.0.0, status=sent (250 Message accepted for 
delivery)

Reply via email to