[Mimedefang] How to forward email before deleting it.

Brett Simpson Simpsonb at hillsboroughcounty.org
Tue Dec 16 10:57:13 EST 2003


How would I configure mimedefang-filter to do the following?

Any email that is identified as Spam with a score over 15 send to an email account before deleting it.

I tried this in mimedefang-filter but it doesn't work.

if ($hits > 15) {
resend_message('webadmin at hillsboroughcounty.org');                     
md_graphdefang_log('sa_discard_score');
return action_discard();
}

Logs show:

Dec 16 10:55:45 slim sm-mta[3133]: hBGFtjsF003133: from=<simpsonb at hillsboroughcounty.org>, size=162, class=0, nrcpts=1, msgid=<200312161555.hBGFtjsF003133 at slim.hillsboroughcounty.org>, proto=SMTP, daemon=MTA, relay=IDENT:simpsonb at localhost [127.0.0.1]
Dec 16 10:55:45 slim mimedefang-multiplexor: stats 1071590145.524 StartFilter slave=0 nslaves=10 nbusy=1
Dec 16 10:55:52 slim sendmail[3140]: hBGFtqlQ003140: Authentication-Warning: slim.hillsboroughcounty.org: defang set sender to <simpsonb at hillsboroughcounty.org> using -f
Dec 16 10:55:52 slim sendmail[3140]: hBGFtqlQ003140: from=<simpsonb at hillsboroughcounty.org>, size=359, class=0, nrcpts=1, msgid=<200312161555.hBGFtqlQ003140 at slim.hillsboroughcounty.org>, relay=defang at localhost
Dec 16 10:55:52 slim sendmail[3140]: hBGFtqlQ003140: to=webadmin at hillsboroughcounty.org, delay=00:00:00, mailer=esmtp, pri=30359, dsn=4.4.3, stat=queued
Dec 16 10:55:52 slim mimedefang.pl[3044]: MDLOG,hBGFtjsF003133,sa_discard_score,,,<simpsonb at hillsboroughcounty.org>,<simpsonb at hillsboroughcounty.org>,test                                                                                                                                                          
Dec 16 10:55:52 slim mimedefang.pl[3044]: filter: hBGFtjsF003133:  discard=1
Dec 16 10:55:52 slim mimedefang-multiplexor: stats 1071590152.354 EndFilter slave=0 nslaves=10 nbusy=0 numRequests=2
Dec 16 10:55:52 slim mimedefang[3134]: hBGFtjsF003133: Discarding because filter instructed us to
Dec 16 10:55:52 slim sm-mta[3133]: hBGFtjsF003133: Milter: data, discard
Dec 16 10:55:52 slim sm-mta[3133]: hBGFtjsF003133: discarded






More information about the MIMEDefang mailing list