procmail
[Top] [All Lists]

Procmail problem

1998-03-05 13:49:25
Folks,
I am using Fetchmail to get the mail for my small company, and then 
procmail forwards all the mail to the correct addresses in our internal 
network.  Everything works great except one thing:  If there are multiple 
addresses on the To: or Cc: line, the first of these addresses to appear in 
the .procmailrc file receives all of the copies of the message.  The other 
addresses do not get it at all.  I don't know a whole lot about Procmail, 
but there has to be a way to get it to work with multiple addresses on one 
line.  Here is a copy of my .procmail file, which is in my mailer user 
directory:



DEFAULT=/var/spool/mail/mail
SHELL=/bin/sh


:0 c
        passthrough

:0
* ^(Cc|To):(_dot_)*support(_at_)terainc(_dot_)com
{
  :0 c
  ! jong

  :0
  ! tedg
}

:0
* ^(Cc|To):(_dot_)*jong(_at_)terainc(_dot_)com
! jong

:0
* ^(Cc|To):(_dot_)*nirmal(_at_)terainc(_dot_)com
! nirmal

:0
* ^(Cc|To):(_dot_)*nirmal_agarwal(_at_)terainc(_dot_)com
! nirmal

:0
* ^(Cc|To):(_dot_)*info(_at_)terainc(_dot_)com
! tedg

:0
* ^(Cc|To):(_dot_)*webmaster(_at_)terainc(_dot_)com
! tedg

:0
* ^(Cc|To):(_dot_)*download(_at_)terainc(_dot_)com
{
  :0 c
  ! jong

  :0
  ! tedg
}

:0
* ^(Cc|To):(_dot_)*sales(_at_)terainc(_dot_)com
! tedg

:0
* ^(Cc|To):(_dot_)*root(_at_)terainc(_dot_)com
! root

:0
* ^(Cc|To):(_dot_)*jgary(_at_)terainc(_dot_)com
! jong

:0
* ^(Cc|To):(_dot_)*postmaster(_at_)terainc(_dot_)com
! jong

:0
* ^(Cc|To):(_dot_)*Problem_Report(_at_)terainc(_dot_)com
! jong

:0
* ^(Cc|To)(_dot_)*tedg(_at_)terainc(_dot_)com
! tedg

:0
* ^(Cc|To)(_dot_)*ted_gary(_at_)terainc(_dot_)com
! tedg

:0
* ^(Cc|To):(_dot_)*me(_at_)terainc(_dot_)com
! jong

:0
! tedg

#:0
#  |(/usr/bin/formail -r -k \
#     -A"X-loop: mail(_at_)terainc(_dot_)com "| \
#       /usr/bin/gawk '{print }\
#       /^/ && !HEADER \
#           { system("/bin/cat nosuchuser"); \
#           print"--" ;\
#           HEADER=1 }' ) |\
#           /usr/bin/sendmail -t

exit


BTW, send any replies directly to me, because I am not subscribed to this 
list.

Thanks,

Jon Gary

<Prev in Thread] Current Thread [Next in Thread>
  • Procmail problem, Jon Gary <=