[Mimedefang] Bypassing outgoing mail - filter_relay blocking all incomming mail
Rick Knight
rick at rlknight.com
Sat Feb 22 15:23:00 EST 2003
I also want to allow locally originating messages to bypass the
SpamAssassin filter so, as instructed here, I've added
sub filter_relay ($$$) {
my ($ip, $name, $helo) = @_;
return ('ACCEPT_NO_MORE_FILTERING', "ok") if $ip eq "x.x.x.x";
}
to mimedefang-filter just above the SA filter section. Now my local mail
does not get filtered by SpamAssassin. But all incomming mail is
rejected by filter_relay. Did I miss something? I did set
MX_RELAY_CHECK. Is there something else I need to do?
Thanks,
Rick Knight
(rick at rlknight.com)
Relevant log entries...
*** Log entry for localy orig. mail
Feb 22 11:28:17 my_server mimedefang.pl[28539]: filter_relay said
ACCEPT_AND_NO_MORE_FILTERING: No further filtering for this message
Feb 22 11:28:18 my_server sendmail[28598]: h1MJSH5U028598:
from=<catmom at my_domain.com>, size=18799, class=0, nrcpts=1,
msgid=<3E57CFC3.7060307 at my_domain.com>, proto=ESMTP, daemon=MTA,
relay=my_relay.my_domain.com [x.x.x.x]
Feb 22 11:28:21 my_server sendmail[28601]: h1MJSH5U028598:
to=<ardeen at friend.com>, ctladdr=<catmom at my_domain.com> (504/504),
delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=30476,
relay=mail.rockstarr.net. [206.101.162.230], dsn=2.0.0, stat=Sent
(Message received OK)
*** Log entry for external mail
Feb 22 11:16:47 my_server mimedefang.pl[28539]: filter_relay rejected
host 66.35.250.206 (lists.sourceforge.net)
Feb 22 11:16:47 my_server mimedefang-multiplexor: Slave 0 stderr: Use of
uninitialized value at /usr/local/bin/mimedefang.pl line 4265, <STDIN>
chunk 5.
Feb 22 11:16:47 my_server sendmail[28585]: h1MJGk5U028585: Milter:
from=<spamassassin-talk-admin at lists.sourceforge.net>, reject=550 5.7.1
Command rejected
Feb 22 11:16:47 my_server sendmail[28585]: h1MJGk5U028585:
from=<spamassassin-talk-admin at lists.sourceforge.net>, size=4601,
class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=lists.sourceforge.net
[66.35.250.206]
More information about the MIMEDefang
mailing list