This is a resend. The mailing list system blocked my original post which
contained my logfile as attachment. Maybe it will make it through
eventually.
--- Mark Martinec <[EMAIL PROTECTED]> wrote:
> Peter,
>
> > I am testing a spam mailbox along with 3 user entries:
> > 1. email ([EMAIL PROTECTED]), priority 10
> > 2. domain (domain.com), priority 7
> > 3. other, priority 0
> > I have assigned user 2 a policy whereby mail is quarantined to a
> mailbox
> > but sending to user 1 ([EMAIL PROTECTED]) I still get the mail being
> sent
> > to the mailbox.
>
> Possibly Gary gave an answer. Otherwise see log at level 5 and see
> how lookup is being done.
>
> > I figured that because user 1 has a higher priority it would use
> > its policy (with no mailbox). Why is policy assigned only to user 2
> being
> > used?
>
> Your example is corrent in principle, priority 10 wins over 7 or 0,
> if they all match.
Yes, I had checked my logs. See if you can make any sense out of it (I
attach every log message that is generated for one spamy mail). As for
Gary's comment, I had set user to '@domain.com' and not 'domain.com'. I
followed the INSERTS that were given in the README.sql (yeah!).
To summarize, the log shows these lines (which is the big mystery):
(28656-01) lookup_sql([EMAIL PROTECTED]) matches, result=(id=>"2",
priority=>"10", policy_id=>"1", email=>"[EMAIL PROTECTED]", fullname=>"Peter
Matulis", local=>"Y", id=>"2", policy_name=>"Normal", virus_lover=>"N",
spam_lover=>"N", banned_files_lover=>"N", bad_header_lover=>"N",
bypass_virus_checks=>"N", bypass_spam_checks=>"N",
bypass_banned_checks=>"N", bypass_header_checks=>"N",
spam_modifies_subj=>"Y", virus_quarantine_to=>-, spam_quarantine_to=>-,
banned_quarantine_to=>-, bad_header_quarantine_to=>-, spam_tag_level=>"3",
spam_tag2_level=>"6.9", spam_kill_level=>"6.9", spam_dsn_cutoff_level=>-,
addr_extension_virus=>-, addr_extension_spam=>-, addr_extension_banned=>-,
addr_extension_bad_header=>-, warnvirusrecip=>-, warnbannedrecip=>-,
warnbadhrecip=>-, newvirus_admin=>-, virus_admin=>-, banned_admin=>-,
bad_header_admin=>-, spam_admin=>-, spam_subject_tag=>-,
spam_subject_tag2=>-, message_size_limit=>-, banned_rulenames=>-, id=>"2")
(28656-01) lookup_sql([EMAIL PROTECTED]) matches, result=(id=>"3",
priority=>"7", policy_id=>"3", email=>"@domain.com", fullname=>"domain:
domain.com", local=>"Y", id=>"3", policy_name=>"Spambox: domain.com",
virus_lover=>"N", spam_lover=>"N", banned_files_lover=>"N",
bad_header_lover=>"N", bypass_virus_checks=>"N", bypass_spam_checks=>"N",
bypass_banned_checks=>"N", bypass_header_checks=>"N",
spam_modifies_subj=>"Y", virus_quarantine_to=>-,
spam_quarantine_to=>"[EMAIL PROTECTED]", banned_quarantine_to=>-,
bad_header_quarantine_to=>-, spam_tag_level=>"3", spam_tag2_level=>"6.9",
spam_kill_level=>"6.9", spam_dsn_cutoff_level=>-, addr_extension_virus=>-,
addr_extension_spam=>-, addr_extension_banned=>-,
addr_extension_bad_header=>-, warnvirusrecip=>-, warnbannedrecip=>-,
warnbadhrecip=>-, newvirus_admin=>-, virus_admin=>-, banned_admin=>-,
bad_header_admin=>-, spam_admin=>-, spam_subject_tag=>-,
spam_subject_tag2=>-, message_size_limit=>-, banned_rulenames=>-, id=>"3")
(28656-01) lookup_sql([EMAIL PROTECTED]) matches, result=(id=>"1",
priority=>"0", policy_id=>"1", email=>"@.", fullname=>"Default",
local=>"N", id=>"1", policy_name=>"Normal", virus_lover=>"N",
spam_lover=>"N", banned_files_lover=>"N", bad_header_lover=>"N",
bypass_virus_checks=>"N", bypass_spam_checks=>"N",
bypass_banned_checks=>"N", bypass_header_checks=>"N",
spam_modifies_subj=>"Y", virus_quarantine_to=>-, spam_quarantine_to=>-,
banned_quarantine_to=>-, bad_header_quarantine_to=>-, spam_tag_level=>"3",
spam_tag2_level=>"6.9", spam_kill_level=>"6.9", spam_dsn_cutoff_level=>-,
addr_extension_virus=>-, addr_extension_spam=>-, addr_extension_banned=>-,
addr_extension_bad_header=>-, warnvirusrecip=>-, warnbannedrecip=>-,
warnbadhrecip=>-, newvirus_admin=>-, virus_admin=>-, banned_admin=>-,
bad_header_admin=>-, spam_admin=>-, spam_subject_tag=>-,
spam_subject_tag2=>-, message_size_limit=>-, banned_rulenames=>-, id=>"1")
But then this:
(28656-01) lookup_sql_field(spam_quarantine_to) "[EMAIL PROTECTED]"
[EMAIL PROTECTED]
Huh?
__________________________________________________________
Find your next car at http://autos.yahoo.ca
-------------------------------------------------------
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/