Mark wrote:
> Shane,
> Besides options Gary gave, you can just plainly disable quaranatine
> for recipients or domains for which you do not want to keep quarantine
> (no need to change kill level or turn off checking if you do not want to).
> I believe this is also what the Q&A entry in amavisnewsql you found
> is talking about.
> @spam_quarantine_to_maps = (
> { '.relayed-domain1.com' => undef, # turn off quarantine for this recip
> '.relayed-domain2.com' => undef,
> '[EMAIL PROTECTED] => undef,
> '.' => $spam_quarantine_to, # for everybody else use a global default
> }
> );
> or equivalently (a matter of taste):
> @spam_quarantine_to_maps = (
> { '.relayed-domain1.com' => undef, # turn off quarantine for this recip
> '.relayed-domain2.com' => undef,
> '[EMAIL PROTECTED] => undef,
> },
> $spam_quarantine_to, # for everybody else use a global default
> );
> The same can be achieved with SQL lookups, just use field
> policy.spam_quarantine_to and set it to an empty string
> for those recipients or domains for which you want
> to turn off quarantining, and keep the field at NULL
> for remaining recipients to cause a fallback to a static
> global default which is the value of $spam_quarantine_to.
> See also
> http://www.ijs.si/software/amavisd/amavisd-new-docs.html#quarantine
###########
Mark, this failed for me:
$spam_quarantine_to = '[EMAIL PROTECTED]';
@spam_quarantine_to_maps = (
{ '.example.com' => undef, # turn off quarantine for this recip
},
$spam_quarantine_to, # for everybody else use a global default
);
Sep 29 10:44:10 sfm amavis[12430]: (12430-01) lookup_hash([EMAIL PROTECTED])
matches key ".example.com", result=
Sep 29 10:44:10 sfm amavis[12430]: (12430-01) lookup: (scalar) matches,
result="[EMAIL PROTECTED]"
Sep 29 10:44:10 sfm amavis[12430]: (12430-01) lookup (spam_quarantine_to) =>
true,
"[EMAIL PROTECTED]" matches, result="[EMAIL PROTECTED]",
matching_key="(constant:[EMAIL PROTECTED])"
<...>
Sep 29 10:44:11 sfm amavis[12430]: (12430-01) SEND via SMTP:
<[EMAIL PROTECTED]> -> <[EMAIL PROTECTED]>, 250 2.6.0 Ok, id=12430-01,
from MTA([127.0.0.1]:10025): 250 Ok: queued as DF30816D23
############
This worked:
@spam_quarantine_to_maps = (
{ '.example.com' => '', # turn off quarantine for this recip
},
$spam_quarantine_to, # for everybody else use a global default
);
Sep 29 10:47:42 sfm amavis[12447]: (12447-01) lookup_hash([EMAIL PROTECTED])
matches key ".example.com", result=
Sep 29 10:47:42 sfm amavis[12447]: (12447-01) lookup (spam_quarantine_to) =>
false,
"[EMAIL PROTECTED]" matches, result="", matching_key=".example.com"
############
This worked:
@spam_quarantine_to_maps = (
{ '.example.com' => undef,
'.' => $spam_quarantine_to,
}
);
Sep 29 10:55:09 sfm amavis[12467]: (12467-01) lookup_hash([EMAIL PROTECTED])
matches key ".example.com", result=
Sep 29 10:55:09 sfm amavis[12467]: (12467-01) lookup (spam_quarantine_to) =>
undef, "[EMAIL PROTECTED]" does not match
Gary V
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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/