[EXIM] pipe in filter question

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Rob Lingelbach
Datum:  
To: exim-users
Betreff: [EXIM] pipe in filter question

I'd like to have all mail coming from foo.bar returned with a canned
reply explaining that due to excessive spam from foo.bar, incoming
mail is shunted into a file for later examination by the
administrator.

is this filter syntax correct:

if $header_from contains hotmail.com
        then log "$tod_log Shunted $message_id for: $header_from"
        save /export/home/rob/Folders/spam.exim
    pipe "/usr/local/bin/cannedreply $sender_address"
        seen finish
endif


...and cannedreply might be:

#!/bin/sh
/bin/mailx -s "spam filtration response" </usr/local/lib/cannedreply.txt


...when testing the above exim returned "The address_pipe transport
has not set a uid for local delivery of |/usr/local/bin/cannedreply
$sender_address" so I set the pipe transport in exim's configure
thusly:

address_pipe:
driver = pipe;
user = root,
group = other,
return_output


...but I suspect I've done something wrong because a test message
doesn't cause the "cannedreply" script to execute.

thanks.
--Rob

-- 
Rob Lingelbach          |  2660 Hollyridge Dr., Los Angeles, CA 90068
rob@???         |"I care not much for a man's religion whose dog or 
rob@???            |  cat is not the better for it."  --Abraham Lincoln
rob@???                    KB6CUN   http://www.alegria.com


--
*** Exim information can be found at http://www.exim.org/ ***