>> I should note that if a spam quarantine is configured, and a user
>> is configured so they are passed spam, in addition to the copy of
>> the spam they receive, a copy will go to the quarantine.
>> 
>> With a  more precise overall picture of what you are trying to
>> accomplish, between Postfix and amavisd-new it may be possible to
>> get you where you need to go.
>> 
>> Gary V
>>

> Thanks Gary. basically, I want ALL of my spam passed through (but marked
> as spam) to my mailbox. At the same time, I want a copy of each of those 
> spam messages sent to an additional mailbox on another domain.

I realize the answer has already been given, but I will expound...

This is easy, place your email address in the @spam_lovers_map and set
up the per-recipient quarantine:

$spam_quarantine_to = undef; # undef spam quarantine means spam bound for
                             # the quarantine is dropped (discarded)

@spam_quarantine_to_maps = (
 { '[EMAIL PROTECTED]' => '[EMAIL PROTECTED]', # for me alone
 },
 $spam_quarantine_to,  # everyone else uses what we set above
 );

What is it you actually want to happen to everyone else's spam at this time?
This example discards mail bound for the quarantine for everyone
except you. If you would like to change this behavior, simply assign
'spam-quarantine' (for local quarantine), or another email address
to deliver to a mailbox (provided $spam_quarantine_method is local:).

> In another situation, I can forsee in the near future, I will very 
> likely want all (bob, bill, sally, suzie, etc) of one domains spam 
> (tagged as such) delivered to a single administrative mailbox.

Provided when you say "all", this includes you, this is even easier
(this example assumes you will add other domains in the future and
they will each want their own domain-wide quarantine):

@spam_quarantine_to_maps = (
 { '.domain-one.com' => '[EMAIL PROTECTED]', # where spam gets sent
                                                    # for domain-one.com
 },
 $spam_quarantine_to,  # everyone else
 );

> At the same time it is quite possible that each of those mails should be 
> copied
> to another mailbox on another domain.

I will assume you mean you will have one particular domain-wide quarantine going
to one mailbox and you want the entire contents duplicated to another mailbox.

Let's assume at this time you simply relay mail, so there is no local delivery.

You could quarantine to something like "[EMAIL PROTECTED]"

Then you would have a 'virtual' file referred to by your virtual_alias_maps
setting with an entry something like this (this one is hash: table):

spamplace [EMAIL PROTECTED],[EMAIL PROTECTED]

This will send the quarantined messages to both addresses.

If you have local domains, simply substitute your 'aliases' file
for the 'virtual' file.

Note: when it comes time you need to forward a message out of one of
these 'mailbox' quarantines, read the headers, and send the message to the
X-Envelope-To: recipient, not the recipient on the To: line.

If you want individual user quarantines, it is better to follow the great
advice given earlier in the thread where 'plus addressing' is
mentioned.

http://www.ijs.si/software/amavisd/amavisd-new-docs.html#addrext

Gary V



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
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