1 message in net.sourceforge.lists.courier-users[courier-users] No recipient variable...
FromSent OnAttachments
Jay LeeNov 15, 2005 3:42 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] No recipient variable for localfilter?Actions...
From:Jay Lee (jl@pbu.edu)
Date:Nov 15, 2005 3:42:42 pm
List:net.sourceforge.lists.courier-users

I'm toying around again with Courier's localfilters. I just learned that smtpfilter can include a script from /etc/courier/maildroprcs/ and the included script can do things normal embedded maildrop scripts can't (xfilter, ``, etc). I'm attempting to use this to call spamassassin at SMTP time for certain users so that mail above X score can be rejected outright if they wish. My one problem though is that the /etc/courier/maildroprcs/ scripts don't seem to get any information on the message recipient. I've tried:

import RECIPIENT import LOCAL import USER

`set > set.txt`

but none of the variables seem to be set properly by maildrop to the recipient. Is there any way to determine the recipient for maildroprcs filters? I guess I could have a $HOME/.mailfilters/smtpfilter of:

USER=jl@pbu.edu include "/etc/courier/maildroprcs/spamassassin"

and do it that way but it doesn't seem quite as smooth as it should be.

Jay