Actually, I think the problem is that my aliases are not being honored. grep root: /etc/aliases shows root: smbuthia@company.com
sendmail -bv root shows smbuthia@company.com... deliverable: mailer relay, host mail.company.com, user smbuthia@company.com

mail -s "Test" root shows that sendmail tried sending the email to root@localhost on my mail server and my mail server refuses to relay. However mail -s "Test" smbuthia@comapny.com works well.
I have ran newaliases and even make -C /etc/mail/ even though I haven't made any changes and restarted the sendmail daemon but still the problem remains and Google isn't helping much.

Doesn't someone know why aliases would fail to be honoured?

On 19 May 2010 14:49, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
@Alex I had done that too


On 19 May 2010 14:46, Alex Nderitu <nderitualex@gmail.com> wrote:
It would be easier to change the email address in logwatch.conf (/etc/logwatch/conf/logwatch.conf or /usr/share/logwatch/default.conf/logwatch.conf in Redhat systems, should be similar in other distros  ). Look for this entry;
MailTo = which most likely points to report@localhost.localdomain and point to your address. 

Mails for report are most likely not recieved by root and that is why changing aliases does not make difference. 






On Wed, May 19, 2010 at 1:03 PM, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Ahem.... I'm sure some geek lurking somewhere on the list can advise on this....


I'll appreciate even a comment at least :)

On 17 May 2010 16:02, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Hi guys,

More problems here. I have edited the alias file and assigned an email address to root, ran newaliases, but still logwatch is sending emails to report@localhost.localdomain - where localhost.localdomain is the FQDN of the box. I have not specified such an address anywhere. I have also set the SMART_HOST on sendmail.mc to my mail server [and it's working OK] and ran make -C /etc/mail and restarted the sendmail service [yes, I'm running sendmail as my default MTA].

What am I not doing right?


Me.


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Server donations spreadsheet
http://spreadsheets.google.com/ccc?key=0AopdHkqSqKL-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke