http://www.amazon.com/sendmail-4th-Bryan-Costales/dp/0596510292/ref=sr_1_1?s=books&ie=UTF8&qid=1295270018&sr=1-1

or just read the documentation at
http://www.sendmail.com/sm/open_source/docs/
it's not that really hard if you just try yourself instead of asking on
mailing lists.
This is NOT an OpenBSD question.

On Mon, 17 Jan 2011 14:09 +0400, "OpenBSD Geek" <[email protected]>
wrote:
> i done changes, but it still send from @box.my.domain
> Any other idea ?
> Thanks
> 
> On Mon, 17 Jan 2011 13:52:03 +0530, Indunil Jayasooriya
> <[email protected]> wrote:
> > 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
> > <[email protected]>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 [email protected] instead of
> >> [email protected]
> >>
> >> 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 :
> >> [email protected]   user
> >>
> >> in my /etc/mail/genericstable :
> >> user  [email protected]
> >>
> >> 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

Reply via email to