[Mimedefang] OT: Sendmail rewrite from address
Nels Lindquist
nlindq at maei.ca
Tue Sep 30 14:50:01 EDT 2003
On 26 Sep 2003 at 14:56, Lucas Albers wrote:
> I am having a problem configuring sendmail to rewrite domains.
> (....)
> I have 80 linux machines that are configured to smarthost their mail
> through a central relay. I want to rewrite outgoing mail sent from those
> machines to refer back to the central relay, example:
> (....)
> I want to rewrite the domain, and it is not specific per user.
> Explcit example:
> mail from: user at cslab1.csnet.montana.edu which smarthost relayed through
> cs.montana.edu should be rewritten to appear to be
> From: user at cs.montana.edu.
In the details you originally listed, the addresses were of the form
"user at cslab1" (no FQDN). Are your client MTAs using FQDNs or not?
It makes a big difference.
> I have looked at genericstable,genericsdomain, virtusertable,
> masquerade_as, all the standard items in various sendmail documentation,
> and nothing appears to work.
MASQUERADE_AS should do what you require. What exact syntax did you
use in your .mc file?
This should be enough:
MASQUERADE_AS(`cs.montana.edu')dnl
MASQUERADE_DOMAIN(`cs.montana.edu')dnl
FEATURE(masquerade_envelope)dnl
If your client MTAS are actually *not* using FQDNs and you can't
change that, then you'd need:
MASQUERADE_AS(`cs.montana.edu')dnl
MASQUERADE_DOMAIN(`cslab1')dnl
MASQUERADE_DOMAIN(`cslab2')dnl
(...etc.for each mailhost)
FEATURE(masquerade_entire_domain)dnl
FEATURE(masquerade_envelope)dnl
> Would it be better to do this via mimedefang?
Using Sendmail would be more efficient, I expect.
----
Nels Lindquist <*>
Information Systems Manager
Morningstar Air Express Inc.
More information about the MIMEDefang
mailing list