Hi,

Pls try below

in /usr/share/sendmail/cf/openbsd-proto.mc file

Pls change

dnl MASQUERADE_AS(`mycompany.com')dnl

to

MASQUERADE_AS(`my.domain ')dnl

Then,

m4 /usr/share/sendmail/cf/cf.m4 /etc/mail/openbsd-proto.mc  > /etc/mail/
sendmail.cf





On Mon, Jan 17, 2011 at 1:27 PM, OpenBSD Geek <open...@e-solutions.re>wrote:

> Hi,
> I have an OpenBSD 4.7 machine.
> I want to build a mailserver using sendmail MTA.
> Openbsd hostname : box.my.domain
> When i send a mail, i comes from u...@box.my.domain instead of
> u...@domainchosed.net
>
> What i have done :
> cp /usr/share/sendmail/cf/openbsd-proto /etc/mail
> m4 /usr/share/sendmail/cf/cf.m4 /etc/mail/openbsd-proto
> >/etc/mail/sendmail.cf
>
> in /etc/rc.conf :
> sendmail_flags="-L sm-mta -C/etc/mail/sendmail.cf -bd -q30m
>
> in my /etc/mail/virtusertable :
> u...@domainchosed.net   user
>
> in my /etc/mail/genericstable :
> user  u...@domainchosed.net
>
> in my /etc/local-host-names :
> domainchosed.net
>
> i also done :
> makemap hash genericstable.db < genericstable
> makemap hash virtusertable.db < virtusertable
> restart sendmail
>
> But it still send mail using @box.my.domain ; someone can help me ? thanks
>
>


-- 
Thank you
Indunil Jayasooriya

Reply via email to