De acordo com o Ubuntu 14.04 Server Guide Filtro de correio :
Amavisd-new is a wrapper program that can call any number of content filtering programs for spam detection, antivirus, etc.
Você ainda precisa do SpamAssassin, então não deve ser desinstalado . Na verdade, amavisd-new-postfix
depende de spamassassin
, então remover o pacote com apt-get remove spamassassin
também removerá o Amavis.
Este gráfico visualiza como as peças se encaixam (com base no mesmo guia de filtragem de mensagens):
Vocêdeve
removaocanaldoSpamAssassindaconfiguraçãodoPostfix,ouseja,remova:
smtpinetn----smtpd-ocontent_filter=spamfilter
e
spamassassinunix-nn--pipeflags=Ruser=spamuserargv=/usr/bin/spamc-e/usr/sbin/sendmail-oi-f${sender}${recipient}
integreoAmavisaoPostfix.
ForPostfixintegration,enterthefollowingfromaterminalprompt:
sudopostconf-e'content_filter=smtp-amavis:[127.0.0.1]:10024'
Nextedit/etc/postfix/master.cfandaddthefollowingtotheendofthefile:
smtp-amavisunix----2smtp-osmtp_data_done_timeout=1200-osmtp_send_xforward_command=yes-odisable_dns_lookups=yes-omax_use=20127.0.0.1:10025inetn----smtpd-ocontent_filter=-olocal_recipient_maps=-orelay_recipient_maps=-osmtpd_restriction_classes=-osmtpd_delay_reject=no-osmtpd_client_restrictions=permit_mynetworks,reject-osmtpd_helo_restrictions=-osmtpd_sender_restrictions=-osmtpd_recipient_restrictions=permit_mynetworks,reject-osmtpd_data_restrictions=reject_unauth_pipelining-osmtpd_end_of_data_restrictions=-omynetworks=127.0.0.0/8-osmtpd_error_sleep_time=0-osmtpd_soft_error_limit=1001-osmtpd_hard_error_limit=1000-osmtpd_client_connection_count_limit=0-osmtpd_client_connection_rate_limit=0-oreceive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
Alsoaddthefollowingtwolinesimmediatelybelowthe"pickup" transport service:
-o content_filter= -o receive_override_options=no_header_body_checks