postfix+spamassassin+KAV5.5
Модераторы: Trinity admin`s, Free-lance moderator`s
-
- Junior member
- Сообщения: 7
- Зарегистрирован: 15 сен 2005, 14:17
- Откуда: Кострома
- Контактная информация:
postfix+spamassassin+KAV5.5
Дюди помогите настроит subj!!!!
При стандартной установки KAV работает а спамфильтр нет выложу все что надо!!!
Перечитал кучу всего.
Или подскажите где можно готовое решение!!
При стандартной установки KAV работает а спамфильтр нет выложу все что надо!!!
Перечитал кучу всего.
Или подскажите где можно готовое решение!!
-
- Junior member
- Сообщения: 7
- Зарегистрирован: 15 сен 2005, 14:17
- Откуда: Кострома
- Контактная информация:
postfix+spamassassin+KAV5.5
Выкладываю master.cf#
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=lmtp:127.0.0.1:10030
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
-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 unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
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. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#<KIS55>
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/opt/kav/5.5/kav4mailservers/bin/smtpscanner
# flags=R user=drweb argv=/usr/bin/spamc -e /opt/kav/5.5/kav4mailservers/bin/smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=fedor.telecom.kostroma.ru
Куда здесь прикрутить spamassassin????
==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=lmtp:127.0.0.1:10030
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
-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 unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
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. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#<KIS55>
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/opt/kav/5.5/kav4mailservers/bin/smtpscanner
# flags=R user=drweb argv=/usr/bin/spamc -e /opt/kav/5.5/kav4mailservers/bin/smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=fedor.telecom.kostroma.ru
Куда здесь прикрутить spamassassin????
- Вложения
-
[Расширение cf было запрещено, вложение больше недоступно.]
- Stranger03
- Сотрудник Тринити
- Сообщения: 12979
- Зарегистрирован: 14 ноя 2003, 16:25
- Откуда: СПб, Екатеринбург
- Контактная информация:
-
- Junior member
- Сообщения: 7
- Зарегистрирован: 15 сен 2005, 14:17
- Откуда: Кострома
- Контактная информация:
Там версия KAV другая, а в новой верии они поставили все с ног на голову!!
Вот master.cf после очередных поисков и читаниев manov
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=lmtp:127.0.0.1:10030
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
-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 unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
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. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#<KIS55>
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/opt/kav/5.5/kav4mailservers/bin/smtpscanner
# flags=R user=drweb argv=/usr/bin/spamc -e /opt/kav/5.5/kav4mailservers/bin/smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o content_filter=spamf:dummy
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=fedor.telecom.kostroma.ru
#<KIS55>
spamf unix - n n - 20 pipe
user=postfix argv=/usr/bin/spamc -f -e /usr/sbin/sendmail.postfix -oi -f ${sender} ${recipient}
Но в логи он пишет:
Sep 16 07:55:57 fedor postfix/postfix-script: stopping the Postfix mail system
Sep 16 07:55:57 fedor postfix/master[12618]: terminating on signal 15
Sep 16 07:55:58 fedor postfix/postfix-script: starting the Postfix mail system
Sep 16 07:55:58 fedor postfix/master[24249]: daemon started -- version 2.2.2, configuration /etc/postfix
Sep 16 07:56:20 fedor postfix/smtpd[24255]: connect from oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/smtpd[24255]: 5E9B42000D3: client=oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/smtpd[24255]: 840562000D3: client=oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/cleanup[24257]: 840562000D3: message-id=<162796365.20050916075557@fedor.ao.kt>
Sep 16 07:56:20 fedor postfix/qmgr[24252]: 840562000D3: from=<pds@fedor.ao.kt>, size=655, nrcpt=1 (queue active)
Sep 16 07:56:20 fedor postfix/smtpd[24262]: connect from localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/smtpd[24262]: A4BA72000FE: client=localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/cleanup[24257]: A4BA72000FE: message-id=<162796365.20050916075557@fedor.ao.kt>
Sep 16 07:56:20 fedor postfix/qmgr[24252]: A4BA72000FE: from=<pds@fedor.ao.kt>, size=972, nrcpt=1 (queue active)
Sep 16 07:56:20 fedor postfix/pipe[24263]: fatal: user= command-line attribute specifies mail system owner postfix
Sep 16 07:56:20 fedor postfix/smtpd[24262]: disconnect from localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/lmtp[24258]: 840562000D3: to=<dima@fedor.telecom.kostroma.ru>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.0.0 <dima@fedor.telecom.kostroma.ru> Ok)
Sep 16 07:56:20 fedor postfix/qmgr[24252]: 840562000D3: removed
Sep 16 07:56:20 fedor postfix/smtpd[24255]: disconnect from oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:21 fedor postfix/master[24249]: warning: process /usr/libexec/postfix/pipe pid 24263 exit status 1
Sep 16 07:56:21 fedor postfix/master[24249]: warning: /usr/libexec/postfix/pipe: bad command startup -- throttling
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: premature end-of-input on private/spamf socket while reading input attribute name
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: private/spamf socket: malformed response
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: transport spamf failure -- see a previous warning/fatal/panic logfile record for the problem description
При этом писма остаються в очереди!!!
Что за хрень ни как понять не могу. Где я наступаю на грабли.
Зарание благодарен.
Вот master.cf после очередных поисков и читаниев manov
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
-o content_filter=lmtp:127.0.0.1:10030
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
-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 unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
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. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#<KIS55>
127.0.0.1:10030 inet n n n - 20 spawn
user=kluser argv=/opt/kav/5.5/kav4mailservers/bin/smtpscanner
# flags=R user=drweb argv=/usr/bin/spamc -e /opt/kav/5.5/kav4mailservers/bin/smtpscanner
127.0.0.1:10031 inet n - n - 21 smtpd
-o content_filter=spamf:dummy
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_client_restrictions=
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o myhostname=fedor.telecom.kostroma.ru
#<KIS55>
spamf unix - n n - 20 pipe
user=postfix argv=/usr/bin/spamc -f -e /usr/sbin/sendmail.postfix -oi -f ${sender} ${recipient}
Но в логи он пишет:
Sep 16 07:55:57 fedor postfix/postfix-script: stopping the Postfix mail system
Sep 16 07:55:57 fedor postfix/master[12618]: terminating on signal 15
Sep 16 07:55:58 fedor postfix/postfix-script: starting the Postfix mail system
Sep 16 07:55:58 fedor postfix/master[24249]: daemon started -- version 2.2.2, configuration /etc/postfix
Sep 16 07:56:20 fedor postfix/smtpd[24255]: connect from oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/smtpd[24255]: 5E9B42000D3: client=oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/smtpd[24255]: 840562000D3: client=oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:20 fedor postfix/cleanup[24257]: 840562000D3: message-id=<162796365.20050916075557@fedor.ao.kt>
Sep 16 07:56:20 fedor postfix/qmgr[24252]: 840562000D3: from=<pds@fedor.ao.kt>, size=655, nrcpt=1 (queue active)
Sep 16 07:56:20 fedor postfix/smtpd[24262]: connect from localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/smtpd[24262]: A4BA72000FE: client=localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/cleanup[24257]: A4BA72000FE: message-id=<162796365.20050916075557@fedor.ao.kt>
Sep 16 07:56:20 fedor postfix/qmgr[24252]: A4BA72000FE: from=<pds@fedor.ao.kt>, size=972, nrcpt=1 (queue active)
Sep 16 07:56:20 fedor postfix/pipe[24263]: fatal: user= command-line attribute specifies mail system owner postfix
Sep 16 07:56:20 fedor postfix/smtpd[24262]: disconnect from localhost[127.0.0.1]
Sep 16 07:56:20 fedor postfix/lmtp[24258]: 840562000D3: to=<dima@fedor.telecom.kostroma.ru>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 2.0.0 <dima@fedor.telecom.kostroma.ru> Ok)
Sep 16 07:56:20 fedor postfix/qmgr[24252]: 840562000D3: removed
Sep 16 07:56:20 fedor postfix/smtpd[24255]: disconnect from oist-pds.ao.kt[192.168.160.77]
Sep 16 07:56:21 fedor postfix/master[24249]: warning: process /usr/libexec/postfix/pipe pid 24263 exit status 1
Sep 16 07:56:21 fedor postfix/master[24249]: warning: /usr/libexec/postfix/pipe: bad command startup -- throttling
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: premature end-of-input on private/spamf socket while reading input attribute name
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: private/spamf socket: malformed response
Sep 16 07:56:21 fedor postfix/qmgr[24252]: warning: transport spamf failure -- see a previous warning/fatal/panic logfile record for the problem description
При этом писма остаються в очереди!!!
Что за хрень ни как понять не могу. Где я наступаю на грабли.
Зарание благодарен.
-
- Junior member
- Сообщения: 7
- Зарегистрирован: 15 сен 2005, 14:17
- Откуда: Кострома
- Контактная информация:
Многоуважаемый Alll!!!
Шагнул дальше!!
В логах получаю
Sep 16 10:51:56 fedor postfix/smtpd[28313]: disconnect from oist-pds.ao.kt[192.168.160.77]
Sep 16 10:51:57 fedor spamc[28322]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Sep 16 10:51:58 fedor spamc[28322]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Sep 16 10:51:59 fedor spamc[28322]: connection attempt to spamd aborted after 3 retries
Права на spam sokket установлены:
[root@fedor run]# ls -l spamd.socket
srw-rw-rw- 1 kluser root 0 Сен 16 10:50 spamd.socket
Где мои грабли, подскажите!!
Шагнул дальше!!
В логах получаю
Sep 16 10:51:56 fedor postfix/smtpd[28313]: disconnect from oist-pds.ao.kt[192.168.160.77]
Sep 16 10:51:57 fedor spamc[28322]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#2 of 3): Connection refused
Sep 16 10:51:58 fedor spamc[28322]: connect(AF_INET) to spamd at 127.0.0.1 failed, retrying (#3 of 3): Connection refused
Sep 16 10:51:59 fedor spamc[28322]: connection attempt to spamd aborted after 3 retries
Права на spam sokket установлены:
[root@fedor run]# ls -l spamd.socket
srw-rw-rw- 1 kluser root 0 Сен 16 10:50 spamd.socket
Где мои грабли, подскажите!!
-
- Junior member
- Сообщения: 7
- Зарегистрирован: 15 сен 2005, 14:17
- Откуда: Кострома
- Контактная информация:
Пиши на мыло dmitrii_p@mail.ru или стучи в аську 164086076 разберемся!Troo писал(а):Так что в итоге было не правильно, а то у меня такая же хрень :(
- Stranger03
- Сотрудник Тринити
- Сообщения: 12979
- Зарегистрирован: 14 ноя 2003, 16:25
- Откуда: СПб, Екатеринбург
- Контактная информация:
Вы бы здесь для остальных читателей написали, в чем проблема была. А то не очень красиво получается.pds писал(а):Пиши на мыло dmitrii_p@mail.ru или стучи в аську 164086076 разберемся!
Кто сейчас на конференции
Сейчас этот форум просматривают: нет зарегистрированных пользователей и 5 гостей