Hi David,
My mail server runs MDaemon. I have config'd sendmail to forward all messages to MDaemon, which has the recipients' mailboxes. smbuthia@company is 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?
Simon,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?
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-dHlQVTMxU1VBdU1BSWJxdy1fbjAwOUE&hl=en
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke