Hello Mark,
* Mark Martinec <[EMAIL PROTECTED]> wrote:
> Saying 'multi-recipient mail...quarantined for those recipients who...'
> is wrong. Quarantining works at a per-message level, not at a per-recipient
> level. There is only one quarantine copy per message regardless of how
> many of its recipients considered it spam.
you are, of course, right.
>> To further clarify this, consider two recipients, e.g.
>> [EMAIL PROTECTED] and [EMAIL PROTECTED] If a mail is
>> considered SPAM, I'd like amavisd-new to either return a 5xx for the
>> whole message or forward the message to [EMAIL PROTECTED] and
>> [EMAIL PROTECTED] (note the extension "+spam" for
>> [EMAIL PROTECTED]).
>
> Doesn't it already work like that? I believe it does, it will
> return 5xx if all recipients reject it, otherwise it will return 250
> and pass to spam lovers normally, and to spam haters by appending a
> "+spam" address extension. Just disable quarantining and you are done.
Unfortunately, it doesn't:
#v+
Sep 9 11:55:53 in-lx-adm01 postfix/smtpd[29291]: connect from
localhost[127.0.0.1]
Sep 9 11:56:14 in-lx-adm01 postfix/smtpd[29291]: NOQUEUE:
client=localhost[127.0.0.1]
Sep 9 11:56:35 in-lx-adm01 postfix/smtpd[29297]: connect from
localhost[127.0.0.1]
Sep 9 11:56:35 in-lx-adm01 postfix/smtpd[29297]: 224FE13F22:
client=localhost[127.0.0.1]
Sep 9 11:56:35 in-lx-adm01 postfix/cleanup[29298]: 224FE13F22:
message-id=<[EMAIL PROTECTED]>
Sep 9 11:56:35 in-lx-adm01 postfix/qmgr[11713]: 224FE13F22: from=<[EMAIL
PROTECTED]>, size=1684, nrcpt=1 (queue active)
Sep 9 11:56:35 in-lx-adm01 postfix/cleanup[29298]: 29B4513F23:
message-id=<[EMAIL PROTECTED]>
Sep 9 11:56:35 in-lx-adm01 postfix/qmgr[11713]: 29B4513F23: from=<[EMAIL
PROTECTED]>, size=1847, nrcpt=1 (queue active)
Sep 9 11:56:35 in-lx-adm01 postfix/local[29299]: 224FE13F22: to=<[EMAIL
PROTECTED]>, relay=local, delay=0.04, delays=0.02/0.01/0/0.01, dsn=2.0.0,
status=sent (forwarded as 29B4513F23)
Sep 9 11:56:35 in-lx-adm01 postfix/qmgr[11713]: 224FE13F22: removed
Sep 9 11:56:35 in-lx-adm01 amavis[29287]: (29287-01) Passed SPAM, LOCAL
[127.0.0.1] [127.0.0.1] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID:
<[EMAIL PROTECTED]>, mail_id: kZ6nNuDVadM0, Hits: 1003.88, size: 1005,
queued_as: 224FE13F22, 20792 ms
Sep 9 11:56:35 in-lx-adm01 amavis[29287]: (29287-01) Blocked SPAM, LOCAL
[127.0.0.1] [127.0.0.1] <[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, Message-ID:
<[EMAIL PROTECTED]>, mail_id: kZ6nNuDVadM0, Hits: 1003.88, size: 1005, 20792 ms
#v-
"[EMAIL PROTECTED]" is a spam_lover, "[EMAIL PROTECTED]" is
not. Mail for the latter is discarded, mail for the fist one is passed
with an address extension.
amavisd.conf (relevant entries only, i.e. everything I modified):
read_hash(\%spam_lovers, '/etc/amavis/conf.d/virus-lovers.cf');
$final_spam_destiny = D_REJECT;
$spam_quarantine_method = undef;
$recipient_delimiter = '+';
@addr_extension_spam_maps = ('spam');
The file /etc/amavis/conf.d/virus-lovers.cf contains "root@".
Cheers
Stefan
--
Stefan Förster http://www.incertum.net/ Public Key: 0xBBE2A9E9
FdI #98: Emacs - emacs makes any computer slow
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/