Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Jul 1998 12:25:55 -0700
From:      "Joseph M. Scott" <jmscott@ainet.com>
To:        Intuitive Design Archive <archive@in-design.com>, freebsd-isp@FreeBSD.ORG
Subject:   Re: Outgoing Mail Mapping
Message-ID:  <3.0.5.32.19980715122555.007b65e0@mail.ainet.com>
In-Reply-To: <Pine.BSF.3.96.980715140235.1224A-100000@www.in-design.com>

next in thread | previous in thread | raw e-mail | index | archive | help

	You may want to look at the masquerade feature.  ( The Sendmail book page 280 ) there is a masquerade_as that can be used in the m4 stuff.  This may vary but I believe the default /etc/sendmail.cf file has this ability so all you would need to do is define DM.  In the 2.2.6 machine I just finished the line looks like this :
# who I masquerade as (null for no masquerading) (see also $=M)
DM

To make is masq. as foobar.com ( even though the machine is mail.foobar.com ) the line would look like :

# who I masquerade as (null for no masquerading) (see also $=M)
DMfoobar.com

you may also want to take note of the CE and CL items a few lines above that.  These tell sendmail not to masquerade mail for certain users ( by default root ).

I don't claim to be all knowing on the sendmail front, but I do believe all of the above should work fine.  ( Although I'd test it a bit before trusting it too much :-)

Joseph Scott
jmscott@ainet.com




At 02:04 PM 7/15/98 -0400, Intuitive Design Archive wrote:
>Hello all;
>
>	Simple question with sendmail...
>
>	How can one send out all mails from a particular network to show
>as blah@somedomain.com instead of blah@host.somedomain.com; in other words
>change all outgoing mail to have just the domain name on the outgoing
>emails?
>
>
>Thanks
>Tamer
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-isp" in the body of the message
>
>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.19980715122555.007b65e0>