Harald,

> Am Montag, den 24.03.2008, 22:53 +0100 schrieb Mark Martinec:
> > > @spam_quarantine_to_maps = (
> > >   { '[EMAIL PROTECTED]' => '[EMAIL PROTECTED]',
> > >     '.'                 => '[EMAIL PROTECTED]' }


> I give you my config as an attachment

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

You are still using $spam_quarantine_to instead of @spam_quarantine_to_maps.

> This is the same in source, if you look at the line:
> [17922]:   @spam_quarantine_to_maps = (\$spam_quarantine_to);

It is not the same. If it were, it would say:
  @spam_quarantine_to_maps = @$spam_quarantine_to;
It happens to work because of a backwards-compatibility hack
in sub lookup:
  my($t) = ref($tb) eq 'REF' ? $$tb : $tb; # allow one level of indirection
although I'm not guaranteeing it will keep working indefinitely.
Conceptually the @spam_quarantine_to_maps is a list of lookup tables,
while the $spam_quarantine_to is typically one single string, not a
lookup table.

>   [qr'^([EMAIL PROTECTED])'i => '[EMAIL PROTECTED]'] );

The ([EMAIL PROTECTED]) is redundant, the first matching entry
in a list stops the search. A simpler qr/^/ achieves the same:
    [qr'^' => '[EMAIL PROTECTED]'] );

or better still, use a simpler hash lookup if you don't need
full flexibility of a regexp lookup table:

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


> $final_spam_destiny = D_PASS;
> $sa_tag2_level_deflt = 3.3;
> $sa_kill_level_deflt = $sa_tag2_level_deflt;

With your settings of $spam_quarantine_to, $final_spam_destiny and 
$sa_kill_level_deflt the following should happen:

- spam addressed to [EMAIL PROTECTED] is passed on, and a copy of the
  message is sent (quarantined) to [EMAIL PROTECTED], so in effect the
  [EMAIL PROTECTED] receives two copies of the same spam message
  (with slightly different header sections);

- spam sent to some other address is passed on (normally delivered)
  and a copy of a message is sent (quarantined) to [EMAIL PROTECTED]

I assume your MTA is rewriting non-existent local addresses to a fixed
address [EMAIL PROTECTED] Is this true?

So, if you do want the behavour just described but something else
is happening, then I need to see a log at level 5 of two messages,
one addressed to [EMAIL PROTECTED] and the other to some other
valid local address.

More likely, you do not want the [EMAIL PROTECTED] to receive
two copies of the same message. This could be achieved by
turning off quarantining for [EMAIL PROTECTED] and just letting
spam mail to [EMAIL PROTECTED] be normally delivered, e.g.:

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

I'm also not sure if you want your valid recipients to receive
their spam and also to send a copy of it to [EMAIL PROTECTED],
or your you prefer just the quarantined copy, but block delivery
to original recipients.

  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