######################################################################################### РОУТЕР ####################################################################################################### # Следующий маршрут используется для прохождения и проверки всей входящей и исходящей почты. spamscan_router: # для непроверенных no_verify # удалить заголовки содержащие headers_remove = X-FILTER-SPAM : X-Spam-Score : X-Spam-Score-Gate : X-Spam-Report : X-Spam-Gate-Subject : X-Spam-Flag : X-S # если condition = "${if and {{!eq{$received_protocol}{spam-scanned}} {!def:h_X-FILTER-SPAM:}} {1}{0}}" # если 1 - то разрешить проход driver = accept # если 0 - то добавить в заголовки headers_add = X-FILTER-SPAM: ICF Team Spam Filter on $primary_hostname, $tod_full \ X-SENDER-INFO: ${if def:authenticated_id {ID - ${authenticated_id},}} \ ${if def:authenticated_sender {authenticated_sender - ${authenticated_sender},}} \ ${if def:sender_ident {rfc1413(ident) - ${sender_ident},}} \ ${if def:originator_uid {UID - ${originator_uid},}} \ ${if def:originator_gid {GID - ${originator_gid}}} # local_parts = !addham:!addspam:!ham:!spam:!sexy # перекинуть на транспорт transport = spamcheck_transport ## transport = mysql_delivery # require_files = /usr/local/dspam/var/spool:/usr/local/dspam/bin/dspam ######################################################################################### ТРАНСПОРТ ####################################################################################################### # Этот транспор запускает спам-фильтр и классифицирует входящие и исходящие письма. spamcheck_transport: driver = pipe command = "/usr/sbin/exim -oi -oMr spam-scanned -bS" transport_filter = /usr/local/dspam/bin/dspam --stdout --deliver=innocent,spam --user $local_part@$domain \ --mail-from "${lc:$sender_address}" --rcpt-to "${lc:$local_part}@${lc:$domain}" user = exim group = mail use_bsmtp = true home_directory = "/usr/local/dspam/var/spool" current_directory = "/usr/local/dspam/var/spool" delivery_date_add = true return_path_add = true envelope_to_add = true log_fail_output = true log_defer_output = true return_fail_output = true message_prefix = "" message_suffix = "" temp_errors = * #########################################################################################при включении в exim.conf данного РОУТЕРА очищается кодировка из поля Subject: и поля From: получается ######################################################################################### Return-path: <|szbh@optusnet.com.au> Envelope-to: mail@skfoms.ru Delivery-date: Sat, 24 Jan 2009 20:51:09 +0300 Received: from exim by mail.skfoms.ru with spam-scanned (Exim 4.63) (envelope-from <|szbh@optusnet.com.au>) id 1LQmey-0009oX-AV for mail@skfoms.ru; Sat, 24 Jan 2009 20:51:09 +0300 Received: from [88.231.166.252] (port=12767) by mail.skfoms.ru with esmtp (Exim 4.63) (envelope-from <|szbh@optusnet.com.au>) id 1LQmex-0009oU-Fz for mail@skfoms.ru; Sat, 24 Jan 2009 20:51:08 +0300 Date: Sat, 24 Jan 2009 19:52:24 +0200 From: Мударрис Тамьян <|szbh@optusnet.com.au> X-Priority: 3 (Normal) Message-ID: <2029806984.46485737939653@optusnet.com.au> To: mail@skfoms.ru Subject: ЗДЕСЬ МОЖEТ БЫТЬ ВАША РЕКЛАМА MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-FILTER-SPAM: ICF Team Spam Filter on mail.skfoms.ru, Sat, 24 Jan 2009 20:51:08 +0300 X-SENDER-INFO: UID - 0, GID - 0 X-DSPAM-Result: Innocent X-DSPAM-Confidence: 0.7996 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 497b550d377316341411227 ######################################################################################### а должно ######################################################################################### Return-path: <|szbh@optusnet.com.au> Envelope-to: mail@skfoms.ru Delivery-date: Sat, 24 Jan 2009 20:51:09 +0300 Received: from exim by mail.skfoms.ru with spam-scanned (Exim 4.63) (envelope-from <|szbh@optusnet.com.au>) id 1LQmey-0009oX-AV for mail@skfoms.ru; Sat, 24 Jan 2009 20:51:09 +0300 Received: from [88.231.166.252] (port=12767) by mail.skfoms.ru with esmtp (Exim 4.63) (envelope-from <|szbh@optusnet.com.au>) id 1LQmex-0009oU-Fz for mail@skfoms.ru; Sat, 24 Jan 2009 20:51:08 +0300 Date: Sat, 24 Jan 2009 19:52:24 +0200 From: ?koi8-r?B?mnbKIUYIu*(&9Y(*Y(*YJKL*(9&98&*hHK X-Priority: 3 (Normal) Message-ID: <2029806984.46485737939653@optusnet.com.au> To: mail@skfoms.ru Subject: ?koi8-r?B?ldfskgsdfsgd@$#^@#%$3223s45gs32452345dfgsdfgDSFGSDFKGdsER456436534 MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit X-FILTER-SPAM: ICF Team Spam Filter on mail.skfoms.ru, Sat, 24 Jan 2009 20:51:08 +0300 X-SENDER-INFO: UID - 0, GID - 0 X-DSPAM-Result: Innocent X-DSPAM-Confidence: 0.7996 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 497b550d377316341411227 ######################################################################################### что можно сделать для решения этой проблемы?
|