[Exim] Exim-4+Procmail - Help Rqd

Góra strony
Delete this message
Reply to this message
Autor: Odhiambo G. Washington
Data:  
Dla: exim-users
Temat: [Exim] Exim-4+Procmail - Help Rqd
Hello List,

I want to run procmail with a global procmailrc, but I also want to run
this selectively for a few users - and this is where I am a bit lost.
Procmail should only run for user listed in the file procmailusers.

The procmailrc will run spamassassin (spamc) against the message and if
found to be spam, the message will be saved elsewhere.

I could do with some help from the more experienced users.

# PROCMAILRC

#procmailrc

:0fwE
| /usr/local/bin/spamc -u $LOGNAME

:0e
{

EXITCODE=$?

}

DATE=`date +%Y%m%d%H%M`
PID=`echo $$`
SPAMFILE=$DEFAULT-spam.$DATE.$PID

:0:
* ^X-Spam-Status: Yes
$SPAMFILE



# TRANSPORT

procmail_pipe:
driver = pipe
command = "/usr/bin/procmail -d ${local_part}"
return_path_add
delivery_date_add
user = ${lookup{$local_part}lsearch{/usr/local/etc/exim/procmailusers} {$value}}

# ROUTER


procmail:
driver = accept
transport = procmail_pipe
require_files = /usr/local/etc/exim/procmailrc



I am not so familiar with intergrating the two.

PS: Don't suggest alternative solutions, they will not work for me.
I've tested them ;-)



Thanks in advance.


-Wash

--
Odhiambo Washington   <wash@???>  "The box said 'Requires
Wananchi Online Ltd.  www.wananchi.com      Windows 95, NT, or better,'
Tel: +254 2 313985-9  +254 2 313922         so I installed FreeBSD."
GSM: +254 72 743223   +254 733 744121       This sig is McQ!  :-)



Basic is a high level languish.
APL is a high level anguish.