On Wed, Feb 01, 2006 at 11:16:33AM +0100, Paolo Cravero as2594 wrote:

> 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,
>  @.

The above entry is I assume altered, there is no way for it to create
those query keys based on the input email address. If you're going
to post logs for debugging purposes, etc. post the real logs, anything
else is inaccurate, untrustworthy, etc.

<snip>

> The behavior is unchanged with or without amavisLocal set to 1/true. 
> Also tried with "1" or "true" on amavisBypassVirusChecks and 
> amavisVirusLover.

I don't know what LDAP server you're using but these are boolean
attributes and the value must be either "TRUE" or "FALSE".
Per RFC 2252:

6.4. Boolean

   ( 1.3.6.1.4.1.1466.115.121.1.7 DESC 'Boolean' )

   Values in this syntax are encoded according to the following BNF:

      boolean = "TRUE" / "FALSE"

   Boolean values have an encoding of "TRUE" if they are logically true,
   and have an encoding of "FALSE" otherwise.

--
Use your enemy's hand to catch a snake.

Mike Hall,
System Admin - Rock Island Communications           <[EMAIL PROTECTED]>
System Admin - riverside.org, ssdd.org              <[EMAIL PROTECTED]>


-------------------------------------------------------
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/

Reply via email to