[Mimedefang] Relay_check not working
Stefano McGhee
SMcGhee at ARCweb.com
Thu Sep 12 12:01:03 EDT 2002
Hello all,
I'm trying to get relay check working on a new box with more HP
than our existing system. I'm running MD 2.20, and Sendmail 8.12.6. I
have placed the following lines in the sendmail init script that also
starts MD:
daemon $MIMEDEFANG -U defang -r \
-m $DEFPATH/mdefang-mx.sock \
-p $DEFPATH/mimedefang.sock $SENDER_CHECK \
-P $DEFPATH/mimedefang.pid
In mimedefang-filter I have the following:
# Check for various relay denials
sub filter_relay {
my($hostip, $hostname, $helo) = @_;
# Can't be "arcweb.com" unless it's one of our IP's.
if ($helo =~ /mydomain\.com/i) {
if ($hostip ne "127.0.0.1" and $hostip ne "local.ip.address" and
$hostip ne "another.local.address") {
syslog('info', "Host $hostip said HELO $helo");
return(0, "Go away. You're not me. I'm me.");
}
}
return (1, "OK");
}
When I telnet into port 25 and issue the command HELO mydomain.com or HELO
server12345.mydomain.com, it is very pleased to meet me. What might be
wrong?
Many thanks,
Stefano
More information about the MIMEDefang
mailing list