MIMEDefang filter_sender() sub not working
Yang Xiao
yxiao2004 at gmail.com
Fri Oct 29 13:13:34 UTC 2004
On Thu, 28 Oct 2004 23:53:58 +0200, Alexander Dalloz
<alexander.dalloz at uni-bielefeld.de> wrote:
> Am Do, den 28.10.2004 schrieb Yang Xiao um 22:32:
>
> > the mimedefang-filter file
> >
> > #
> > # Filter Sender who says they are OHPP.COM
> > #
> > sub filter_sender {
> > my ($sender, $ip, $hostname, $helo) = @_;
> > if ($helo =~ /ohpp\.com$/i) {
> > return (REJECT, "goaway.");
> > }
> > return (CONTINUE,"OK");
> > }
>
> > Yang
>
> Keep care to correctly quote! See the "man 5 mimedefang-filter"
> examples.
>
> return ('REJECT', "goaway.");
>
> and
>
> return ('CONTINUE',"OK");
>
> Seems small, but it is important.
>
> Alexander
>
Alex,
Thanks for the help, it was the MX_SENDER_CHECK configuration line. It
turns out this checks the MAIL FROM: header, not the HELO line, which
actually works better. Thanks!
Yang
More information about the users
mailing list