Bloqueando SPAM no e-mail: mudanças entre as edições

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Sem resumo de edição
Linha 1: Linha 1:
em /etc/postfix/body_checks.pcre adicione
/lotofácil/    DISCARD
/Cidadania Italiana/    DISCARD
Rode o comando
<source lang="bash">
postmap /etc/postfix/body_checks.pcre
</source>
e reinicie o postfix
<source lang="bash">
service postfix restart
</source>
pode testar assim
<source lang="bash">
postmap -q "lotofácil" pcre:/etc/postfix/body_checks.pcre
</source>
ou criando um arquivo assim
To: test@seudominio.com.br
Subject: sendmail test two
From: test@seudominio.com.br
And here goes the e-mail body, test test test.. lotofácil
e rode o comando
<source lang="bash">
sendmail -vt < mensagem-de-teste.txt
</source>
* https://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/
* https://www.cyberciti.biz/faq/howto-blacklist-reject-sender-email-address/
* http://serverfault.com/questions/728641/blacklisting-tld-in-postfix
* http://serverfault.com/questions/728641/blacklisting-tld-in-postfix
* http://www.linuxquestions.org/questions/linux-server-73/how-to-reject-addresses-by-tld-in-postfix-678757/
* http://www.linuxquestions.org/questions/linux-server-73/how-to-reject-addresses-by-tld-in-postfix-678757/

Edição das 16h17min de 2 de janeiro de 2021

em /etc/postfix/body_checks.pcre adicione

/lotofácil/     DISCARD
/Cidadania Italiana/     DISCARD

Rode o comando

postmap /etc/postfix/body_checks.pcre

e reinicie o postfix

service postfix restart

pode testar assim

postmap -q "lotofácil" pcre:/etc/postfix/body_checks.pcre

ou criando um arquivo assim

To: test@seudominio.com.br
Subject: sendmail test two
From: test@seudominio.com.br

And here goes the e-mail body, test test test.. lotofácil

e rode o comando

sendmail -vt < mensagem-de-teste.txt