On Thu, 26 Jul 2001, Nikhil Joshi wrote:
(reason: 553 5.1.8 nikhil@joshi.home... Domain of sender address nikhil@joshi.home does not exist)
Why sendmail is giving my address as nikhil@joshi.home to ilug? (my login name is nikhil and my hostname is joshi.home)
That's why it gives you the error. Is your hostname joshi.home in your /etc/hosts file? It should be there. You should also disable dns lookups in sendmail.
My real email address is nikhiljoshy@yahoo.com
I have used option MASQUERADE_AS('yahoo.com') in the file /etc/mail/sendmail.mc and re-generated /etc/sendmail.cf
Don't do this. Instead, do a per user alias in sendmail.
I made /etc/userdb.db file using the file /etc/userdb having following contents: nikhil:mailname nikhiljoshy@yahoo.com nikhiljoshy:maildrop nikhil
Don't do this either.
At the end of sendmail.cf, add these lines:
# Masquerading rules S1 Rnikhil<@joshi.home> $@ nikhiljoshy < @ yahoo.com> Rnikhil<@joshi.home.> $@ nikhiljoshy < @ yahoo.com.>
NOTE there are tabs before and after the $@, not spaces.
Philip