procmail
[Top] [All Lists]

Re: The TO_ and "X-Rcpt-To:" field...

1998-03-25 00:20:23
Procmail Person,


Yes, I too am using a Best account so we seem to have consistancy with the
X-Rcpt-To: field.  I could not find anything listed on the Best site about this
field so I e-mailed the web admin (webadmin(_at_)best(_dot_)com) and asked.  I 
will pass
along any information I receive.


---------------

Nancy,

The recipt looks good but I wonder if a ".*" or a ".?" instead of a "*" in the 
"*
^X-Rcpt-To: *user(_at_)mydomain(_dot_)com" lines might not be better?

Otherwise, your recipes look small and clean and should work well provided that
Best does not change anything (we are talking about computer systems after all).

Thanks for your feedback,

Christopher


Nancy McGough wrote:

On Mon, 23 Mar 1998, Philip Guenther wrote:

Christopher Reggiardo <christopher(_at_)reggiardo(_dot_)com> writes:
The users e-mail address is in the "X-Rcpt-To:"
field and the TO_ macro does not seem to catch it (it defaults to the
main INBOX).


You should just change from using the ^TO_ token to a direct match on
the indicated field:

      ^X-Rcpt-To: *whatever

Actually, you _really_ should be matching on the envelope recipient instead,
but how you do that depends on your setup.

The X-Rcpt-To header is something that's been set up at best.com and
as far as I can tell it *does* give the envelope recipient.  I, like
Christopher, am trying to manage email for a virtual domain and this
new X-Rcpt-To header seems to have solved all my procmail problems.
When a message is sent to more than one user at mydomain.com, the
message is delivered once for each user and each of them has an
X-Rcpt-To header that contains exactly one user(_at_)mydomain(_dot_)com 
address.
This has simplified my forwarding recipes to simply look like this:

:0
* ^X-Rcpt-To: *user1(_at_)mydomain(_dot_)com
!user1(_at_)realaddress

:0
* ^X-Rcpt-To: *user2(_at_)mydomain(_dot_)com
!user2(_at_)realaddress

:0:
* ^X-Rcpt-To: *(root|postmaster|admin)@mydomain.com
admin_IN

:0:
* ^X-Rcpt-To:.*mydomain.com
bogus(_at_)mydomain_IN


After I deal with all the real addresses at mydomain.com, this last
recipe catches all the bogus usernames that random people give out
@mydomain.com.  Maybe one of these days I'll bounce these but for now
I'm looking at them and making sure that I haven't forgotten any
addresses that I've used @mydomain.com.

Questions to the list:  How does this X-Rcpt-To header differ from
the X-Envelope-To header?  Do many ISPs insert these headers (or
something similar) to help their users process mail?  Any suggestions
for my recipes above?

Thanks,
Nancy

--
Nancy McGough    -*-    Infinite Ink    -*-    http://www.ii.com



--

Christopher

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_

mailto:Christopher(_at_)Reggiardo(_dot_)com

http://www.reggiardo.com


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