A "gotcha" on this for MIMEDefang users is that depending on their
config, they need to make sure they call "check_valid_mx" after any
tests at the right place compared to tests for known "good" private IP
blocks.
I consider this already covered by the statement about is_authorized_sender
but I'll clarify the example just minutely.
But as an example, here is is my verbatim is_authorized_sender from one of
my servers:
sub is_authorized_sender {
my ($sender, $RelayAddr) = @_;
my ($auth, $popauthdb);
$auth= 0;
$popauthdb = &opendb_read($popauthdbfile);
if ($popauthdb->{$RelayAddr}) {
$auth++;
}
&closedb($popauthdb);
if ($RelayAddr =~ /^127\.0\.0\.1$/) {
$auth++;
}
if ($RelayAddr =~ /^209\.225\.49\.\d{1,3}$/) {
$auth++;
}
return $auth;
}
Regards,
KAM
In other words, if you call:
check_valid_mx(email=>'[EMAIL PROTECTED]',flag_intranets=>'false')
before you check to see if the e-mail is coming from one of your
private IPs, you might flag it as a "bad MX", when in reality a private
IP address for an MX might be OK at that point.
I probably screwed up what I'm trying to explain here, but hopefully
people will get the idea.
_______________________________________________
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