how to change my source address in sendmail??
Yang Xiao
yxiao2004 at gmail.com
Wed Aug 4 14:12:17 UTC 2004
On Wed, 04 Aug 2004 15:53:39 +0200, Alexander Dalloz
<alexander.dalloz at uni-bielefeld.de> wrote:
> Am Mi, den 04.08.2004 schrieb Yang Xiao um 15:38:
>
> > On Wed, 04 Aug 2004 11:31:03 +0000, ssoss S <sctssoss at hotmail.com> wrote:
> > > Hi.. i am using sendmail in Fedora Core1 to send mail. And I found that my
> > > source email address is always root at mylinux.mycompany.com. mylinux is my
> > > hostname and mycompany is my company domain name. but how can change my
> > > source email address to root at abc.com or myname at abc.com?? where is the
> > > setting???
>
> > This is usually done by using the
> > MASQUERADE_AS(abc.com)
> > macro in the sendmai.mc file. you might also want to checkout
> > FEATURE(allmasquerade)
> > then you need to regenerate the sendmail.cf file by typing make in the
> > /etc/mail dir.
>
> No, masquerading has a different purpose.
>
> > Also, the /usr/share/doc/sendmail/README.cf file has detailed
> > descriptions for all available macros.
>
> He is looking for
>
> define(`confDOMAIN_NAME', `abc.com')dnl
>
> It is important that the name of the Sendmail host is resolvable.
>
> > Yang
>
> Alexander
>
hmm.
confDOMAIN_NAME $j macro If defined, sets $j. This should
only be done if your system cannot
determine your local domain name,
and then it should be set to
$w.Foo.COM, where Foo.COM is your
domain name.
sounds like it should work, but not what it's intended for?
MASQUERADE_AS is more appropriate in this case I think.
Yang
More information about the users
mailing list