[Postfix-br] Bloquear email

Julio Cesar Covolato julio em psi.com.br
Sexta Outubro 23 19:11:50 BRST 2015


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 at xyz.com.br' 
pcre:/etc/postfix/header_checks

REJECT "MSG FROM:  return-dfdfgdffg at xyz.com.br NOT ALLOWED"


Att.

-----------------------------
     _    Engº Julio Cesar Covolato
    0v0   <julio at 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 at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/postfix-br



More information about the Postfix-br mailing list