nmh-workers
[Top] [All Lists]

Re: Setting SMTP envelope sender

1998-05-15 11:57:10

Giles Lean <giles_lean(_at_)aus(_dot_)hp(_dot_)com> writes:

mts.conf provides for 'localname' to override the hostname.  Very handy
for masquerading.

I've just met a site whose their Openmail hub doesn't understand the
local Unix login names, so it is necessary to masquerade the username as
well.

I have done this by patching zotnet/mts/mts.c (diff below).  I think the
environment variable name is probably inappropriate.

Wonderful!!!  Thanks so much for this, Giles.  I had been meaning to figure
out how to patch the code to do this for some time.  

I send from an account on my local machine called dlh, and I masquerade as
unitech.com, so the envelope From comes out as dlh(_at_)unitech(_dot_)com, but 
that
account doesn't exist.  Certain programs (such as the Mailman mailing list
administrator) incorrectly use the envelope From in preference to From or
Reply-To fields in the mail itself, so I end up silently losing mail.

This feature should definitely be rolled into the nmh standard
distribution.  $SENDER seems like an okay variable name to me, though I
suppose it could check for $NMH_SENDER first if we wanted to be safe.

--
Dan Harkless
dharkless(_at_)unitech(_dot_)com
Unitech Research, Inc.


<Prev in Thread] Current Thread [Next in Thread>