doc:appunti:linux:sa:spamass-milter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
doc:appunti:linux:sa:spamass-milter [2021/02/12 14:51] – [Configurazione system-wide] niccolo | doc:appunti:linux:sa:spamass-milter [2021/02/12 15:00] (current) – [Configurazione system-wide] niccolo | ||
---|---|---|---|
Line 50: | Line 50: | ||
</ | </ | ||
- | In **''/ | + | ===== Configurazione Postfix ===== |
+ | |||
+ | Per aggiungere il filtro milter è sufficiente mettere in **''/ | ||
< | < | ||
Line 57: | Line 59: | ||
</ | </ | ||
+ | Ovviamente con la regola generica **smtpd_milters** il filtro sarà **applicato a tutti i messaggi** (in entrata e in uscita). | ||
+ | |||
+ | Nel nostro caso invece vogliamo applicare il filtro **solo sui messaggi in uscita**, per evitare di fare SPAM relay a qualche utente che ha avuto l' | ||
+ | |||
+ | Ecco come applicare il filtro solo per gli utenti autenticati che accedono al servizio submission sulla porta 587. In **master.cf** si aggiunge il parametro **'' | ||
+ | |||
+ | < | ||
+ | submission inet n | ||
+ | -o syslog_name=postfix/ | ||
+ | -o smtpd_tls_security_level=encrypt | ||
+ | -o smtpd_sasl_auth_enable=yes | ||
+ | -o smtpd_tls_auth_only=yes | ||
+ | -o smtpd_client_restrictions=permit_sasl_authenticated, | ||
+ | -o smtpd_milters=$mua_milters | ||
+ | -o smtpd_sender_restrictions=$mua_sender_restrictions | ||
+ | -o smtpd_relay_restrictions=$mua_relay_restrictions | ||
+ | </ | ||
+ | |||
+ | in **main.cf** si definisce il **$mua_milters**: | ||
+ | |||
+ | < | ||
+ | # Restriction applied as smtpd_milters over SUMBISSION/ | ||
+ | mua_milters = unix: | ||
+ | </ |
doc/appunti/linux/sa/spamass-milter.1613141505.txt.gz · Last modified: 2021/02/12 14:51 by niccolo