MIMEDefang filter_sender() sub not working

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Thu Oct 28 21:53:58 UTC 2004


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


-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.8-1.521smp 
Serendipity 23:52:23 up 8 days, 20:31, load average: 0.38, 0.50, 0.36 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20041028/030f691b/attachment-0001.sig>


More information about the fedora-list mailing list