Письма не помечаются как спам в exim
Добрый день!
Подскажите, пожалуйста, в чем у меня проблема. exim не помечает письма
как спам. Вот что у меня имеется, приведу acl_check_data
acl_check_data:
accept hosts = : +whitelisted_hosts
deny
condition = ${if and {{def:h_X-MSMail-Priority:}{!def:h_X-MimeOLE:}\
{!match{$h_X-Mailer:}{\N^Microsoft Outlook.*$\N}}}{1}{0}}
condition = ${if and {{def:h_X-MSMail-Priority:}\
{!match{$h_X-Mailer:}{\N^Microsoft\ Internet\ Mail\
4\.70\.11(55|61)$\N}}}{1}{0}}
log_message = Fake X-Mailer (X-MSMail-Priority (1))
message = SPAM does not allowed\n\
Please contact postmaster\@ with any questions
deny message = rejected because recognized as spam sent by a \
virus/trojan/zombie/bot
condition = ${if def:acl_c_grey_checked}
condition = ${if eq{$received_protocol}{smtp}}
condition = ${if match{$rheader_Content-Transfer-Encoding:}{7bit}}
condition = ${if match{$message_body}\
{\Nhttp://[a-z]+\.com\n\n[A-Z][a-z]+ [A-Z][a-z]+\n\n\Z\N}}
condition = ${if !match{$message_body}{http://.+http://}}
deny message = rejected because recognized as Russian spam
condition = ${if match{$recipients}{^postmaster@[^@]+\$}}
condition = ${if match{$rheader_From:}\
{\N^(\t| )(=\?koi8-r\?B\?I|\")\N}}
condition = ${if match{$message_body}\
{\N([.-.\d]{5} {5,9}\S[^\n\r]+[\n\r]+){2}\N}}
accept hosts = 192.168.203.14 : 192.168.1.1 : 192.168.5.1
accept condition = ${if !match{$message_headers_raw}\
{\N\A([^\n]+\n[ \t])+[^\n]+\nReceived: from \[?\N$sender_host_address\\]? by }}
warn message = X-Spam-Flag: YES
spam = nobody
warn message = X-Spam-Score: $spam_score ($spam_bar)
hosts = !+relay_from_hosts
condition = ${if <{$message_size}{60k}{1}{0}}
spam = nobody:true
warn message = X-Spam-Report: $spam_report
hosts = !+relay_from_hosts
condition = ${if <{$message_size}{60k}{1}{0}}
spam = nobody:true
warn message = Subject: [SPAM $spam_score hits] $rh_Subject:
hosts = !+relay_from_hosts
spam = nobody
deny message = This message scored $spam_score spam points.
hosts = !+relay_from_hosts
spam = nobody:true
condition = ${if >{$spam_score_int}{150}{1}{0}}
accept condition = ${if def:acl_c_grey_checked}
defer set acl_c_grey_checked = deferred/greylisted because of \
fake Received line in the header
!hosts = +relay_from_hosts
message = $acl_c_grey_checked
set acl_m_greyfile = /var/spool/exim4/greylist/${length_255:\
${sg{$sender_host_address}{\N\.\d+$\N}{}},\
${tr{$sender_address,${sg{$recipients}{[, ]+}{;}}}{/}{;}}}
condition = ${if exists{$acl_m_greyfile}\
{${if >{${eval:$tod_epoch-\
${extract{mtime}{${stat:$acl_m_greyfile}}}}}{180}{0}{1}}}\
{${if eq{${run{/usr/bin/touch $acl_m_greyfile}}}{}{1}{1}}}}
accept add_header = X-OOOOOOOOOOOOOOOOOOOOOOOOOO: passed greylisting \
fake Received
logwrite = passed greylisting fake Received \
${sg{$sender_rcvhost}{\N[\n\t]+\N}{\040}}
Грейлистинг работает отлично, стоит в конфиге он после того как должны
отрабатываться письма со спамом. Не понимаю, почему они не помечаются.
--
С уважением, Алексей
Reply to: