I just want to setup basic sendmail for my domain nothing fancy. I been to /usr/share/sendmail/cf and created mydomain.mc file -
OSTYPE(`openbsd')
DOMAIN(generic)
DAEMON_OPTIONS(`Family=inet, Address=0.0.0.0, Name=MTA')dnl
CLIENT_OPTIONS(`Family=inet, Address=192.168.25.4')
MASQUERADE_AS(`mydomain.net')
MASQUERADE_DOMAIN_FINE(`/etc/mail/masq')
MAILER(`local')
MAILER(`smtp')
then I did m4 ../m4/cf.m4 mydomain.mc > mydomain.cf
cp mydomain.cf /etc/mail/sendmail.cf
Now when I send mail, the From: header comes as
user@hostname.domain and not
user@domain.com.
Could anyone give me a hand with this? Thanks.