....
 

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

Amavis Mailing List Archive

From: Mark Martinec (Mark.Martinec+amavis@ijs.si)
Date: Thu Dec 23 2004 - 16:33:08 EST


Peter,

> > 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.
>
> I would be very happy if you could give a short example. I found no
> examples in the configuration files.
> I found %Amavis::Conf::local_delivery_aliases in amavisd, but my perl
> skill is too basic to get this right.

Some examples are in the comments in file amavisd
where %local_delivery_aliases is initialized.

Something like the following would do:

in amavisd where local_delivery_aliases is assigned to:

  %Amavis::Conf::local_delivery_aliases = (
    'virus-quarantine' => sub { ($QUARANTINEDIR, $VIRUSFILE) },
    'banned-quarantine' => sub { ($QUARANTINEDIR, $VIRUSFILE) },
    'bad-header-quarantine'=> sub { ($QUARANTINEDIR, $VIRUSFILE) },
    'spam-quarantine-sub1' => sub { ("$QUARANTINEDIR/one", "$VIRUSFILE.gz") },
    'spam-quarantine-sub2' => sub { ("$QUARANTINEDIR/two", "$VIRUSFILE.gz") },
    'spam-quarantine-sub3' => sub { ("$QUARANTINEDIR/three","$VIRUSFILE.gz") },
    'spam-quarantine-sub4' => sub { ("$QUARANTINEDIR/four", "$VIRUSFILE.gz") },
    'spam-quarantine' => sub { ($QUARANTINEDIR, "$VIRUSFILE.gz") },
    ...
(make sure the directories /var/virusmails/{one,two,three}
exist and are owned by vscan)

then use @spam_quarantine_to (in amavisd.conf, or in SQL)
to map recipient address or (sub)domains to one of the provided
local alias names in %local_delivery_aliases, e.g:

@spam_quarantine_to_maps = (
  { 'sub1.example.com' => 'spam-quarantine-sub1',
    'sub2.example.com' => 'spam-quarantine-sub2',
    '.example.com' => 'spam-quarantine-sub3',
    '.' => 'spam-quarantine', # a catchall default
  }
);

See also:
  http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine

> I have looked at this but it doesn't seem to fit our setup.
> We want all spam to be quarantined into separate files for easy
> retrieving based on the file names, and also easy purging and
> other manipulation. We don't have any user accounts on the antispam
> server, and the release of falsely blocked spam is only done by
> central administrators, not end users.

Perhaps your understanding of 'a mailbox' is to narrow,
you don't need any user accounts there. A mailbox can
just as easily be some file or some directory on the
MTA host, just make appropriate entries in MTA aliases,
see 'man 8 local', i.e. the Postfix local delivery agent.

e.g.:
/etc/postfix/aliases:

spam-one-box: /var/spool/mail/quarantine1
spam-two-box: /var/spool/mail/quarantine2
spam-three-box: /var/spool/mail/quarantine3

or if you want one file per quarantined message (a maildir
style mailbox), just append a slash, as explained in local(8).

  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.