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

Исходное сообщение
"Проблема с SpamAssassin Debian"

Отправлено Хортица , 06-Авг-08 10:09 
После установки SA на Дебиане, возникли проблемы, а именно:
в /var/lib/mail.err

Aug  5 18:26:40 cci spamc[6230]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Aug  5 18:26:40 cci spamc[6228]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
..........................
Aug  5 18:27:12 cci spamc[6454]: exec failed: No such file or directory
Aug  5 18:27:18 cci spamc[6456]: exec failed: No such file or directory
Aug  5 18:27:24 cci spamc[6458]: exec failed: No such file or directory

SA работает в связке с PostFix.
SA устанавливал по http://www.debuntu.org/postfix-and-pamassassin-how-to-filter...
Помогите помочь и устрарнить ошибку. Ниже конфиги PostFix & SpamAssassin


# cat /etc/postfix/master.cf
#
# Postfix master process configuration file.  Each logical line
# describes how a Postfix daemon program should be run.
#
#
# DO NOT SHARE THE POSTFIX QUEUE BETWEEN MULTIPLE POSTFIX INSTANCES.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       n       -       -       smtpd
       -o content_filter=spamassassin
#submission inet n      -       n       -       -       smtpd
#       -o smtpd_etrn_restrictions=reject
#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
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
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
#
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# maildrop. See the Postfix MAILDROP_README file for details.
#
maildrop  unix  -       n       n       -       -       pipe
  flagsRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. usersmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}

# only used by postfix-tls
#tlsmgr   fifo  -       -       n       300     1       tlsmgr
#smtps    inet  n       -       n       -       -       smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#587      inet  n       -       n       -       -       smtpd -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
scache    unix  -       -       n       -       1       scache
discard   unix  -       -       n       -       -       discard
spamassassin unix  -      n       n       -       -       pipe
        user=spamd argv=/usr/bin/spamc -f -e
        /usr/bin/sendmail -oi -f ${sender} ${recipient} cci:~#


# cat /etc/default/spamassassin
# /etc/default/spamassassin
# Duncan Findlay

# WARNING: please read README.spamd before using.
# There may be security risks.

# Change to one to enable spamd
ENABLED=1
SAHOME="/var/lib/spamassassin/"
# Options
# See man spamd for possible options. The -d option is automatically added.

# SpamAssassin uses a preforking model, so be careful! You need to
# make sure --max-children is not set to anything higher than 5,
# unless you know what you're doing.

OPTIONS="--create-prefs --max-children 5 --username spamd --helper-home-dir ${SAHOME} -s ${SAHOME}spamd.log"

# Pid file
# Where should spamd write its PID to file? If you use the -u or
# --username option above, this needs to be writable by that user.
# Otherwise, the init script will not be able to shut spamd down.
PIDFILE="${SAHOME}spamd.pid"

# Set nice level of spamd
#NICE="--nicelevel 15"


Содержание

Сообщения в этом обсуждении
"Проблема с SpamAssassin Debian"
Отправлено Vagif Zeynalov , 06-Авг-08 13:42 
>После установки SA на Дебиане, возникли проблемы, а именно:
>в /var/lib/mail.err
>
 
>Aug  5 18:26:40 cci spamc[6230]: connect(AF_INET) to spamd at 127.0.0.1 failed,
>retrying (#3 of 3): Connection refused
>Aug  5 18:26:40 cci spamc[6228]: connect(AF_INET) to spamd at 127.0.0.1 failed,
>retrying (#3 of 3): Connection refused

все просто, оно не находит spamd демона на адресе 127.0.0.1
тебе надо при его запуске указать какой адрес надо слушать.

не знаю как в дебиане, но в FreeBSD в /etc/rc.conf я просто прописываю

spamd_enable="YES"
spamd_flags="-c -A 127.0.0.1,192.168.1.1 -u spamd"
spamass_milter_enable="YES"


-A 127.0.0.1,192.168.1.1  - это и есть список адресов, которые надо слушать...


"Проблема с SpamAssassin Debian"
Отправлено Kost , 20-Янв-09 12:51 
>[оверквотинг удален]
># Where should spamd write its PID to file? If you use
>the -u or
># --username option above, this needs to be writable by that user.
>
># Otherwise, the init script will not be able to shut spamd
>down.
>PIDFILE="${SAHOME}spamd.pid"
>
># Set nice level of spamd
>#NICE="--nicelevel 15"

Проверить запущен ли SpamAssassin?


"Проблема с SpamAssassin Debian"
Отправлено Роман , 28-Май-10 18:40 
1.spamd_flags="-c -A 192.168.1.2 -i 192.168.1.2" САМЕ ЦЕ Й ДОПОМОГЛО слухати і отримувати звернення з одинакових інтнрфейсів.