Hi, I'm using Courier with virtual domain accounts, my setup is: -Courier 0.53.3 -courier-authlib 0.58 (using mySQL authentication) -Spamassassin 3.1.3 -Fedora core 5
For mail delivery I am using .courier files (e.g. .courier-<domain>-<username>) which is all working fine but I am not able to integrate Spamassassin the way I would like it to work. Currently I am running a shell script that runs spamc and then returns either 0 or 64 for ham or spam resp. If 64 is returned the processing quits and the message is rejected, which is what I want, mostly. Ideally I'd like the delivered message to be what comes out of Spamassassin so that ham messages will have the additional headers added by Spamassassin. From what I've read spamc should read stdin and send the results to stdout. Clearly it is reading stdin and I assume it is sending the results to stdout, but what gets delivered is the original message, as if courier is not re-reading stdout but is sticking with the original message. The output from spamc is instead sent to the maillog, where I can see each line of the message including the spamassassin headers. Here's an example .courier-domain-user file that does this: | /usr/bin/spamc /var/mail/vhosts/domain/... #path to Maildir I'd expect a post-Spamassassin message to be delivered, but what I get is the original message. BTW, setting "DEFAULTDELIVERY= |/usr/bin/spamc | /usr/lib/courier/bin/maildrop" doesn't work either. Apparently when using .courier files for delivery instructions the DEFAULTDELIVERY setting is ignored. Seems like this ought to be easy to setup and I just need to know the magic line or two that will do it :) Thanks in advance, Joe Meadows ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
