Re: MIMEDefang filter_sender() sub not working

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

 



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 

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil


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

  Powered by Linux