Send all quarantined mail to a specific user?

Danilo Godec danilo.godec at agenda.si
Tue Mar 15 09:05:53 CET 2022


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 phil at domain1.com and all spam for
> example2.com should go to joe at example2.com?
>
> 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




More information about the amavis-users mailing list