On 6/27/07, Mark Martinec <[EMAIL PROTECTED]> wrote:
> Renato,
>
> > > > 2) Configure maildrop to add a "mark" on message header sayng it needs
> > > > to be quarantined, and give the message back to amavisd-new, and
> > > > amavisd-new quarantine this one.
> > > >
> > > > I would like to implement the second solution, is it possible? I have
> > > > no idea how to configure amavisd-new to figure out that message need
> > > > to be quarantined based on an custom header.
> [...]
> > Nice idea, but in this case message will have a score, isn't there a
> > way to tell amavis to just quarantine a message if a custom header is
> > found? Without scoring it with SA.
>
> You could let amavisd listen on an additional dedicated tcp port number,
> and attach a policy bank to that port which enables archive_quarantine
> (available since 2.4.3, check release notes). Then a mail delivery filter
> could submit mail back to amavisd on this port via SMTP, and it will
> unconditionally be quarantined. All checks may be disabled, and mail
> forwarding should probably be disabled too on this policy bank so that
> mail sent to this port will effectively be lost (and quarantined).
>
> Something like this:
>
>
> $inet_socket_port = [10024,10099];
> $interface_policy{'10099'} = 'ARCHIVER';
>
> $policy_bank{'ARCHIVER'} = {
>   archive_quarantine_method => 'sql:',
>   forward_method => undef,  # lose mail!
>   bypass_decode_parts => 1,
>   bypass_virus_checks_maps  => [1],
>   bypass_spam_checks_maps   => [1],
>   bypass_banned_checks_maps => [1],
>   bypass_header_checks_maps => [1],
> };

Great solution, worked like a dream!!

Just one thing, it still show this on log

Jun 27 15:14:48 sm3500 amavis[24266]: (24266-02) p003 1 Content-Type:
multipart/alternative
Jun 27 15:14:48 sm3500 amavis[24266]: (24266-02) p001 1/1
Content-Type: text/plain, size: 37 B, name:
Jun 27 15:14:48 sm3500 amavis[24266]: (24266-02) p002 1/2
Content-Type: text/html, size: 274 B, name:

Does it mean bypass_decode_parts is not working?

Thanks in advance
-- 
Renato Botelho

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to