ignorar alguns domínios no exim se condição

1

Eu tenho este código em / etc / cpanel_exim_system_filter para poder pesquisar e filtrar spammers no corpo e no cabeçalho do email. Quero adicionar alguns dominios excluir esta regra por exemplo *@gmail.com, *@mail.com como posso estender se comando para poder excluir esses dominios?

# SPAM FILTER START
if
# Header Spam
$header_subject: contains "Pharmaceutical"
or $header_subject: contains "Viagra"
or $header_subject: contains "seo"
or $header_subject: contains "Cialis"
or $header_subject: is "The Ultimate Online Pharmaceutical"
# Body Spam
or $message_body: contains "Pharmaceutical"
or $message_body: contains "website audit"
or $message_body: contains "Pay-On-Results"
or $message_body: contains "improve your website"
or $message_body: contains "Viagra"
or $message_body: contains "sex"
or $message_body: contains "seo"
then
  fail text "This message has been rejected by spam filter\n\
             WARNING! THIS MESSAGE HAS NOT BEEN delivered."
        seen finish
endif
# SPAM FILTER FINISHED
    
por danone 03.12.2017 / 04:29

1 resposta

0

Você pode testar o final do cabeçalho "De", por exemplo,

$header_from: does not end <whitelisted domain>

Levando a algo como:

if
# Excluded domains
$header_from: does not end "example.com"
and $header_from: does not end "example.org"
...
and (
# Header Spam
$header_subject: contains "Pharmaceutical"
or ...
# Body Spam
or ...
)
then
  fail text "This message has been rejected by spam filter\n\
             WARNING! THIS MESSAGE HAS NOT BEEN delivered."
        seen finish
endif

Mais informações: link

    
por 03.12.2017 / 07:35

Tags