On Thursday 23 April 2009 15:07:50 Joseph Brennan wrote: > "Erik Hensema / HostingXS" <hens...@hostingxs.nl> wrote: > > However, in some (rare) cases relays are blocked even though there are > > whitelisted and not blacklisted on any blacklist. > > I can't see how this can be caused by my filter code. > > Does it check external nameservers that might not be responding? What > does your code do on timeout? Is the relay blocked 450 or 550?
This is the perl code: my $ans = relay_is_blacklisted_multi($RelayAddr, 5, $required, \...@dnsbls); my $count = 0; foreach my $domain (keys(%$ans)) { my $r = $ans->{$domain}; if(ref($r) eq "ARRAY") { push @dnsbl_positive, $domain; $count++; } } The resulting action depends on user preferences. It may either result in a 550 or a tag in the message subject indicating the message may be spam. I'm counting the number of positive matches because the user may require X matches for a subject tag and Y matches for a 550. I wasn't aware I should do timeout handling, I was under the impression relay_is_blacklisted_multi() did all the handling. -- Met vriendelijke groet, Erik Hensema / HostingXS Internet Services _______________________________________________ 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 MIMEDefang@lists.roaringpenguin.com http://lists.roaringpenguin.com/mailman/listinfo/mimedefang