[Mimedefang] Milter: rejecting commands ?

Martin Blapp mb at imp.ch
Thu Feb 2 18:20:15 EST 2006


Hi David,

> Are you seeing any stderr output from the slaves?  (Assuming you're
> passing "-l" to the multiplexor.  If not, please pass "-l" to the
> multiplexor!)

My error, I've not pasted everything from my filter_relay and there was
some error in it. The  message "rejecting command" seems to be the warning 
sendmail logs if the mail has been rejected.

I'm dooing now something like this test:

#
# If the last spam has been received ~20 minutes ago (depending how many spams we got),
# allow the sender to send mails again.
#
my $dbh = $DBH_SLAVE;
my $query = "select ((unknown+spam+1)*1000)/((ham+1)*(UNIX_TIMESTAMP(now()) -
 	UNIX_TIMESTAMP(timestamp))) as rating,
 	from mailstats where octa=$octa and
 	octb=$octb and octc=$octc and octd=$octd and
 	(unknown+spam+1)/(ham+1) >= 10 and
 	((spam > 0 and unknown > 0) or (unknown > 30)) and
 	((unknown+spam+1)*1000)/((ham+1)*(UNIX_TIMESTAMP(now()) -
 	UNIX_TIMESTAMP(timestamp))) >= 10";

my $th = $dbh->prepare($query);
$th->execute;

and then I test for the spam/ham ratio. Works very well now.

Thanks anyway David for your time !

Martin



More information about the MIMEDefang mailing list