As a Solaris user, I want cron jobs generated emails for the
localuser@server to be forwarded to my
firstname.lastname@example.org email account, so that I read only one inbox.
To resolve this I have forwarded
email@example.com and according to the aliases test it does work as expected:
$ sudo sendmail -v -bv localuser Password: localuser... aliased to firstname.lastname@example.org
mconnect command also confirms the alias is set.
However any communication from cron seems to not use aliases:
Mar 14 17:54:27 localuser sendmail: [ID 801593 mail.info] s2ELsRC2009249: from=localuser, size=13, class=0, nrcpts=1, msgid=<201403142154.s2ELsRC2009249@myserver.sample.com>, relay=localuser@localhost
Mar 14 17:54:28 localuser sendmail: [ID 801593 mail.info] s2ELsRC2009249: to=localuser, ctladdr=localuser (100/1), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30013, relay=smtp.sample.com. [192.168.0.2], dsn=2.0.0, stat=Sent ( <201403142154.s2ELsRC2009249@myserver.sample.com> Queued mail for delivery)
This results in errors of course in
smtp.sample.com as user
localuser does not exist there.
Any ideas how can I debug what is happening?