
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.

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.

Have you checked the mail logs { /var/log/maillog } on how the Logwatch mails are being handled? -- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp

Hi David, I have looked at the log file and the problem is that my mail server is rejecting root's email address (root@localhost) coz no such user exists on my mail server (10.0.0.2). Also note that I have edited the aliases file, assigned an email address that exists on the mail server to root and ran newalises but I don't know why it's still sending to root. below is an extract from my maillog. May 19 04:05:23 myhost sendmail[29250]: o4J15H5M029250: from=root, size=1183, class=0, nrcpts=1, msgid=< 201005190105.o4J15H5M029250@myhost.example.co.ke>, relay=root@localhost May 19 04:05:23 myhost sendmail[29250]: o4J15H5M029250: to=root, ctladdr=root (0/0), delay=00:00:06, xdelay=00:00:00, mailer=relay, pri=31183, relay=[10.0.0.2] [10.0.0.2], dsn=5.1.1, stat=User unknown May 19 04:05:23 myhost sendmail[29250]: o4J15H5M029250: o4J15H5N029250: DSN: User unknown May 19 04:05:23 myhost sendmail[29250]: o4J15H5N029250: to=root, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32207, relay=[10.0.0.2] [10.0.0.2], dsn=5.1.1, stat=User unknown May 19 04:05:23 myhost sendmail[29250]: o4J15H5N029250: o4J15H5O029250: return to sender: User unknown May 19 04:05:23 myhost sendmail[29250]: o4J15H5O029250: to=postmaster, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=33231, relay=[10.0.0.2] [10.0.0.2], dsn=5.1.1, stat=User unknown May 19 04:05:23 myhost sendmail[29250]: o4J15H5N029250: Losing ./qfo4J15H5N029250: savemail panic May 19 04:05:23 myhost sendmail[29250]: o4J15H5N029250: SYSERR(root): savemail: cannot save rejected email anywhere On 19 May 2010 14:01, David Njuki <njukey@gmail.com> wrote:
Have you checked the mail logs { /var/log/maillog } on how the Logwatch mails are being handled?
-- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp
_______________________________________________ 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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

@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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ 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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ 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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On 19 May 2010 17:06, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
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?
Simon, I dont think the issue is with the aliases file, I suspect sendmail configurations because of the relay issue and also the error of "user unknown" from the logs. Can you please check that you have configured the correct hostname on sendmail.cf and also make sure that the system hostname is allowed to relay mail through sendmail via localhost. -- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp

Hi David, My mail server runs MDaemon. I have config'd sendmail to forward all messages to MDaemon, which has the recipients' mailboxes. smbuthia@companyis an account on mdaemon. When I do mail -s "Test" smbuthia@company, I receive the test message in my Outlook - looks like sendmail is configured ok, ama? But when I try sending a tesmt mail to root, even with a .forward file in root's home, sendmail attempts to deliver to root@localhost on Mdaemon, which account MDaemon doesn't recognize, so it replies with a 5XX error saying relaying not allowed, user unknown - or something to that effect. that's why I thot that the problem is that sendmail is not honouring the aliases. Here's some lines from my sendmail.mc LOCAL_DOMAIN(`localhost.localdomain')dnl MASQUERADE_AS(`mycompany.com')dnl FEATURE(masquerade_envelope)dnl Should I decomment the MASQUERADE_DOMAIN line which is commented? On 20 May 2010 09:32, David Njuki <njukey@gmail.com> wrote:
On 19 May 2010 17:06, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
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?
Simon,
I dont think the issue is with the aliases file, I suspect sendmail configurations because of the relay issue and also the error of "user unknown" from the logs.
Can you please check that you have configured the correct hostname on sendmail.cf and also make sure that the system hostname is allowed to relay mail through sendmail via localhost.
-- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp
_______________________________________________ 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-dHlQVTMxU1VBdU1BSWJxdy1f... ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke

On 20 May 2010 10:04, Simon Mbuthia <simon.mbuthia@gmail.com> wrote:
Hi David,
My mail server runs MDaemon. I have config'd sendmail to forward all messages to MDaemon, which has the recipients' mailboxes. smbuthia@companyis an account on mdaemon. When I do mail -s "Test" smbuthia@company, I receive the test message in my Outlook - looks like sendmail is configured ok, ama? But when I try sending a tesmt mail to root, even with a .forward file in root's home, sendmail attempts to deliver to root@localhost on Mdaemon, which account MDaemon doesn't recognize, so it replies with a 5XX error saying relaying not allowed, user unknown - or something to that effect. that's why I thot that the problem is that sendmail is not honouring the aliases.
Here's some lines from my sendmail.mc
LOCAL_DOMAIN(`localhost.localdomain')dnl MASQUERADE_AS(`mycompany.com')dnl FEATURE(masquerade_envelope)dnl
Should I decomment the MASQUERADE_DOMAIN line which is commented?
I am not sure about that Simon, have you tried to forward this query to the sendmail mailling list, seems everyone here has been challenged by this :) -- ˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙˙ 'spɹɐƃǝɹ ıʞnɾu pıʌɐp
participants (3)
-
Alex Nderitu
-
David Njuki
-
Simon Mbuthia