Sendmail masquerading configuration
Ruben de Groot
mail25 at bzerk.org
Mon Feb 7 06:50:23 PST 2005
On Sun, Feb 06, 2005 at 02:28:17AM -0800, Ted Mittelstaedt typed:
> > -----Original Message-----
> > From: owner-freebsd-questions at freebsd.org
> > [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of Ian Moore
> > Sent: Sunday, February 06, 2005 2:07 AM
> > To: freebsd-questions at freebsd.org
> > Subject: Sendmail masquerading configuration
> > Hi,
> > I'm hoping someone can help me with this.
> > I want to make sendmail (on a 5.3-Release server) leave the
> > host name out of
> > the sender address when sending mail from that machine.
> > I.E. mail from root currently has a sender address of
> > root at myhost.foo.bar, I
> > want it to be root at foo.bar instead.
> Not possible, I think, as I recall masquerading only works on
> users not in the T macro. (ie: Trusted Users) root is
> most definitely in this macro.
Actually, I believe it's the EXPOSED_USERS macro, and it can be
adjusted; e.g. in sendmail.cf:
just remove the root user from this line. In conjunction with a
MASQUERADE_AS macro, this will allow root to send email coming from
your domain without your hostname.
You might want to use the MASQUERADE_ENVELOPE macro as well, 'cause
that's probably what your isp is filtering on (the envelope_from
address). Read all about it in /usr/share/sendmail/cf/README.
BTW, I agree that masquerading is NOT the proper way to do these
> Masquerading is a bullshit way of doing this kind of
> thing anyhow. Use the -f switch if your calling the sendmail
> binary directly from programs. If your using /bin/mail
> as a MUA, then get a better one like Elm or Pine that
> lets you do this.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions