procmail
[Top] [All Lists]

Re: PROCMAIL PROBLEM

2002-06-07 07:20:54
=?iso-8859-1?q?sunil=20soni?= <sunilsoni_id(_at_)yahoo(_dot_)co(_dot_)in> 
writes:
I am  sending  email   TO
abc(_dot_)soni(_at_)testsite(_dot_)ourserver .com
,def(_dot_)soni(_at_)testsite(_dot_)ourserver(_dot_)com,xyz(_dot_)soni(_at_)testsite(_dot_)ourserver(_dot_)com
from my  yahoo  acount  .
...
I am receiving  3 mail   into  abc   folder   and  
mail is not found
in  xyz  or  def  folder .
How can I make sure that the  such type mail is  
correctly
distributed.

You are trying to route email based on the message header.  This does
not work.  There are ways to make it looks like it's working, but as
long as the decisions are being based on the recipient fields (To:, Cc:)
it'll be wrong.  If nothing else, consider messages from this mailing
list: they don't have your email address in any of the recipient fields.

Instead, you need to route email based on the 'envelope'.  In SMTP,
the envelope addresses are conveyed using the MAIL From: and RCPT To:
commands.  When procmail is the normal delivery agent, the envelope
recipient is passed on the command line and is the user that procmail is
running as, as found in the LOGNAME variable, however that isn't true
when procmail is being invoked because of an alias and may or may not
be true when it is part of some other mechanism.

So, we need to know more: _why_ does email sent to address in the
testsite.ourserver.com domain get processed by procmail?  Are you
using sendmail with a mailertable entry?  A virtusers table entry?
Something else?


Philip Guenther
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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