Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

procmailrc

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
hi

i'm using .procmailrc file for filtering and processing of incoming emails
the structure of it looks like this:

:0
* ^To.*import@mydomain.com
* ^Subject:.*Snehov*
| sed -e 's/ / /' >/home/import/admin/reports/sneh.inf; /usr/local/bin/lynx -anonymous -dump
:0
* ^To: *import@mydomain.com
* ^Subject:.*strahy*
| sed -e 's/ / /' >/home/import/admin/reports/vystrahy.inf; /usr/local/bin/lynx -anonymous -dump
:0
* ^To: *domain@mydomain.com
! user@myotherdomain.com

:0
* ^To: *domain@forwardeddomain.com
! user@myotherdomain.com

mails for import@domain.com, domain@domain.com and domain@forwardeddomain.com are directed to an existing user on the linux box, who has the .procmailrc in his homedir

the first two statements work fine - it's an everyday update of our site (weather, snow condition, ...)
but the other ones are making me crazy, some mails are forwarded to user@myotherdomain.com, some are not
i don't know what to do to avoid that "random forwarding" rule
any idea what's wrong?
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Sponsor

Back
Top