procmail
[Top] [All Lists]

Re: aliases and details

1995-12-15 08:43:51
Doug Hughes <Doug(_dot_)Hughes(_at_)Eng(_dot_)Auburn(_dot_)EDU> wrote:
Stephen can den Berg wrote:
Doug Hughes <Doug(_dot_)Hughes(_at_)Eng(_dot_)Auburn(_dot_)EDU> wrote:
...
Nothing about the message changes. The only thing that changes is that
the sendmail server does a RCPT TO somebody else. If you consider this
the envelope, then I guess you are correct. *shrug*

Yes, the envelope for email transmitted by SMTP is passed via the MAIL
FROM and RCPT TO lines.  When the mail is given to procmail, the
envelope (post-sendmail massage) is passed in the -f, -a and -d args.
The whole point of the envelope is that it's transmitted out-of-band
relative to the headers & body of the message itself (though UUCP may
break this rule?).


To answer the original question:

Is this a procmail configuration or sendmail configuration problem?

It's a sendmail configuration problem.  The fix either needs substantial
changes in the sendmail.cf file, or you might try putting in
aliases like

     kevin+test: kykim+test


Yes, but if he's processing on the To: field, this won't fix the problem,
the mail may go to kykim, but the "To" line will still say
kevin+test.

While this [processing the To: field] can be a tricky problem to catch,
he isn't processing on the To: field.  The login+extra syntax is noted
by sendmail and turned into a call by sendmail to procmail as:

        procmail -f sender -a extra -d login

'extra' is thus found in $1 on entry to the .procmailrc.  The problem
pointed out by Stephen's is that is you alias "foo" to "bar", current
sendmail config files will change the address "foo+baz" into "bar",
when they should arguably change it into "bar+baz" (though you should
be able to alias a 'sub-address' (foo+baz), or alias to a
'sub-address', or both together).  Stephen, have you fired a note to
Eric Allman for this to be fixed in some future sendmail?


Philip Guenther

----------------------------------------------------------------
Philip Guenther                 UNIX Systems and Network Administrator
Internet: guenther(_at_)gac(_dot_)edu   Phonenet: (507) 933-7596
Gustavus Adolphus College       St. Peter, MN 56082-1498

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