I have to admitt, I'm a bit currious as to the purpose of the change to spamc...
Most people that use spamc, use procmail.. thus, most sites that want to delete spam run the message through spamc and have procmail delete it with a procmail rule afterwards..
That's possible, as I have never seen any statistics on this, but we don't use procmail and we have no plans to do so.
I'd also have questions if you patch actually severely breaks some MTA's... based on it's role as a mail fitler, it's illegal for spamc to even attempt to delete the message. Sendmail might deal with this fine, but other MTA's that call spamc may break if this is tried. I know some will merely decide that the filter is broken and will "rescue" the message, unprocessed.
Our only MTA for externally received email is sendmail, which again forwards user emails to an internal exchange server. In fact, we have tried this out, and it works quite nicely (at least our local users are delighted). In order to make spamc drop emails, the -D option has to be explicitely specified, otherwise the spamc client will work exactly as before. However, if another MTA than sendmail tries to make use of this option, then it should of course be throroughly tested out before put into real production.
What feature does the patch add that using a procmail rule to redirect messages that have a "X-Spam-Status: Yes" header to /dev/null does not?
Nothing, except that you can now totally omit the use of procmail, if the only purpose of using it is just to drop spam messages for selected users.
Best regards, Oystein
At 10:44 AM 11/18/03 +0100, you wrote:In order to allow spam messages to be blocked/deleted instead of being marked by spamassassin I propose to introduce a simple delete option (-D) to spamc. This would be very useful for email accounts receiving large amounts of spam that are never read anyway. The following sendmail alias example shows how a sendmail server then can be set up to only pass non-spam messages to an exchange server account.
user: "| exec /usr/local/bin/spamc -D | /usr/bin/rmail [EMAIL PROTECTED]"
The required modification to spamc.c is given as a diff below.
Best regards, Oystein
60a61,63 > /* D-option blocking spam */ > int Delete = 0; > 87a91 > printf("-D: delete message if spam\n"); 96c100 < while(-1 != (opt = getopt(argc,argv,"-BcrRd:e:fhyp:t:s:u:xSHU:"))) --- > while(-1 != (opt = getopt(argc,argv,"-BcrRd:e:fhyp:t:s:u:xSHU:D"))) 188a193,197 > case 'D': > { > Delete = 1; > break; > } 312a322,325 > if(Delete&(m.is_spam==EX_ISSPAM)) { > message_cleanup (&m); > exit(EX_ISSPAM); > }
------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target/g22lp.tmpl _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk
Øystein Halvorsen, M.Sc. Email: [EMAIL PROTECTED] Senior Systems Consultant Phone: +47 370 35 650 UNEP / GRID-Arendal Direct: +47 370 35 709 Service Box 706 Home: +47 370 21 133 N-4808 Arendal, NORWAY Cell: +47 951 83 625
------------------------------------------------------- This SF. Net email is sponsored by: GoToMyPC GoToMyPC is the fast, easy and secure way to access your computer from any Web browser or wireless device. Click here to Try it Free! https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk