Paolo Cravero as2594 wrote:
One update, still hoping for answers!
Setting in /etc/amavisd.conf the following
@bypass_virus_checks_maps = ( [ 'domain.com' ] );
works and lets viruses through. Still, the amavisBypassVirusChecks
content is ignored. I tried with Y, 1, true. Both with and without
@bypass_virus_checks_maps commented out and not.
Setting amavisBypassSpamChecks just on LDAP works, though! I tried
playing with the code around line 7099 with no success.
Help... Help... !!
Paolo
Hi,
I am playing with LDAP profiling for my users, either by domain or by
recipient address. I need to set a domain as "virus lover", but can't
seem to be able to do that.
The LDAP entry looks like this:
dn: uid=amavis_as2594,ou=schiavi,ou=prova,o=c.it, c=IT
amavisVirusLover: 1
amavisBypassVirusChecks: 1
amavisMessageSizeLimit: 10240000
mail: [EMAIL PROTECTED]
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: amavisAccount
uid: amavis_as2594
givenName: Users
sn: as2594
cn: Users as2594 for AMAVIS
Then I followed the process both on the LDAP server (that correctly
returns one entry) and on amavisd-new machine:
Feb 1 11:02:39 psis-q2 (07283-03) lookup (local_domains) => true,
"[EMAIL PROTECTED]" matches, result="1",
matching_key="(constant:1)"
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03) query_keys:
[EMAIL PROTECTED], pcravero, @domain.com, @.domain.com, @.net,
@.
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03) lookup_ldap
"[EMAIL PROTECTED]", query keys: "[EMAIL PROTECTED]", "pcrav
ero", "@domain.com", "@.domain.com", "@.com", "@.", base: c=it, filter:
(&(objectClass=amavisAccount)(mail=%m))
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03) lookup_ldap: searching
base="c=it", scope="sub", filter="(&(objectClass=amav
isAccount)(|([EMAIL PROTECTED])(mail=pcravero)([EMAIL PROTECTED])([EMAIL PROTECTED])([EMAIL PROTECTED])([EMAIL PROTECTED])))"
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03)
lookup_ldap([EMAIL PROTECTED]) matches,
result=(amavismessagesizelimit=>"10240000",
mail=>"[EMAIL PROTECTED]", amavisbypassviruschecks=>"1",
amavisviruslover=>"1")
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03)
lookup_ldap_attr(amavismessagesizelimit) "[EMAIL PROTECTED]"
result=(10240000)
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03) lookup
(message_size_limit) => true, "[EMAIL PROTECTED]" matches, result=
"10240000", matching_key="amavismessagesizelimit=>"10240000",
mail=>"[EMAIL PROTECTED]", amavisbypassviruschecks=>"1",
amavisviruslover=>"1""
So far so good. LPAP query was OK and apparently all parameters were
recognized. Then:
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03)
lookup_ldap_attr(amavisbypassviruschecks) "[EMAIL PROTECTED]" result=(0)
Feb 1 11:02:39 psis-q2 amavis[7283]: (07283-03) lookup
(bypass_virus_checks) => false, "[EMAIL PROTECTED]" matches,
result="0", matching_key="/cached/"
The result was "1", but then it becomes "0", message is scanned for
viruses and quarantined. I was using test-messages shipped with
amavisd-new.
The behavior is unchanged with or without amavisLocal set to 1/true.
Also tried with "1" or "true" on amavisBypassVirusChecks and
amavisVirusLover.
/etc/amavisd.conf is set to quarantine viruses/spam/badheaders to SQL.
Moreover "@local_domains_maps = ( 1 );".
What am I doing wrong? TIA,
Paolo
-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
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/