ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Alexey Shabalin" <a.shabalin@gmail.com>
To: "ALT Linux sysadmin discuss" <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Вопрос по amavis+spamassassin+clamav
Date: Sat, 22 Nov 2008 05:24:45 +0300
Message-ID: <b966c1e40811211824o2bc83ce6s7cf6b374292a6bca@mail.gmail.com> (raw)
In-Reply-To: <200811211215.40238.sysadmins@avangard.dn.ua>

21 ноября 2008 г. 13:15 пользователь Roman Lesnichenko написал:
> On Friday 21 November 2008 11:57:53 Konstantin A. Lepikhov wrote:
>
>> > Одно дело, когда сообщение обрабатывает spamassassin и ставит в
>> > заголовок то, что умеет он, другое - когда обрабатывает amavisd
>> > и ставит то, что умеет он. amavisd использует spamassassin-spamd ?
>> > Или я ошибвюсь ?
>>
пожалуйста читайте документацию. и faq. вот выдержка из faq:
(http://www.ijs.si/software/amavisd/#faq)

No spam-related headers inserted? Here are some reasons:
- @local_domains_acl is not correctly set. These headers are only
inserted for recipients matching @local_domains_acl lookup (or
%local_domains or $local_domains_re or field 'local' in SQL lookups);
- headers can only be added or edited when messages pass through
amavisd-new. This currently is not the case with sendmail milter setup
(using the helper program amavis-milter.c);
- tag level is set too high ($sa_tag_level_defl);
- when SpamAssassin is not being called (disabled, message larger than
the $sa_mail_body_size_limit, sender white/blacklisted), or SA returns
an empty score e.g. when it times out, the spam score is empty
(undefined);
- to make message with spam score above kill_level still pass, either
set globally: $final_spam_destiny=D_PASS, or declare recipient a
spam_lover.

>> раньше amavisd вызывал spamassassin через перловый модуль.
> Вроде так оно и есть.

да, так и есть

> Но вот вопрос тогда следующий:
> амавис решает когда вызывать спамассассин?
> если да - то мне это не нравится :)

amavisd-new пропускает ВСЕ письма через все антивирусы(которые есть в
системе и настроены)
и через spamassassin. Не проверяются "любители спама" (spam_lover) и
белые списки (но можно сделать проверяемый список, только балл им
заниженый будет выставлять).

> Как тогда сделать по старому? Чтобы спамассассин работал всегда?
> Выключить его в настройках амависа и куда-нибудь  воткнуть вот это:
>       -o content_filter=filter:spamcheck
>
content_filter не обязательно должен быть в main.cf (лучше его убрать)
- а все настройки делать в master.cf.
опять же читаем документацию
http://www.ijs.si/software/amavisd/amavisd-new-docs.html
http://www.ijs.si/software/amavisd/README.postfix.html
Кроме content_filter, можно использовать smtpd_proxy_filter (это уже
документацию на postfix читайте
http://www.postfix.org/SMTPD_PROXY_README.html)

> Вопрос: куда?
Всё зависит от того, что вам надо фильтровать:
Filtering e-mail globally
Filtering e-mail globally by service
Filtering e-mail per recipient domain
Filtering e-mail per sender domain
Filtering e-mail by content

>
> После этого:
> smtp-amavis unix -      -       n       -       2       smtp
>
> Или после этого:
> 127.0.0.1:10025 inet    n       -       n       -       -       smtpd
>
> Или уже в конце, как и было раньше после этого:
> smtp            inet    n       -       -       -       -       smtpd

PS: между прочим вся документация есть в репозитории.
Люди читайте документацию. У amavisd-new количество настроек чуть
меньше postfix, но дефолтные могут быть не очень хорошо для Вас.

-- 
Alexey Shabalin

  reply	other threads:[~2008-11-22  2:24 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-20 14:49 Roman Lesnichenko
2008-11-21  6:07 ` Sergey
2008-11-21  9:57   ` Konstantin A. Lepikhov
2008-11-21 10:15     ` Roman Lesnichenko
2008-11-22  2:24       ` Alexey Shabalin [this message]
2008-11-22  6:35         ` Sergey
2008-11-23 21:33         ` Roman Lesnichenko

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=b966c1e40811211824o2bc83ce6s7cf6b374292a6bca@mail.gmail.com \
    --to=a.shabalin@gmail.com \
    --cc=shaba@altlinux.ru \
    --cc=sysadmins@lists.altlinux.org \
    /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 sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

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


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