Hello, 

Can anybody help me figure out why the below code in 
"/etc/mail/mimedefang-filter" rejects email from all connecting sender ip's?

##############
sub filter_relay {

        my ( $ip, $name, $helo) = @_;
        if (relay_is_blacklisted($ip, ‘zen.spamhaus.org’)) {
        return(‘REJECT’, ‘You are listed in zen.spamhaus.org’);
        }
}
##############

Server is running:
CentOS 6.5  
mimedefang-2.70-1
perl-5.10


>From maillog:

sendmail[29960]: s2L79ImJ029960: Milter (mimedefang): init success to negotiate
 sendmail[29960]: s2L79ImJ029960: Milter: connect to filters
 mimedefang.pl[29937]: filter_relay rejected host xx.xx.xx.xx 
(connecting-mxserver.com)
 sendmail[29960]: s2L79ImJ029960: milter=mimedefang, action=connect, reject
 sendmail[29960]: s2L79ImJ029960: Milter: connect, ending
 sendmail[29960]: s2L79ImJ029960: Milter (mimedefang): quit filter
 sendmail[29960]: s2L79ImJ029960: Milter: connect: 
host=connecting-mxserver.com, addr=xx.xx.xx.xx, rejecting commands
 sendmail[29960]: s2L79ImJ029960: --- 554 mimedefang-server.com ESMTP not 
accepting messages
 sendmail[29960]: s2L79ImJ029960: <-- QUIT
 sendmail[29960]: s2L79ImJ029960: --- 221 2.0.0 mimedefang-server.com closing 
connection
 sendmail[29960]: s2L79ImJ029960: Milter (mimedefang): quit filter


Best regards
Lars Bjaerris
_______________________________________________
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