MIMEDefang filter_sender() sub not working

Marcel J.E. Mol marcel at mesa.nl
Thu Oct 28 20:48:34 UTC 2004


On Thu, Oct 28, 2004 at 04:32:56PM -0400, Yang Xiao wrote:
> Hi guys, 
> 
> I tried to get help from the MIMEDefang list, but my posts seemed to
> be invisible on there for some reason. So if any of you are a
> MIMEDefang user, maybe you can help me on this.
> I'm just trying to get my feet wet by adding a sample sub like this in
> 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");
> }
> 
> I don't expect to ever receive incoming email from my own domain on this box.
> 
> But this is not working, any ideas?

Are you running in multiplexer mode and do you use the -s option to mimedefang?
To see if somehow your 'if' statement fails just try:

     sub filter_sender {
             my ($sender, $ip, $hostname, $helo) = @_;

             return (CONTINUE,"OK");
     }

And check if all mail is blocked or not.

-Marcel

-- 
     ======--------         Marcel J.E. Mol                MESA Consulting B.V.
    =======---------        ph. +31-(0)6-54724868          P.O. Box 112
    =======---------        marcel at mesa.nl                 2630 AC  Nootdorp
__==== www.mesa.nl ---____U_n_i_x______I_n_t_e_r_n_e_t____ The Netherlands ____
 They couldn't think of a number,           Linux user 1148  --  counter.li.org
    so they gave me a name!  -- Rupert Hine  --  www.ruperthine.com




More information about the fedora-list mailing list