email alias issue

email alias issue

Oleg Goldshmidt pub at goldshmidt.org
Tue Jul 19 11:55:38 IDT 2011


2011/7/19 Hetz Ben Hamo <hetzbh at gmail.com>:
> Hi,
> I have a weird issue with /etc/aliases
> I've setup the root to send emails to my email (hetz at benhamo.org) and ran
> the newaliases command to rebuild the aliases db file.
> I've restarted sendmail.
>
> And yet, sendmail simply ignores this alias and tries to send emails to
> root at benhamo.org (which of course doesn't exists).
> Any suggestions?

Well, the aliases file creates an alias to the local root. You say
mails get sent to root at benhamo.org - it sounds like this is NOT the
local root but the (non-existent) root on the (possibly non-existent)
remote host.

Make sure your test mails are sent to the local root. Check what other
rules get applied - e.g., maybe sendmail rewrites all the destination
addresses with @benhamo.org or whatever. Make friends with sendmail
-bt.

What changed with the upgrade to CentOS 5.6? Were all the dbs rebuilt?

-- 
Oleg Goldshmidt | pub at goldshmidt.org



More information about the Linux-il mailing list