On 03/10/10 10:42, Vincent Ackermann wrote:
>
> Hello,
>
> I just installed postfix and policyd v2 on my redhat 5 server.
>
> I installed the necessary modules and libraries. Cluebringer 2.0.10
> run but, if I try to send email, I receive:
>
> [r...@... ~]# telnet localhost 25
>
> Trying 127.0.0.1...
>
> Connected to localhost.localdomain (127.0.0.1).
>
> Escape character is '^]'.
>
> 220 mail....... ESMTP Sendmail
>
> helo .....
>
> 250 mail.......
>
> mail from: <[email protected]>
>
> 450 4.3.2 <[email protected]>: Sender address rejected: Try again later
>
>  
>
> On the console, I started cbpolicyd in debug mode:
>
> [r...@... ~]# /usr/sbin/cbpolicyd --debug --fg --config
> /etc/policyd/cluebringer.conf 
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] NOTICE: Policyd v2 /
> Cluebringer - v2.0.10
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] NOTICE: Initializing system
> modules.
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] NOTICE: System modules
> initialized.
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] NOTICE: Module load started...
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => AccessControl: enabled
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => CheckHelo: enabled
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => CheckSPF: enabled
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => Greylisting: enabled
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => Quotas: enabled
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE:   => Protocol(Postfix):
> enabled
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] NOTICE: Module load done.
>
> [2010/03/10-11:29:16 - 27835] [CBPOLICYD] DEBUG: Opening syslog,
> destination = 'unix', facility = 'mail'.
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE: 2010/03/10-11:29:16 cbp
> (type Net::Server::PreFork) starting! pid(27835)
>
> [2010/03/10-11:29:16 - 27835] [CORE] NOTICE: Binding to TCP port 10031
> on host 127.0.0.1
>
> [2010/03/10-11:29:16 - 27835] [CORE] WARNING: Group Not Defined. 
> Defaulting to EGID '0 10 6 4 3 2 1 0'
>
> [2010/03/10-11:29:16 - 27835] [CORE] WARNING: User Not Defined. 
> Defaulting to EUID '0'
>
> [2010/03/10-11:29:16 - 27835] [CORE] INFO: Setting up serialization
> via flock
>
> [2010/03/10-11:29:16 - 27835] [CORE] INFO: Beginning prefork (4 processes)
>
> [2010/03/10-11:29:16 - 27835] [CORE] INFO: Starting "4" children
>
> [2010/03/10-11:29:16 - 27836] [CORE] DEBUG: Child Preforked (27836)
>
> [2010/03/10-11:29:16 - 27836] [CBPOLICYD] DEBUG: Starting up caching
> engine
>
> [2010/03/10-11:29:16 - 27838] [CORE] DEBUG: Child Preforked (27838)
>
> [2010/03/10-11:29:16 - 27838] [CBPOLICYD] DEBUG: Starting up caching
> engine
>
> [2010/03/10-11:29:16 - 27839] [CORE] DEBUG: Child Preforked (27839)
>
> [2010/03/10-11:29:16 - 27839] [CBPOLICYD] DEBUG: Starting up caching
> engine
>
> [2010/03/10-11:29:16 - 27835] [CORE] DEBUG: Parent ready for children.
>
> [2010/03/10-11:29:16 - 27840] [CORE] DEBUG: Child Preforked (27840)
>
> [2010/03/10-11:29:16 - 27840] [CBPOLICYD] DEBUG: Starting up caching
> engine
>
> [2010/03/10-11:29:54 - 27836] [CORE] INFO: 2010/03/10-11:29:54 CONNECT
> TCP Peer: "127.0.0.1:55003" Local: "127.0.0.1:10031"
>
> [2010/03/10-11:29:54 - 27835] [CORE] INFO: Starting "1" children
>
> [2010/03/10-11:29:54 - 27906] [CORE] DEBUG: Child Preforked (27906)
>
> [2010/03/10-11:29:54 - 27906] [CBPOLICYD] DEBUG: Starting up caching
> engine
>
> [2010/03/10-11:29:54 - 27836] [PROTOCOLS/Postfix] DEBUG: Possible
> Postfix protocol
>
> [2010/03/10-11:29:54 - 27836] [PROTOCOLS/Postfix] INFO: Identified
> Postfix protocol
>
> [2010/03/10-11:29:54 - 27836] [PROTOCOLS/Postfix] ERROR: Error,
> parameter 'instance' cannot be ''
>
> *[2010/03/10-11:29:54 - 27836] [CBPOLICYD] ERROR: Protocol data
> validation error, required parameter 'instance' was not found or
> invalid format*
>
> [2010/03/10-11:30:26 - 27835] [CORE] INFO: Killing "1" children
>
> [2010/03/10-11:30:26 - 27836] [CBPOLICYD] DEBUG: Shutting down caching
> engine (27836)
>

Your installation of postfix is not sending a required name/value pair...

Read http://www.postfix.org/SMTPD_POLICY_README.html

This says that instance= is sent for each policy request for postfix
later than version 2.1.

As policyd is not receiving a required name/value pair, it is giving an
error.

I suggest maybe debugging more on your side, and determining why your
installation of policyd is not sending the instance= name/value pair.

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

Reply via email to