Hi everyone,<br><br>I have a little problem with this routine ( do_notify_and_quarantine ).<br>When i try to quarantine an spam email the amavis logs show this..<br><br><i>do_notify_and_quarantine: not quarantining, q_method off</i><br>
<br>I saw the amavis code and the q_method take the values from %quarantine_method_by_ccat<br><br>In my config i have set spam_quarantine_method to<br><br>$spam_quarantine_method = 'smtp:[127.0.0.1]:10025';<br>
<br>and<br><br>$spam_quarantine_to = '<a href="mailto:spam@ar-mx-b.onion.com">spam@ar-mx-b.onion.com</a>';<br><br>Also, i have configurated SQL Lookup, so i added a new column in the table Policy with <br>spam_quarantine_method VARCHAR64.<br>
<br>I noted in the amavis log that when amavisd lookup the SQL Policy read spam_quarantine_method value...<br><br>Feb 7 19:54:42 <a href="http://ar-mx-b.moegui.com">ar-mx-b.moegui.com</a> /usr/sbin/amavisd[13888]: (13888-01) lookup_sql(<a href="mailto:luciano@onion.com">luciano@onion.com</a>) matches, result=(id=>"1", priority=>"1", policy_id=>"1", email=>"@<a href="http://onion.com">onion.com</a>", fullname=>"Onion S.A", local=>"Y", id=>"1", policy_name=>"ONION", virus_lover=>"N", spam_lover=>"N", unchecked_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=>"N", virus_quarantine_to=>-, spam_quarantine_to=>"<a href="mailto:spam@ar-mx-b.moegui.com">spam@ar-mx-b.moegui.com</a>", banned_quarantine_to=>-, unchecked_quarantine_to=>-, bad_header_quarantine_to=>-, clean_quarantine_to=>"<a href="mailto:spam@ar-mx-b.moegui.com">spam@ar-mx-b.moegui.com</a>", archive_quarantine_to=>-, spam_tag_level=>"1", spam_tag2_level=>"5", spam_tag3_level=>"7", spam_kill_level=>"2000", spam_dsn_cutoff_level=>-, spam_quarantine_cutoff_level=>"50000", addr_extension_virus=>-, addr_extension_spam=>-, addr_extension_banned=>-, addr_extension_bad_header=>-, warnvirusrecip=>"Y", warnbannedrecip=>"Y", warnbadhrecip=>"Y", newvirus_admin=>"", virus_admin=>"", banned_admin=>"", bad_header_admin=>"", spam_admin=>"<a href="mailto:spam@ar-mx-b.moegui.com">spam@ar-mx-b.moegui.com</a>", spam_subject_tag=>"", spam_subject_tag2=>"{SPAM}", spam_subject_tag3=>"{BLATANT}", message_size_limit=>-, banned_rulenames=>-, disclaimer_options=>"", forward_method=>-, sa_userconf=>-, sa_username=>-, <b>spam_quarantine_method=>"smtp:[127.0.0.1]:10025"</b>, id=>"1")<br>
<br>Why amavis tell me that q_methods are off??<br><br>Regards,<br><br>