[MASOCH-L] [ SPAM ] Re: Re: Re: Re: Top 100 spammers by SPFBL

Leandro Carlos Rodrigues leandro at allchemistry.com.br
Tue Aug 18 11:32:01 BRT 2015


Em 18/08/2015 11:26, Roberto Lima escreveu:
> Sim, mas uso ele com exim ;D

Então é moleza. Eu também uso Exim. Faça o seguinte:

Na secção "acl_check_mail" da configuração do Exim, coloque as seguintes 
linhas:

       # Use spfblquery.sh to perform SPFBL check.
       warn
         !senders = :
         set acl_c_spfbl = ${run{/usr/local/bin/spfblquery.sh
    $sender_host_address $sender_address $sender_helo_name}{ERROR}{$value}}
         set acl_c_spfreceived = $runrc
         set acl_c_spfblticket = ${sg{$acl_c_spfbl}{(PASS |SOFTFAIL
    |NEUTRAL |NONE )}{}}
       drop
         message = [SPF] $sender_host_address is not allowed to send
    mail from $sender_address. Please see
    http://www.openspf.org/why.html?sender=$sender_address&ip=$sender_host_address
    for details.
         log_message = SPF check failed.
         condition = ${if eq {$acl_c_spfreceived}{3}{true}{false}}
       defer
         message = A transient error occurred when checking SPF record
    from $sender_address, preventing a result from being reached. Try
    again later.
         log_message = SPF check error.
         condition = ${if eq {$acl_c_spfreceived}{6}{true}{false}}
       deny
         message = One or more SPF records from $sender_address_domain
    could not be interpreted. Please see
    http://www.openspf.org/SPF_Record_Syntax for details.
         log_message = SPF check unknown.
         condition = ${if eq {$acl_c_spfreceived}{7}{true}{false}}
       drop
         message = You are blocked in this server for seven days.
         log_message = SPF check listed.
         condition = ${if eq {$acl_c_spfreceived}{8}{true}{false}}

Com posse desta variável "acl_c_spfbl", eu vá lá na seção 
"acl_check_data" e coloque estas linhas:

       warn
         condition = ${if def:acl_c_spfbl {true}{false}}
         add_header = Received-SPFBL: $acl_c_spfbl

O SPFBL é executado na secção "acl_check_mail" e em seguida o Exim 
adiciona o cabeçalho "Received-SPFBL" na seção "acl_check_data".

Mas precisa na liberação do firewall para funcionar. Você precisa me 
passar os IPs ou blocos.

>
> Em 18 de agosto de 2015 11:24, Leandro Carlos Rodrigues <
> leandro at allchemistry.com.br> escreveu:
>
>> >Em 18/08/2015 11:17, Roberto Lima escreveu:
>> >
>>> >>Ainda busco uma solução pra integrar ao mailscanner rs
>>> >>
>> >
>> >Olhando por cima aqui, vejo que o mailscanner é baseado em Postfix. É isso
>> >mesmo ou estou viajando?



More information about the masoch-l mailing list