On 11/10/2013 04:12 PM, Steffen Wegner wrote:
> Hi,
> I still have problems with the Amavis-Integration and try to find the problem.
> One question regarding the installation instruction on 
> http://wiki.policyd.org/installing:
> The instruction states that I need to add a line to the amavisd.conf 
> ('include_config_files('/path/to/amavisd-policyd.pm');').
> As I use Ubuntu 12.04 I added this line into "/etc/amavis/conf.d/50-user".
> Is that right? Im not shure about it.

Only the official version of amavisd-new is supported, not the heavily
modified versions included in some distributions.

The amavisd-new daemon is a single file, you can simply copy it to
/usr/local/sbin or similar.

>
> kindly Nigel checked my cluebringer.conf which seems to look fine and looks 
> loike this:
> ---------------------------/etc/postfix/main.cf-------------------------------------
> smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031, 
> reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, 
> reject_non_fqdn_recipient, reject_unknown_recipient_domain, 
> reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
> smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
> ------------------------------------------------------------------------------------
> so everything ok here.
>
> But it seems like the plugin is not running. Could someone take a look at my 
> debugging log and give me some hint pls.
>
>
> [2013/11/10-16:42:47 - 10887] [TRACKING] DEBUG: Protocol state is 'RCPT', 
> resolving policy...
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: Going to resolve session data 
> into policy: $VAR1 = {
>           'Recipient' => '[email protected]',
>           'SASLUsername' => '[email protected]',
>           'QueueID' => '',
>           'RecipientData' => '',
>           'Instance' => '2a94.527fa977.5557b.0',
>           'EncryptionCipher' => 'ECDHE-RSA-AES256-SHA',
>           'Size' => '0',
>           'EncryptionKeySize' => '256',
>           'EncryptionProtocol' => 'TLSv1.1',
>           'Helo' => 'www.anydomain.de',
>           'ClientAddress' => '***.***.***.***',
>           'ClientName' => 'server1.anydomain.de',
>           'Sender' => '[email protected]',
>           'SASLSender' => '',
>           '_ClientAddress' => bless( {
>                                        'raw_ip' => '***.***.***.***',
>                                        'ip' => '***.***.***.***',
>                                        'ip_version' => 4,
>                                        'cidr' => 32
>                                      }, 'awitpt::netip' ),
>           'Protocol' => 'ESMTP',
>           'ClientReverseName' => 'server1.anydomain.de',
>           'SASLMethod' => 'PLAIN'
>         };
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: Found policy member with ID 
> '6' in policy 'Default Outbound'
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: [ID:6/Name:Default Outbound]: 
> Main policy sources '%SASL_users'
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: [ID:6/Name:Default Outbound]: 
> Group 'SASL_users' has 2 source(s) => 
> [email protected],[email protected]
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: [ID:6/Name:Default 
> Outbound]=>(group:SASL_users): - Resolved source 
> '[email protected]' to a email address specification, match = 1
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: [ID:6/Name:Default 
> Outbound]=>(group:SASL_users): Source group result: matched=1
> [2013/11/10-16:42:47 - 10887] [POLICIES] INFO: [ID:6/Name:Default Outbound]: 
> Source matching result: matched=1
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: [ID:6/Name:Default Outbound]: 
> Destination not defined or 'any', explicit match: matched=1
> [2013/11/10-16:42:47 - 10887] [POLICIES] INFO: [ID:6/Name:Default Outbound]: 
> Destination matching result: matched=1
> [2013/11/10-16:42:47 - 10887] [POLICIES] DEBUG: END RESULT: prio=10 => policy 
> ids: 2
> [2013/11/10-16:42:47 - 10887] [TRACKING] DEBUG: Policy resolved into: $VAR1 = 
> {
>           '10' => [
>                     '2'
>                   ]
>         };

This was in your  RCPT stage, which is good. However I do not see any
logs pertaining to your end of data/message stage.

-N

>> Gesendet: Freitag, 08. November 2013 um 23:38 Uhr
>> Von: "Nigel Kukard" <[email protected]>
>> An: [email protected]
>> Betreff: Re: [policyd-users] Optional Amavisd Support - BCC rule not working?
>>
>> On 11/08/2013 07:48 PM, Steffen Wegner wrote:
>>> Hi Nigel,
>>> thank you for comming back so fast always.
>>> You wrote 
>>>> Please enable full debugging.
>>> i already did that, by changing the log_level in "/etc/cluebringer.conf" to 
>>> log_level=4.
>>> Is there something else that I need to change?
>> A few lines above or below, there is another option which describes what
>> to log. Enable everything.
>>
>>
>>> smtpd_recipient_restrictions = check_policy_service inet:127.0.0.1:10031, 
>>> reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, 
>>> reject_non_fqdn_recipient, reject_unknown_recipient_domain, 
>>> reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit
>>>
>>> # nach policyd-Anleitung:
>>> smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031
>> Those look fine
>>
>>
>> -N


_______________________________________________
Users mailing list
[email protected]
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org

Reply via email to