Re: Send all quarantined mail to a specific user?

Danilo Godec <[email protected]>
Newsgroups gmane.mail.virus.amavis.user
Organization Agenda d.o.o.
Message-ID <[email protected]>
On 15. 03. 22 01:03, Alex wrote:
> Hi,
> Is it possible to configure amavis to send all quarantined mail to a
> specific address?
>
> Can it be done on a per-domain basis? In other words, all spam for
> example1.com should go to [email protected] and all spam for
> example2.com should go to [email protected]?
>
> The real requirement is just to send all quarantined mail to a
> specific address, but having the flexibility to send on a per-domain
> basis would be helpful.
>
> I suppose I could do something with procmail, but doing it inherently
> with amavis would be great.
>
> Thanks,
> Alex

Pretty sure that is possible.

We use this:

$spam_quarantine_to = "spam\@example.com";


You can do similarly with $virus_quarantine_to, $banned_quarantine_to, 
$bad_header_quarantine_to .


There are also @spam_quarantine_to_maps & friends that should allow you 
to add per-domain (or even per-recipient) maps - have a look at
amavisd.conf-sample 
(https://github.com/aosm/amavisd/blob/master/amavisd/amavisd-new-2.6.6/amavisd.conf-sample) 
and search for @virus_quarantine_to_maps.


   Hope this helps,

    Danilo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.