ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Slava Dubrovskiy <slava@elan.com.ua>
To: community@altlinux.ru
Subject: Re: [Comm] sa-learn and spam
Date: Wed, 06 Apr 2005 13:40:38 +0300
Message-ID: <4253BCA6.4070003@elan.com.ua> (raw)
In-Reply-To: <42529D97.6020302@sakhalin.ru>

Dmitry Lebkov пишет:

> Автору треда: http://jousset.org/pub/sa-postfix.en.html -- для твоего
> случая
> должно подойти ...

А хорошая статья! Спасибо. Решил попробовать.
По ходу настройки возник ряд вопросов:
1. Какого пользователя подставлять в user?

sa-spam	unix	-	n	n	-	-	pipe user=amavis:amavis argv=/usr/local/bin/sa-wrapper.pl spam ${sender}
sa-ham	unix	-	n	n	-	-	pipe user=amavis:amavis argv=/usr/local/bin/sa-wrapper.pl ham  ${sender}

Replace the user=amavis:amavis parameter with the user:group that
executes SA in your configuration.

Как я понял, права писать в /var/spool/spamassassin имеет только root, а
postfix запускается от mail.
ll /var/spool/spamassassin
-rw-rw-r--   1 mail mail  103296 Апр  4 10:07 bayes_journal
-rw-rw-r--   1 mail mail  671744 Апр  4 09:15 bayes_seen
-rw-rw-r--   1 root root 3055616 Апр  4 09:15 bayes_toks

Вообщем в user подставил mail:mail, а имя группы bayes_toks поменял на
mail. Это можно делать?

2. Теперь письмо отдается sa-wrapper.pl но он вываливается вот с таким
сообщением:
Apr  6 13:22:04 server postfix/pipe[6650]: D6F4D5F1E4:
to=<spam@spam.spam>, orig_to=<spam@elan.com.ua>, relay=sa-spam, delay=3,
status=bounced (Command died with status 255:
"/usr/local/bin/sa-wrapper.pl")

Вот лог работы sa-wrapper.pl
MIME-tools: debug: subdir = /var/spool/amavis/mime/msg-1112782922-6651-0
MIME-tools: debug:    field param <boundary> =
<------------020009030402070807040305>
MIME-tools: debug:    field param <boundary> =
<------------020009030402070807040305>
MIME-tools: debug:    field param <boundary> =
<------------020009030402070807040305>
MIME-tools: debug:    field param <charset> = <windows-1251>
MIME-tools: debug:    field param <charset> = <windows-1251>
MIME-tools: debug:    field param <charset> = <windows-1251>
MIME-tools: debug:    field param <charset> = <windows-1251>
MIME-tools: debug:    field param <name> =
<=?windows-1251?Q?=D2op=E3=EE=E2=E0=FF_=EC=E0=F0=EAa=2Eeml=2Eeml?=>
MIME-tools: debug:    field param <filename> =
<=?windows-1251?Q?=D2op=E3=EE=E2=E0=FF_=EC=E0=F0=EAa=2Eeml=2Eem
MIME-tools: debug:    field param <boundary> =
<------------020009030402070807040305>
MIME-tools: debug:    field param <charset> = <windows-1251>
MIME-tools: debug:    field param <name> =
<=?windows-1251?Q?=D2op=E3=EE=E2=E0=FF_=EC=E0=F0=EAa=2Eeml=2Eeml?=>
missing arguments at /usr/local/bin/sa-wrapper.pl line 77

И что делать с этим я уже не знаю. Кто-то может объяснить причину?

-- 
С уважением,
Дубровский Вячеслав.



  parent reply	other threads:[~2005-04-06 10:40 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05  7:28 Alexey Morsov
2005-04-05  8:08 ` Slava Dubrovskiy
2005-04-05  9:04   ` Alexey Morsov
2005-04-05  9:08     ` [Comm] [offtop]: " Arioch
2005-04-05  9:37       ` Alexey Morsov
2005-04-05 10:32         ` iLL
2005-04-05 10:56           ` Alexey Morsov
2005-04-05 11:02             ` Nick S. Grechukh
2005-04-05 11:12               ` Alexey Morsov
2005-04-05 11:17                 ` Nick S. Grechukh
2005-04-05 13:44                   ` Alexey Morsov
2005-04-05 13:50                     ` Eugene Ostapets
2005-04-05 13:53                       ` Nick S. Grechukh
2005-04-05 14:27                         ` Eugene Ostapets
2005-04-05 14:32                           ` [OFFF] (причем злостный) [JT][JT] " Nick S. Grechukh
2005-04-05 14:45                             ` Eugene Ostapets
2005-04-05 14:53                               ` Nick S. Grechukh
2005-04-05 15:05                                 ` Eugene Ostapets
2005-04-05 14:05                       ` Alexey Morsov
2005-04-05 14:17                         ` Nick S. Grechukh
2005-04-05 14:20                           ` Alexey Morsov
2005-04-05 13:51                     ` Nick S. Grechukh
2005-04-05 14:06                       ` Alexey Morsov
2005-04-05 14:19                         ` Nick S. Grechukh
2005-04-05 14:25                           ` Alexey Morsov
2005-04-05 14:20                         ` Nick S. Grechukh
2005-04-05 11:06             ` Stanislav Yadykin
2005-04-05 11:11               ` Alexey Morsov
2005-04-05 11:22                 ` Stanislav Yadykin
2005-04-05 10:35     ` [Comm] " Slava Dubrovskiy
2005-04-05 10:57       ` Alexey Morsov
2005-04-05 11:09         ` Slava Dubrovskiy
2005-04-05 11:14           ` Alexey Morsov
2005-04-05 14:15             ` Dmitry Lebkov
2005-04-06  4:07               ` Mike Lykov
2005-04-06 10:40               ` Slava Dubrovskiy [this message]
2005-04-06 11:32                 ` Slava Dubrovskiy
2005-04-12  6:00                   ` Re[2]: " Oleksandr Chuchko
2005-04-12  6:17                     ` Slava Dubrovskiy
2005-04-12  9:23                       ` Re[2]: " Oleksandr Chuchko
2005-04-13 18:00               ` [Comm] amavis при превышении числа $MAXFILES не удаляет временные файлы (possible DoS) Oleksandr Chuchko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4253BCA6.4070003@elan.com.ua \
    --to=slava@elan.com.ua \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git