[courier-users] how to log discarded message

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-...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-18-2006
David Somers
 
Posts: n/a
Default [courier-users] how to log discarded message

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0