We have added the check_primary_mx for senders to our filter with good success and I've added this feature to http://www.peregrinehw.com/downloads/MIMEDefang/mimedefang-filter-KAM
To use this in your own filter, make sure you have use Net::DNS in a sub filter_initialize in your mimedefang filter. Then, add the subroutines from http://www.peregrinehw.com/downloads/MIMEDefang/contrib/check_primary_mx_stub.pl to your filter. Next, modify or create a filter_sender function: sub filter_sender { my ($sender, $ip, $hostname, $helo) = @_; unless (&check_primary_mx($sender)) { return ('REJECT', "Sorry; $sender has an invalid MX record."); md_syslog('warning', "Rejecting $sender email due to invalid MX record test."); } return ('CONTINUE', "ok"); } Finally, make sure you have sender filtering turned on. With my installation, I edit /etc/sysconfig/mimedefang and change the line for MX_SENDER_CHECK=yes. I believe this equates to sending a -s to the mimedefang daemon. Regards, KAM _______________________________________________ Visit http://www.mimedefang.org and http://www.roaringpenguin.com MIMEDefang mailing list [email protected] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

