Gary V wrote:
M. wrote:
Mark Martinec wrote:
M. Lewis,
I want all of my spam to be passed (and tagged).
I have a need to send that spam to a different address as well.
If 'a different address' is the same for all recipients,
this is a traditional case of quarantining to a mailbox,
see amavisd.conf-sample, use quarantine method 'local:'
and provide quarantine address with $spam_quarantine_to.
See also:
http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine
To also let such mail pass, let all such recipients be spam lovers.
Mail with score above kill level will be both quarantined
and passed to recipients.
If on the other hand a 'different address' is specific for each recipient
or its subdomain, see my today's reply to a similar question, use plus
addressing to reroute such mail. Virtual maps can also duplicate mail
if needed (send to more than one address):
http://marc.theaimsgroup.com/?l=amavis-user&m=113270599414231&w=2
Is @spam_lovers_maps the correct setting?
@spam_lovers_maps = (
'[EMAIL PROTECTED]',
'[EMAIL PROTECTED]'
);
It does not do what you expect. You provided two constant 'pseudo' lookup
tables, which always return true (see README.lookups). You need to provide
a genuine lookup table, such a an array ref or a hash ref, so enclose your
list of addresses in [...]. See amavisd.conf-sample for examples.
(the example for @virus_lovers_maps applies to @spam_lovers_maps
just as well).
Mark
Thanks very much Mark. I have changed the @spam_lovers_maps to the
following:
@spam_lovers_maps = (
{
'[EMAIL PROTECTED]' => 1,
'[EMAIL PROTECTED]' => 1,
}
);
However, I can't see that I am sending any mail to either user from the
logs. There must be something that I am not understanding here.
Do I need to add:
$spam_quarantine_to = '[EMAIL PROTECTED], [EMAIL PROTECTED]';
To clear up what I orginally said, ALL spam should go to two different
addresses. ie, 'a different address' is the same for all recipients = YES.
Thanks again,
Mike
I think you have a misconception of what a spam_lover is. If you make
someone (like yourself) a spam_lover, it means you will receive your
mail, even if it is spam. It has the same effect as setting:
$final_spam_destiny = D_PASS;
for any addresses listed in spam_lovers. Provided you list YOUR
address in this list, this meets your first request:
"I want all of my spam to be passed (and tagged)."
^^
Setting:
$spam_quarantine_to = '[EMAIL PROTECTED]';
@spam_quarantine_to_maps = (
{ '.domain-one.com' => '[EMAIL PROTECTED]',
'.domain-two.com' => '[EMAIL PROTECTED]',
},
$spam_quarantine_to,
);
Will send any mail addressed to anyone at domain-one.com to
[EMAIL PROTECTED], and anyone at domain-two.com to
[EMAIL PROTECTED] but it will not send to both domains
simultaneously. If it should be addressed to another one of your
domains, it will use the default of [EMAIL PROTECTED] (just an
example). I'm not aware of a built-in mechanism for directing
mail to two different quarantines simultaneously. Maybe something
could be done in Postfix after the fact if that is what you are after,
but I'm not sure that is supported either.
Gary V
Thanks Gary,
Yes it is quite possible that I have a misconception about
spam_lovers_maps. My understanding was this setting was to allow spam to
pass to a given users mailbox as well as copy to an administrative
account (perhaps on another domain).
If I understand what you're saying correctly, then only the first part
of this statement is correct.
Mike
--
Kiss your keyboard goodbye!
19:10:01 up 7 days, 19:44, 4 users, load average: 0.41, 0.29, 0.16
Linux Registered User #241685 http://counter.li.org
-------------------------------------------------------
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/