[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Mime-Version: 1.0
Hello Everbody,
I Need your help in Procmail.
I have installed Redhat 5.2 in my machine along with
procmail (ver 3.10). I have got a SMTP/POP3 account and a domain
registered with my ISP. All my mails i.e "*@domain" are being forwarded to
one pop3 account which I am accessing through "fetchmail (ver 4.5.8)".
My local mail delivery agent is procmail (filtering mails based upon the
rules in /root/.procmailrc file). The problem is that if there's a mail
with multiple addresses (To's and Cc's) then procmail takes the first
------------------------------------
address from the .procmailrc file and sends the mail to that user
and exits. I want that it should process the whole file.
What I want is that the user "root" use fetchmail gets the mail for all the
users and then distribute them to the respective user/s.
Please help me out in this and if you can send me an example then I would
be really grateful.
- - ---entry from sendmail.cf file
Mlocal, P=/usr/bin/procmail, F=lsDFMAw5:/|@qSPfhn9, S=10/30, R=20/40,
A=procmail -Y -a $h -d $u
- - ------------ends here
- - ---.procmailrc file-------------
:0 HB
* ^To.jogesh*
{
:0
! jogesh
}
:0 HB
* ^To.*mdis*
{
:0
! mdis
}
:0 HB
* ^To.*khn*
{
:0
! khn
}
- - -----------------ends here
Awaiting for your reply.
With Regards
Dharmendra Gurtata
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
------------------------------