[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: Mail distribution



According to Prakash Advani:
> 
> I have had some problems with procmail scripts, It does distribute mail
> but if there is the To/CC field contains more than one email address
> then multiple copies go to all the people in that field.
> 
> could I get someone's scripts ?
> 
Hello,
Why dont you use fetchmail its really good, the earlier verson did 
have bugs but the download the laatese fetchmail 4.7.3 and this takes 
care of two problems 
1) mail to unknown users gets routed to the root account
2) Multiple copies to all the to recipients 
The second problem can be corrected by moddifying the .fetchmailrc
file where the envelope information is to be changed , the envelope 
info that fethcmail sees ( Pl read man fetchmail for full details) 
you will se the field Delivered To : xxxxx - nps ( please check on any of 
your incoming mails) for the exact envelope info , you ahve to grep for the 
exact envelope info to send to onlly one of the receipinet . 
My .fetchmailrc is the following 

set daemon 0
poll mail.teleport.com with protocol POP3:
no dns, aka teraltd.com
envelope 1 "Delivered-To:" 
qvirtual teraltd+teraltd.com-X-
user teraltd is * here 
password password
#flush
# the above file configured using the latest fetchmail version 4.7.3, here
# we are getting mails using the header Delivered-to sine it carries the 
#name of single recipient,in the form Delivered-To: teraltd+teraltd.com-X-nps@xxxxxxxxxxx
#this is the second envelope Deliverd to so the lines envelope and qvirtual 
#to striip that string from the mail and get the name of the recipient.
# with this procmail not reqd in inddividual account to filter multiple mails
#flush not reqd because sometimes mail may not be delivered and deleted from 
#server.
Pl Note by using the * here you can route all the mails to all the useers 
which is done by sendmail on the linux machine 
Hope this works for you 
nps 

- -- 
~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*
                           Mrs N P Salaria
                         System Administrator
                           TERA INFORMATICS
                          Tel: (022)-8290251
                          Res: (022)-5770472
                         Email: nps@xxxxxxxxxxx
~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*~~*~~~~*~~*~~*


- --------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india' (without the quotes) in the body of the email.

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

End of Linux India Digest V1 #11
********************************

--------------------------------------------------------------------
To unsubscribe send an email to majordomo@xxxxxxxxx with the word
'unsubscribe linux-india-digest' (without the quotes) in the body
of the email.