Hi all,

After defineing sub filter_relay() and restarting mimedefang
filtering did not work at all. Instead of processing the mails
sendmail just gets if MX_RELAY_CHECK is set to yes in the startup
file.

Feb 2 21:26:40 mx2 sm-mta[12574]: k12KQenP012574: Milter: connect: host=mail22.bluewin.ch, addr=195.186.19.66, rejecting commands

Feb 2 21:26:42 mx2 sm-mta[12599]: k12KQft7012599: Milter: connect: host=[220.77.126.245], addr=220.77.126.245, rejecting commands

Feb 2 21:26:42 mx2 sm-mta[12603]: k12KQgMP012603: Milter: connect: host=nat0.netburg.pl, addr=62.233.224.243, rejecting commands

Feb 2 21:26:44 mx2 sm-mta[12673]: k12KQiwR012673: Milter: connect: host=p54BE3907.dip.t-dialin.net, addr=84.190.57.7, rejecting commands

Feb 2 21:26:45 mx2 sm-mta[12709]: k12KQjSf012709: Milter: connect: host=wirelessdhcp-220-174.ideaone.net, addr=69.178.220.174, rejecting commands

Feb 2 21:26:46 mx2 sm-mta[12739]: k12KQk5s012739: Milter: connect: host=sproxy.google.com, addr=64.233.170.130, rejecting commands

This is mimedefang 2.53. Any ideas ?

Since the check is only for "10.0.0.1" true, it should work for all
other adresses.

sub filter_relay {
        my ($ip, $name) = @_;

        if($ip eq "10.0.0.1") {
                return ('REJECT', "Too many spam-mails from $ip, $name is 
blacklisted.");
        }
        return ('CONTINUE', "ok");
}

Martin

Martin Blapp, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
------------------------------------------------------------------
ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH
Phone: +41 61 826 93 00 Fax: +41 61 826 93 01
PGP: <finger -l [EMAIL PROTECTED]>
PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E
------------------------------------------------------------------

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list [email protected]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to