....
 

Guardian Digital Inc. > InfoCenter > Mailing List Archives > Amavis

Amavis Mailing List Archive

From: Mark Martinec (Mark.Martinec+amavis@ijs.si)
Date: Wed Dec 22 2004 - 15:56:14 EST


Peter,

> We use this for quarantines:
> $virus_quarantine_method = 'local:virus/virus-%b-%i-%n';
> $spam_quarantine_method = 'local:spam/spam-%b-%i-%n';
>
> We would like to insert a domain-based directory level below
> spam and virus, like this:
> /var/virusmails/spam/domain1/spam-%b-%i-%n
> /var/virusmails/spam/domain2/spam-%b-%i-%n
> /var/virusmails/virus/domain1/virus-%b-%i-%n
> /var/virusmails/virus/domain2/virus-%b-%i-%n

If there are not many subdomains, you can provide
each with its own entry in %local_delivery_aliases,
and use spam_quarantine_to lookups to map subdomain
to a local_delivery_alias. A bit clumsy, I admit.

> An even better quarantine structure for us would be like this, with
> the date in the directory name:
> /var/virusmails/spam/domain1/20041222/spam-%b-%i-%n
> /var/virusmails/spam/domain2/20041222/spam-%b-%i-%n
> /var/virusmails/virus/domain1/20041222/virus-%b-%i-%n
> /var/virusmails/virus/domain2/20041222/virus-%b-%i-%n

You will need to provide an additional entry in %local_delivery_aliases
(or modify existing one), and make it more sophisticated, based
on information hanging off the $MSGINFO object. It is a bit messy,
but doable.

> Is it possible to do one or both of the above?
> I would much prefer not having to change anything other than
> amavisd.conf if possible.

A much cleaner approach is to let MTA deal with how and where
to store 'quarantined' (actually, just tagged and passed) messages.
See:
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#addrext

Mark

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
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/



[ About Guardian Digital ] - [ Press Center ] - [ Contact Us ] - [ System Activation ] - [ Reseller Info ] - [ Online Store ] - [ Site Map ]
Copyright (c) 2000 - 2004 Guardian Digital, Inc. Linux Lockbox and EnGarde are Trademarks of Guardian Digital, Inc.