procmail
[Top] [All Lists]

Problem with .procmailrc

2000-12-29 15:07:35
Sir, 
   Your explanation on procmail is superb. I will be greateful to you if you 
can solve my following problem
Requirement: Want to share one pop3 emailid by multiple users.
Configuration done at server: On our pop3 server we have a mail box whose email 
id is central(_at_)xyz(_dot_)com, to which any body can send mails in the 
following manner: user1(_at_)xyz(_dot_)com user2(_at_)xyz(_dot_)com . These two 
id's when gets mails will sit in central(_at_)xyz(_dot_)com's mail box.
Configuration done at client: From client I am runnning fetchmail which 
downloads all mails from central(_at_)xyz(_dot_)com and gives to local user 
central. I have put one .procmailrc in central's home directory with following 
lines:
  :0 c
  backup     
  :0c
  * ^To.*user1
    {
        :0
        ! user1(_at_)localhost
    }
  :0c
  * ^To.*user2
    {
        :0
        ! user2(_at_)localhost
    }
With above lines, my intention is to forward mail to user1 if To contains 
user1(_at_)xyz(_dot_)com and forward to user2 if To contains 
user2(_at_)xyz(_dot_)com
Problem : 
1) A mail whose To address is To: 
user2(_at_)xyz(_dot_)com,Yuser1(_at_)yahoo(_dot_)com
is got delivered to both user1 and user2.

My exact requirement: 
1)Procmail should match entire string "user1(_at_)xyz(_dot_)com not" just user1
and user1(_at_)xyz(_dot_)com can be anywhere in the To address.
2) Once a mail is delieverd to any user it should not be in central's mail box
3) A mail which is not delievered to any user only should be present in 
central's mail box.

Ravindra.
<Prev in Thread] Current Thread [Next in Thread>
  • Problem with .procmailrc, Ravindra Kumar <=