[Mimedefang] variables available for greylisting
Cormack, Ken
kcormack at acs.roadway.com
Wed May 5 14:53:02 EDT 2004
List,
I am needing to relocate my greylisting from filter_recipient, to filter_end
(to stop the whining from broken MTAs that choke on a 4.X.X before the DATA
phase of the SMTP dialog). I'm wondering if the values used in building the
triplet from filter_recipient as shown below, are also available from within
filter_end. Specifically, the recipient address, the sender address, and
the ip of the connecting host.
My filter_recipient currently looks like this:
sub filter_recipient ($$$$$$$$$) {
my($recip, $sender, $ip, $rest_of_the_junk) = @_;
if (greylist_whitelist($ip) || whitelist_recipemail($recip)) {
return ("CONTINUE", "");
}
if (should_greylist($sender,$recip,$ip)) {
md_syslog('warning', "Greylisted Triad:$sender:$recip:$ip");
return("TEMPFAIL", "Tempfailed: Your server should
auto-resend");
}
return ("CONTINUE", "");
}
The greylist_whitelist, whitelist_recipient, and should_greylist are all
functions defined elswhere in my mimedefang-filter file, and which do the
actual work of greylisting.
Could I be so lucky as to simply set "MX_RECIPIENT_CHECK=no" in
/etc/sysconfig/mimedefang (to disable filter_recipient), and then rename my
filter)recipient to something like "sub my_greylist" and expect it to work?
Thanks for any responses.
Ken
More information about the MIMEDefang
mailing list