URL: https://www.opennet.ru/cgi-bin/openforum/vsluhboard.cgi
Форум: vsluhforumID1
Нить номер: 57651
[ Назад ]

Исходное сообщение
"Spamassassin: убиваются все письма."

Отправлено Poask , 23-Июн-05 20:46 
Всем привет.
Стоял сервер почтовый. На postfix`e. Решил прикрутить spamassassin.
Вроде прикрутился.
Сейчас же все письма куда-то деваются. Ни локальные не приходят, ни для домена, для которого постфикс почту релеит.

Вот логи для письма:

Jun 23 20:37:28 mail spamd[2031]: connection from mail.domain.ru [127.0.0.1] at port 43225
Jun 23 20:37:28 mail spamd[2031]: info: setuid to spamfilter succeeded
Jun 23 20:37:28 mail spamd[2031]: processing message <6552503974.20050623123916@primaryall.com> for spamfilter:502.
Jun 23 16:37:28 mail postfix/smtpd[2631]: disconnect from unknown[209.124.86.103]
Jun 23 20:37:29 mail spamd[2031]: identified spam (12.2/5.0) for spamfilter:502 in 1.5 seconds, 8469 bytes.
Jun 23 20:37:29 mail spamd[2031]: result: Y 12 - FROM_ILLEGAL_CHARS,HTML_40_50,HTML_FONT_BIG,HTML_MESSAGE,MIME_BASE64_BLANKS,MIME_BA
SE64_TEXT,MIME_HTML_ONLY,NO_DNS_FOR_FROM,PRIORITY_NO_NAME,RCVD_IN_SBL,URIBL_OB_SURBL,URIBL_SC_SURBL,URIBL_WS_SURBL scantime=1.5,size
=8469,mid=<6552503974.20050623123916@primaryall.com>,autolearn=spam
Jun 23 20:37:29 mail postfix/pipe[2741]: 4846B4BC792: to=<domain@domain.ru>, relay=filter, delay=2, status=sent (mail.domain.ru)
Jun 23 20:37:29 mail postfix/qmgr[2517]: 4846B4BC792: removed

А вот куда оно потом девается - фиг знает!
Подскажите может чего?
Спасибо!!!

Конфиги:
master.cf

#
# Postfix master process configuration file.  For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp    inet    n       -       y       -       -       smtpd -o content_filter=filter
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#       -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps    inet  n       -       n       -       -       smtpd
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission   inet    n       -       n       -       -       smtpd
#  -o smtpd_etrn_restrictions=reject
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
filter    unix  -   n   n   -   -   pipe    flags=R user=spamfilter argv=/usr/bin/spamc -u spamfilter -f ${sender} -- ${recipient}

local.cf
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)

# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.

#required_hits 5
#report_safe 0
#rewrite_header Subject [SPAM]

#Skol'ko ochkov dolzhno poluchit' soobschenie chto-by ono bylo markirovano kak spam    
required_hits           5.0

#Izmenyaem zagolovki soobschenii kotorye klasifitsirovany kak spam  
rewrite_subject         1

#Tekst kotoryi budet dobavlen pered zagolovkom
subject_tag             *****SPAM*****

# Ispol'zovat' korotkii otchet
use_terse_report        0

# Enable the Bayes system
use_bayes               1

# Enable Bayes auto-learning
auto_learn              1

# Enable or disable network checks
skip_rbl_checks         0
use_razor2              1
use_dcc                 1
use_pyzor               1

# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english russian
ok_languages            en ru

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.


Содержание

Сообщения в этом обсуждении
"То есть такое ощущение, что spamc не отдает назад письма"
Отправлено Poask , 23-Июн-05 20:59 
Вообще как в теории? постфик отдал spamc на проверку, а тот должен вернуть для доставки?
Почему только отдается в spamc, а ничего назад не получается?

"да, и еще такое в логах:"
Отправлено Poask , 23-Июн-05 21:13 
Jun 23 21:07:36 mail postfix/pipe[3085]: 83CBE4BC79F: to=<anuser@andomain.ru>, relay=filter, delay=25441, status=bounced (Command
time limit exceeded: "/usr/bin/spamc". Command output: Return-Path: <user@domain.ru> Received: from user (unknown [10.x.x
.75])  by mail.domain.ru (Postfix) with ESMTP id 83CBE4BC79F  for <anuser@andomain.ru>; Thu, 23 Jun 2005 10:03:35 +0000 (UTC)
From: "Ivan" <user@domain.ru> To: <anuser@andomain.ru> Subject: Spam.cfg.rar Date: Thu, 23 Jun 2005 14:03:59 +0400
MIME-Version: 1.0 Content-Type: multipart/mixed;  boundary="----=_NextPart_000_0009_01C577FC.66F19720" X-Mailer: Microsoft Office Ou
tlook, Build 11.0.5510 Thread-Index: AcV32t/DUvXAmgegQte4OjIixnas+Q== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Messa
ge-Id: <20050623100335.83CBE4BC79F@mail.domain.ru>  This is a multi-part message in MIME format.  ------=_NextPart_000_0009_01C57
7FC.66F19720 Content-Type: text/plain;  charset="koi8-r" Content-Transfer-Encoding: 7bit        Spa

"Ну может кто чего подскажет?..."
Отправлено Poask , 24-Июн-05 12:12 
Куда посмотреть? Почему smapc не отдает назад письма?

"Ну может кто чего подскажет?..."
Отправлено jonatan , 24-Июн-05 12:17 
>Куда посмотреть? Почему smapc не отдает назад письма?
man spamc
...
It will read the
       mail from STDIN, and spool it to its connection to spamd, then read the
       result back and print it to STDOUT.
...

"Ну может кто чего подскажет?..."
Отправлено Poask , 24-Июн-05 12:25 
>It will read the
>       mail from STDIN, and spool
>it to its connection to spamd, then read the
>       result back and print it
>to STDOUT.

А как сделать корректно?
Почему везде в мануалах написаны конфиги, которые я попытался прикрутить - и не работает...


"Ну может кто чего подскажет?..."
Отправлено jonatan , 24-Июн-05 12:29 
Интересно взглянуть на эти конфиги из мануалов.

"jonatan, "
Отправлено Poask , 24-Июн-05 12:30 
На том же опеннете куча примеров как связать postfix и SA. Везде примерно так написано.

Может быть, Вы подскажите корректный способ их состыковки? Или хотя бы пару слов как это сделать...
Заранее спасибо!


"jonatan, "
Отправлено jonatan , 24-Июн-05 12:44 
>На том же опеннете куча примеров как связать postfix и SA. Везде
>примерно так написано.
Ну киньте ссылку, где Вы это нашли.

>Может быть, Вы подскажите корректный способ их состыковки? Или хотя бы пару
>слов как это сделать...
>Заранее спасибо!
https://www.opennet.ru/base/sec/spamassassin.txt.html


"Spamassassin: убиваются все письма."
Отправлено Sargan Saor , 24-Июн-05 15:29 
в master.cf

-o content_filter=filter

сделайте

-o content_filter=filter:dummy


"Spamassassin: убиваются все письма."
Отправлено jonatan , 24-Июн-05 15:39 
>в master.cf
>
>-o content_filter=filter
>
>сделайте
>
>-o content_filter=filter:dummy
Работает и без этого.