This is a discussion on [courier-users] how to log discarded message within the Courier-Imap forums, part of the Mail Servers and Related category; Hi, When spamassasin says a message is very spammy, I throw the message away. In maildroprc I use: if ((/^X-...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
When spamassasin says a message is very spammy, I throw the message away. In maildroprc I use: if ((/^X-Spam-Level: \*\*\*\*\*\*\*\*/)) { echo "*** SPAM threshold exceeded; dropping" EXITCODE = 0 exit } The problem is in the syslog: Jan 18 02:10:18 caslon courierlocal: id=002291B3.43CD953C.00005D1F,from=<dtgvqcpagt@foc on.com>,addr=<dsomers@trevezel.com>: *** SPAM threshold exceeded; dropping Jan 18 02:10:18 caslon courierlocal: id=002291B3.43CD953C.00005D1F,from=<dtgvqcpagt@foc on.com>,addr=<dsomers@trevezel.com>,size=2904,succ ess: Message delivered. I get that "Message delivered" showing up... when I really want courierlocal to say that its been dropped. Is setting EXITCODE = 0 the right thing to do? I read through the docs but didn't quite grok what EXITCODE should be set to. Regards, David. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=...486&dat=121642 _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users |