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

De MochilaWiki
Ir para navegaçãoIr para pesquisar
Sem resumo de edição
 
(Uma revisão intermediária pelo mesmo usuário não está sendo mostrada)
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>
== Referências ==
* 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/
* https://www.linuxbabe.com/mail-server/block-email-spam-check-header-body-with-postfix-spamassassin
* https://serverfault.com/questions/667268/postfix-2-9-or-sendmail-outgoing-spam-prevention-check-if-sender-exists
https://clients.javapipe.com/knowledgebase/132/How-to-Test-Sendmail-From-Command-Line-on-Linux.html

Edição atual tal como às 16h18min 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

Referências

https://clients.javapipe.com/knowledgebase/132/How-to-Test-Sendmail-From-Command-Line-on-Linux.html