[Postfix-br] Bloquear email

Junior Plug Tecnologia arezendejunior em gmail.com
Sexta Outubro 23 20:02:44 BRST 2015


Beleza,  obrigado gente pela atenção.  Esses return....  são 99,9% spam

Em 23 de outubro de 2015 19:11:50 BRST, Julio Cesar Covolato <julio em psi.com.br> escreveu:
>Olá Aguimar.
>
>edite /etc/postfix/header_checks
>Adicione no final:
>
>/^from:(.*return-.*\@)(.*)/    REJECT "MSG FROM: $1$2 NOT ALLOWED"
>
>salve o arquivo.
>
>execute os comandos:
>
>$ postconf -e "header_checks = pcre:/etc/postfix/header_checks"
>$ postfix reload
>
>Pronto!
>
>Se quiser testar na linha de comando:
>$ postmap -q 'from: return-dfdfgdffg em xyz.com.br' 
>pcre:/etc/postfix/header_checks
>
>REJECT "MSG FROM:  return-dfdfgdffg em xyz.com.br NOT ALLOWED"
>
>
>Att.
>
>-----------------------------
>     _    Engº Julio Cesar Covolato
>    0v0   <julio em psi.com.br>
>   /(_)\  F: 55-11-3129-3366
>    ^ ^   PSI INTERNET
>-----------------------------
>
>Em 23/10/2015 14:39, Aguimar Rezende Junior escreveu:
>> Boa tarde galera
>>
>> Como eu faria pra bloquear todo email que comece com 
>> return-algumacoisa....   ou seja return-*
>>
>> Obrigado
>>
>> Aguimar
>> _______________________________________________
>> Postfix-br mailing list
>> Postfix-br em listas.softwarelivre.org
>> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/postfix-br
>
>_______________________________________________
>Postfix-br mailing list
>Postfix-br em listas.softwarelivre.org
>http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/postfix-br

-- 
E-mail enviado do meu celular Android usando K-9 Mail. Por favor, desculpe minha brevidade.
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://listas.softwarelivre.org/pipermail/postfix-br/attachments/20151023/bb643d64/attachment.html>


More information about the Postfix-br mailing list