Am 2007-11-30 15:21:38, schrieb Robert Moskowitz:
I have put this recipe together from a few souces.
This is a global /etc/procmail. I know it is running because I can get
it working with just the first condition and then hardcoding the fax
extension number in the faxmail program.
Basically I want to take a header like:
To: 2222(_at_)fax(_dot_)debug(_dot_)domain(_dot_)com
And get the 2222 to feed into the faxmail program:
DROPPRIVS=yes
:0fw
| /usr/bin/spamassassin
Better is to use
|spamc
Since if you get one day several messages more
spamassassin will kill your machine...
:0
* ^X-Spam-Status: Yes
/var/mail/spam
The "X-Spam-Status:" is not very good to use, better is the use of:
* ^X-Spam-Level:.*\*\*\*\*\*
:0hb:
* ^(To|Cc|Bcc).\/(*(_at_)fax(_dot_)debug(_dot_)domain(_dot_)com)
* MATCH ?? ()\/[^(_at_)]+
| /usr/bin/faxmail -d "fax(_at_)$MATCH"
:0
*
^(To|Cc):.*\/[a-z0-9](_dot_)*[-(_dot_)_a-z0-9](_at_)fax\(_dot_)debug\(_dot_)domain\(_dot_)com
* MATCH ?? ()\/[^(_at_)]+
| /usr/bin/faxmail -d "fax(_at_)$MATCH"
(untested)
Thanks, Greetings and nice Day
Michelle Konzack
Tamay Dogan Network
Open Hardware Developer
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSN LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail