procmail
[Top] [All Lists]

--> reading multiple TO addresses from a file.

2000-09-14 14:04:39
I need procmail to read the TO address from a list of addresses
(myaddress.txt) and forward it to a list of forward addresses (forward.txt)

Basically I want it to only forward mail sent to myaddress.txt and sent from
mydomain.com to the list of recipient in forward.txt.
Do I make any sense?

I have my .procmailrc as follow:

:0 c
* ^TO`cat /etc/myaddress.txt`
* ^From.*mydomain.com
! `cat /etc/forward.txt`

and in myaddress.txt I have something like (of course with a valid email):
me(_at_)testing(_dot_)com
anotherme(_at_)testing(_dot_)com

in forward.txt I have something like:
forwardme(_at_)testing(_dot_)com
forwardanotherme(_at_)testing(_dot_)com

What am I missing?  How come it's not forwarding?  Any idea or suggestions?


-wk


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>