I guess, am confusing all a lot.
let me rephrase my problem and my observation.. kindly bare with me...
I use Debian woody with the following
Exim
Fetchmail
Procmail
My setup is like this...
The above Debian machine (fechmail) to pull mails from remote Mail Server.
remote server has virtual email ids.. and those mail fall in a common
account common_pop
the fetchmail pulls the mail from remote mail server (common_pop
account) to local debian machine)
at the time when the mail is pulled, i use PROCMAIL to split the mails
of common_pop to individual mailboxes based to To field....
if the To field = regina(_at_)remotehost(_dot_)com
the mail will go to regina mailbox locally (/var/spool/mail/regina)
if the To field = vpai(_at_)remotehost(_dot_)com
the mail will go to vpai mailbox locally (/var/spool/mail/vpai)
The above scenarios work properly...
but when a mail in the common_pop account has to be To headers , e.g.
regina(_at_)remotedomain(_dot_)com,vpai(_at_)remotedomain(_dot_)com,sysadmin(_at_)remotedomain(_dot_)com
the mail goes to the first maibox with 3 copies of the same mail.
in my case....
my .procmailrc file has the following entry
0:
* ^To regina(_at_)remotehost(_dot_)com
! regina(_at_)localserver(_dot_)linuxlocal(_dot_)com
0:
* ^To vpai(_at_)remotehost(_dot_)com
! vpai(_at_)localserver(_dot_)linuxlocal(_dot_)com
<snip>
when are the to many To header , all mails goes to regina mailbox in
localserver.linuxlocal.com.
But i want respective local mailboxes like regina, vpai, sysadmin.
Please let me the configuration change...
Thanks in Advance
Ganeshh
Professional Software Engineering wrote:
At 14:41 2003-02-07 +0530, Ganeshh wrote:
_/*From ganeshh(_at_)lateralsoftware(_dot_)com Fri Jan 24 18:14:11 2003
Envelope-to: commonpop(_at_)localhost (local mailbox)
From ganeshh(_at_)yahoo(_dot_)com Tue Jan 28 18:18:47 2003
Envelope-to: vpai(_at_)localhost(_dot_)com (localmailbox)
Please refer to 'man procmailrc', where the macro "^TO_" is documented.
:0:
* ^TO_commonpop(_at_)localhost
commompop.mbx
:0:
* ^TO_vpai(_at_)localhost\(_dot_)com
vpai.mbx
Where do i have to fetchmail , exim and procmail (if any),,,
Huh? I don't follow.
I'm probably going WAY out on a limb here, but perhaps you should
consider reading the procmail discussion list and checking its
_searchable_ archives. For instance, over the past couple of days,
there has been a thead hauntingly similar to your inquiry. Although
the subject line may be misleading:
Re: New User: Locking file issue and other bits
Let me repeat a common mantra here: Procmail is not an MTA. using it
to share a single POP mailbox across multiple users will eventually
present you with a problem, and it isn't the fault of procmail when
you can't resolve the limitation, because procmail wasn't intended to
be used for this purpose (it can't make up data where the MTA has
discarded envelope information - when there are MULTIPLE recipients
within your virtualized POP account, you'll have a better
understanding of this, as your MTA is very likely to deliver a SINGLE
copy of the message and include NO X-Envelope-To: header).
---
Sean B. Straw / Professional Software Engineering
Procmail disclaimer:
<http://www.professional.org/procmail/disclaimer.html>
Please DO NOT carbon me on list replies. I'll get my copy from the
list.
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail