Harley Peters | 25 Aug 01:25 2010
Picon

[policyd-users] Policyd2, Postfix and ipv6.

When receiving mail from a ipv6 remote host postfix rejects the
email with: Recipient address rejected: Access denied;.

In the cbpolicy.log file I get this error message.

[2010/08/24-19:13:19 - 15482] [CORE] INFO: 2010/08/24-19:13:19 CONNECT
TCP Peer: "127.0.0.1:37102" Local: "127.0.0.1:10031" 
[2010/08/24-19:13:19 - 15482] [CBPOLICYD] ERROR: Protocol data validation error, required parameter
'client_address' was not found or invalid format 
[2010/08/24-19:13:19 - 15495] [CORE] DEBUG: Child Preforked (15495)
[2010/08/24-19:13:19 - 15495] [CBPOLICYD] DEBUG: Starting up caching
engine

Ipv4 is working fine.
Ipv6 works when I remove policyd2.
Any idea what could be wrong.

Harley
Robert Anderson | 26 Aug 08:38 2010
Picon

Re: [policyd-users] Policyd2, Postfix and ipv6.

> When receiving mail from a ipv6 remote host postfix rejects the
> email with: Recipient address rejected: Access denied;.
>
> In the cbpolicy.log file I get this error message.
>
> [2010/08/24-19:13:19 - 15482] [CORE] INFO: 2010/08/24-19:13:19 CONNECT
> TCP Peer: "127.0.0.1:37102" Local: "127.0.0.1:10031"
> [2010/08/24-19:13:19 - 15482] [CBPOLICYD] ERROR: Protocol data validation error, required parameter
> 'client_address' was not found or invalid format
> [2010/08/24-19:13:19 - 15495] [CORE] DEBUG: Child Preforked (15495)
> [2010/08/24-19:13:19 - 15495] [CBPOLICYD] DEBUG: Starting up caching
> engine

Could you enable debug logging and set policyd to log protocols and try 
again? You will find the following settings in the config file:

log_level
log_detail

Robert
Harley Peters | 27 Aug 03:48 2010
Picon

Re: [policyd-users] Policyd2, Postfix and ipv6.

On Thu, 26 Aug 2010 08:38:59 +0200
Robert Anderson <randerson@...> wrote:

> > When receiving mail from a ipv6 remote host postfix rejects the
> > email with: Recipient address rejected: Access denied;.
> >
> > In the cbpolicy.log file I get this error message.
> >
> > [2010/08/24-19:13:19 - 15482] [CORE] INFO: 2010/08/24-19:13:19
> > CONNECT TCP Peer: "127.0.0.1:37102" Local: "127.0.0.1:10031"
> > [2010/08/24-19:13:19 - 15482] [CBPOLICYD] ERROR: Protocol data
> > validation error, required parameter 'client_address' was not found
> > or invalid format [2010/08/24-19:13:19 - 15495] [CORE] DEBUG: Child
> > Preforked (15495) [2010/08/24-19:13:19 - 15495] [CBPOLICYD] DEBUG:
> > Starting up caching engine
> 
> Could you enable debug logging and set policyd to log protocols and
> try again? You will find the following settings in the config file:
> 
> log_level
> log_detail
> 
> Robert
> _______________________________________________
> Users mailing list
> Users@...
> http://lists.policyd.org/mailman/listinfo/users

This is with log_level=4 and log_detail=protocols

(Continue reading)

Robert Anderson | 30 Aug 11:11 2010
Picon

Re: [policyd-users] Policyd2, Postfix and ipv6.

> This is with log_level=4 and log_detail=protocols
>
> [2010/08/26-21:36:49 - 29431] [CORE] INFO: 2010/08/26-21:36:49 CONNECT
> TCP Peer: "127.0.0.1:37561" Local: "127.0.0.1:10031"
> [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] DEBUG: Possible
> Postfix protocol
> [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] INFO: Identified
> Postfix protocol
> [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] ERROR: Error,
> parameter 'client_address' cannot be
> '2001:470:8a93:2:20c:29ff:fee9:9689'
> [2010/08/26-21:36:49 - 29431] [CBPOLICYD] ERROR: Protocol data
> validation error, required parameter 'client_address' was not found or
> invalid format
> [2010/08/26-21:36:49 - 28424] [CORE] INFO: Starting "1" children
> [2010/08/26-21:36:49 - 31911] [CORE] DEBUG: Child Preforked (31911)
> [2010/08/26-21:36:49 - 31911]
> [CBPOLICYD] DEBUG: Starting up caching engine

Please try the attached patch.

Robert
Attachment (netip_ipv6_fix.patch): text/x-patch, 816 bytes
_______________________________________________
Users mailing list
Users@...
http://lists.policyd.org/mailman/listinfo/users
(Continue reading)

Harley Peters | 30 Aug 18:17 2010
Picon

Re: [policyd-users] Policyd2, Postfix and ipv6.

On Mon, 30 Aug 2010 11:11:41 +0200
Robert Anderson <randerson@...> wrote:

> > This is with log_level=4 and log_detail=protocols
> >
> > [2010/08/26-21:36:49 - 29431] [CORE] INFO: 2010/08/26-21:36:49
> > CONNECT TCP Peer: "127.0.0.1:37561" Local: "127.0.0.1:10031"
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] DEBUG: Possible
> > Postfix protocol
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] INFO: Identified
> > Postfix protocol
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] ERROR: Error,
> > parameter 'client_address' cannot be
> > '2001:470:8a93:2:20c:29ff:fee9:9689'
> > [2010/08/26-21:36:49 - 29431] [CBPOLICYD] ERROR: Protocol data
> > validation error, required parameter 'client_address' was not found
> > or invalid format
> > [2010/08/26-21:36:49 - 28424] [CORE] INFO: Starting "1" children
> > [2010/08/26-21:36:49 - 31911] [CORE] DEBUG: Child Preforked (31911)
> > [2010/08/26-21:36:49 - 31911]
> > [CBPOLICYD] DEBUG: Starting up caching engine
> 
> Please try the attached patch.
> 
> Robert

What perl package does netip.pm belong to ?
I have installed all the listed dependences in the install file
but can't find netip.pm on the system anywhere.

(Continue reading)

Harley Peters | 30 Aug 21:30 2010
Picon

Re: [policyd-users] Policyd2, Postfix and ipv6.

On Mon, 30 Aug 2010 11:11:41 +0200
Robert Anderson <randerson@...> wrote:

> > This is with log_level=4 and log_detail=protocols
> >
> > [2010/08/26-21:36:49 - 29431] [CORE] INFO: 2010/08/26-21:36:49
> > CONNECT TCP Peer: "127.0.0.1:37561" Local: "127.0.0.1:10031"
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] DEBUG: Possible
> > Postfix protocol
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] INFO: Identified
> > Postfix protocol
> > [2010/08/26-21:36:49 - 29431] [PROTOCOLS/Postfix] ERROR: Error,
> > parameter 'client_address' cannot be
> > '2001:470:8a93:2:20c:29ff:fee9:9689'
> > [2010/08/26-21:36:49 - 29431] [CBPOLICYD] ERROR: Protocol data
> > validation error, required parameter 'client_address' was not found
> > or invalid format
> > [2010/08/26-21:36:49 - 28424] [CORE] INFO: Starting "1" children
> > [2010/08/26-21:36:49 - 31911] [CORE] DEBUG: Child Preforked (31911)
> > [2010/08/26-21:36:49 - 31911]
> > [CBPOLICYD] DEBUG: Starting up caching engine
> 
> Please try the attached patch.
> 
> Robert

Ok once I got onto the same page as you (using trunk 2.1)I tried it both
with and without the patch.
Without the patch it failed just like before  with version 2.0.10. With
the patch it worked perfectly.
(Continue reading)


Gmane