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