Harald,

> I tried in amavisd.conf to send spams
> with unknown incoming mail addresses
> to an internal mail account spamall.
>
> That is working fine.
>
> All other correct existing mails
> adresses with spam should go to an
> account spamadmin.

Jeremy Laidman wrote:
> $spam_quarantine_to = new_RE(   # per-recip multiple
>   [qr'[EMAIL PROTECTED]'i => '[EMAIL PROTECTED]'],
>   [qr'^' => '[EMAIL PROTECTED]'] );

Almost, except that @spam_quarantine_to_maps should be used
(which is a list of lookup tables), instead of $spam_quarantine_to
(which is a single quarantine destination).

Also, the regexp-based lookup table is an overkill for such
a simple application, a simple hash-type lookup would suffice:

@spam_quarantine_to_maps = (
  { '[EMAIL PROTECTED]' => '[EMAIL PROTECTED]',
    '.'                 => '[EMAIL PROTECTED]' }
);


Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
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