[ale] [OT] sendmail & masquerading
Randy Janinda
randy.janinda at ndcorp.com
Thu Dec 2 09:28:33 EST 1999
dave brooks <db at amorphous.org> wrote:
>
> Obviously, 'neurotic.amorphous.org' is the troublesome hostname, and due
> to the fact it doesnt exist, the message bounces. How can I make this
> appear to come from hler.amorphous.org (which is a real hostname, and
> can be nslookup'ed)?
>
> http://www.sendmail.org/faq mentions something about
> MASQUERADE_AS(host.domain), but I don't know how to implement this in my
> /etc/sendmail.cf file (if I just stick it in there and SIGHUP sendmail,
> it doesnt seem to work and still taggs messages with the non-existant"
> host name), or even if this is the correct thing to do.
>
I have had the same problems. Here is what works for me:
(In /etc/sendmail.mc):
FEATURE(masquerade_envelope) FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')
define(`SMART_HOST',`mail.relay.com')
What this does is look in /etc/mail/genericstable for the "sending" user
and rewrites the address to whatever you want. This will fix the "From" fields (I think)
(i.e. user at localhost me at isp.com)
I then use a "SMART_HOST" to fix the bounce problem.
I am not an expert on this subject but, this has fixed my problems.
Hope it helps.
--
Randy Janinda
############################################
HTTP://www.tqlabs.com - Online port database
############################################
More information about the Ale
mailing list