MIMEDefang filter_sender() sub not working

Yang Xiao yxiao2004 at gmail.com
Fri Oct 29 13:24:26 UTC 2004


On Fri, 29 Oct 2004 09:13:34 -0400, Yang Xiao <yxiao2004 at gmail.com> wrote:
> 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
> 
Hm...spoke too soon, it actually checks just the HELO line, once you
get past that, you can do anything you want.

Yang




More information about the fedora-list mailing list