Re: MIMEDefang filter_sender() sub not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 29 Oct 2004 09:13:34 -0400, Yang Xiao <yxiao2004@xxxxxxxxx> wrote:
> On Thu, 28 Oct 2004 23:53:58 +0200, Alexander Dalloz
> <alexander.dalloz@xxxxxxxxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux