This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
защита_почты_от_вирусов_и_spamа [2020/08/31 08:47] val [Технология взвешенной оценки] |
защита_почты_от_вирусов_и_spamа [2021/06/10 10:10] (current) admin [Технология взвешенной оценки] |
||
|---|---|---|---|
| Line 108: | Line 108: | ||
| use_bayes 0 | use_bayes 0 | ||
| # required_score 5.0 | # required_score 5.0 | ||
| - | trusted_networks 192.168.X | + | trusted_networks 192.168.X # must be set for cgpav because default ALL_TRUSTED !!! |
| - | # add_header all Report _REPORT_ | + | add_header all Report _REPORT_ |
| - | # score RCVD_IN_BL_SPAMCOP_NET 10.0 | + | score BODY_SINGLE_WORD 10.0 |
| </code><code> | </code><code> | ||
| gate# spamassassin --lint # Проверка конфигурации | gate# spamassassin --lint # Проверка конфигурации | ||
| Line 143: | Line 143: | ||
| root@gate:~# less /etc/default/spamass-milter | root@gate:~# less /etc/default/spamass-milter | ||
| - | |||
| - | root@gate:~# service spamass-milter restart | ||
| root@gate:~# cat /etc/postfix/main.cf | root@gate:~# cat /etc/postfix/main.cf | ||
| Line 194: | Line 192: | ||
| ==== Технология Grey List ==== | ==== Технология Grey List ==== | ||
| - | * [[http://ru.wikipedia.org/wiki/Серый_список]] | + | * [[https://ru.wikipedia.org/wiki/%D0%A1%D0%B5%D1%80%D1%8B%D0%B9_%D1%81%D0%BF%D0%B8%D1%81%D0%BE%D0%BA|Серый список]] |
| * RFC 2821 4.5.4.1 ([[http://rfc.com.ru/rfc2821.htm]]) | * RFC 2821 4.5.4.1 ([[http://rfc.com.ru/rfc2821.htm]]) | ||
| + | |||
| + | === Postfix (Debian/Ubuntu) === | ||
| + | |||
| + | [[http://vladimir-stupin.blogspot.com/2009/09/postfix-postgrey.html]] | ||
| + | |||
| + | <code> | ||
| + | root@gate:~# apt install postgrey | ||
| + | |||
| + | root@gate:~# less /etc/default/postgrey | ||
| + | |||
| + | root@gate:~# cat /etc/postfix/main.cf | ||
| + | </code><code> | ||
| + | ... | ||
| + | smtpd_recipient_restrictions = permit_mynetworks, | ||
| + | reject_unauth_destination, | ||
| + | check_policy_service inet:127.0.0.1:10023 | ||
| + | </code><code> | ||
| + | root@gate:~# service postfix restart | ||
| + | |||
| + | root@gate:~# ls /var/lib/postgrey/ | ||
| + | |||
| + | root@gate:~# postgreyreport < /var/log/mail.log | ||
| + | </code> | ||
| === Semdmail (FreeBSD) === | === Semdmail (FreeBSD) === | ||
| Line 244: | Line 265: | ||
| [gate:~] # cat /var/milter-greylist/greylist.db | [gate:~] # cat /var/milter-greylist/greylist.db | ||
| </code> | </code> | ||
| - | |||
| - | === Postfix (Debian/Ubuntu) === | ||
| - | |||
| - | [[http://vladimir-stupin.blogspot.com/2009/09/postfix-postgrey.html]] | ||
| - | |||
| - | <code> | ||
| - | root@gate:~# apt-get install postgrey | ||
| - | |||
| - | root@gate:~# less /etc/default/postgrey | ||
| - | |||
| - | root@gate:~# cat /etc/postfix/main.cf | ||
| - | </code><code> | ||
| - | ... | ||
| - | smtpd_recipient_restrictions = permit_mynetworks, | ||
| - | reject_unauth_destination, | ||
| - | check_policy_service inet:127.0.0.1:10023 | ||
| - | </code><code> | ||
| - | root@gate:~# ls /var/lib/postgrey/ | ||
| - | |||
| - | root@gate:~# postgreyreport < /var/log/mail.log | ||
| - | </code> | ||
| - | |||
| ===== Использование пакета AmavisNew для контексной фильрации почты ===== | ===== Использование пакета AmavisNew для контексной фильрации почты ===== | ||
| https://help.ubuntu.com/community/PostfixAmavisNew | https://help.ubuntu.com/community/PostfixAmavisNew | ||