Why is this not getting the userid

Robert Moskowitz rgm at htt-consult.com
Fri Nov 30 21:21:38 CET 2007

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.debug.domain.com

And get the 2222 to feed into the faxmail program:

| /usr/bin/spamassassin
* ^X-Spam-Status: Yes
* ^(To|Cc|Bcc).\/(*@fax.debug.domain.com)
* MATCH ?? ()\/[^@]+
| /usr/bin/faxmail -d "fax@$MATCH"

Thank you

More information about the procmail mailing list