Like I said, I was trying a simple test since going off the example wasn't working. I have looked at the man page and am still at a loss. Going from the example, this should work no?
sub filter_relay {
my($ip, $name, $helo) = @_;
if($ip eq "xxx.xxx.xxx.xxx") { # ip of trusted relay
return('ACCEPT_AND_NO_MORE_FILTERING', "ok");
}
return('CONTINUE', "ok");
}
Yet I am still getting the following in my mailog on the primary servers.
Feb 12 11:40:20 mail sendmail[25006]: i1CJeJR9025006: Milter change:
header X-Spam-Status: from No, hits=0.693 required=5\n
version=SpamAssassin 2.63 tests=HTML_60_70,HTML_MESSAGE,TW_PK to No,
hits=-4.208 required=5\n version=SpamAssassin 2.63
tests=BAYES_00,HTML_60_70,HTML_MESSAGE,TW_PK
Feb 12 11:40:20 mail sendmail[25006]: i1CJeJR9025006: Milter delete:
header X-MIMEDefang-Relay-f51b9e097d9b9fa662d5b18428d4106953b47558:
10.0.0.1
The Relay-Key has been changed to protect my real one. Also the ip listed
after the delete X-MIMEDefang-Relay is not my relay/secondary server, but
the ip that I connected to the relay on...Is that right? Doesn't seem like
that's the way it's suppose to work.
Forgive me if I'm out in left field here.
=- Mike
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David F.
Skoll
Sent: Thursday, February 12, 2004 11:01 AM
To: [EMAIL PROTECTED]
Subject: Re: [Mimedefang] filter_relay not working?
On Thu, 12 Feb 2004, Mike Smith wrote:
> sub filter_relay {
> my($ip, $name, $helo) = @_;
> action_add_header("X-From:","$ip");
> }
Will not work.
See the mimedefang-filter man page for reasons why.
Regards,
David.
_______________________________________________
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Visit http://www.mimedefang.org and http://www.canit.ca MIMEDefang mailing list [EMAIL PROTECTED] http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

