procmail
[Top] [All Lists]

Re: Using an alias file to copy/forward mail to other addresses

2005-08-04 03:19:55
On Wed, 3 Aug 2005, Professional Software Engineering wrote:

At 01:34 2005-08-04 +0200, Dallman Ross wrote:
Indeed, X-Envelope-To: (when configured to be inserted by
Sendmail - it isn't a default header) is only inserted when
there's a SINGLE local recipient - multiple recipients cause the
header to NOT be included.  Refer to the procmail mantra.

On panix, X-Envelope-To: always contains the envelope-To.
The MTA is not sendmail.

Then obviously it isn't restricted to the same logic which sendmail happens
to use.  I don't happen to agree with the way sendmail does it - in the
header insertion phase (same phase where the local Received: is tacked on),
if there are multiple envelope recipients, sendmail doesn't emit that data
because it'd be a security issue - revealing other recipient
addresses.  Sendmail isn't set up to add headers LATER, say at local
delivery time, by which point it has already discerned the local userid.

I'm curious - if you have multiple aliases at your ISP which point to the
same mailbox, and two are addressed on a message, do you get TWO copies of
the message (each with a separate X-Envelope-To:), or ONE?

If X-Envelope-To: is empty when the message was sent to
multiple local recipients, what's the point of even having it?
I mean, one can simply look for the lowest "for user@" string
in the Received chain,

... which coincidentally won't exist if there were multiple local recipients.

        Yes, I used the "for user@" in the past, but I decided to leave
        the header and figure out the _Last_Mail_Station_ by the $LOGNAME,
        I believe that it's saver.

Bye,
  Udi



---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail


+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.


---------------------------------------------------------------------------
Udi Mottelo - Unix System Administrator.
Faculty of Engineering - Tel-Aviv University
E-Mail: uuddii(_at_)eng(_dot_)tau(_dot_)ac(_dot_)il    Phone: +972-3-6409446
---------------------------------------------------------------------------

____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail