Hi, is set to 1 just for test. This is my policyd configuration ======================= I've enabled only default policy, in quota list I've have created this entry MaxMsgSent Link to policy:Default Track:SenderIP:83.216.185.74/32 Period:3600 Verdict:REJECT Data 1 Stop processing here:yes Comment Disabled:no
In quota limits I've create this entry Type MessageCount Counter Limit 1 Comment Disabled no ======================= And this is full debug log of policyd ======================= [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: Process Backgrounded [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: Policyd v2 / Cluebringer - v2.1.x-201211111115 [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: Initializing system modules. [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: System modules initialized. [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: Module load started... [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => AccessControl: enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Accounting: enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Amavis: disabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => CheckHelo: enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Greylisting: enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Quotas: enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Protocol(Postfix): enabled [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: => Protocol(Bizanga): enabled [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: Module load done. [2013/02/27-13:51:39 - 21851] [CBPOLICYD] NOTICE: Session tracking is ENABLED. [2013/02/27-13:51:39 - 21851] [CBPOLICYD] DEBUG: Opening syslog, destination = 'native', facility = 'mail'. [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: 2013/02/27-13:51:39 cbp (type Net::Server::PreFork) starting! pid(21851) [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: Binding to TCP port 10031 on host * [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: Setting gid to "500 500" [2013/02/27-13:51:39 - 21851] [CORE] NOTICE: Setting uid to "500" [2013/02/27-13:51:39 - 21851] [CORE] INFO: Setting up serialization via flock [2013/02/27-13:51:39 - 21851] [CORE] INFO: Beginning prefork (4 processes) [2013/02/27-13:51:39 - 21851] [CORE] INFO: Starting "4" children [2013/02/27-13:51:39 - 21853] [CORE] DEBUG: Child Preforked (21853) [2013/02/27-13:51:39 - 21853] [CBPOLICYD] DEBUG: Starting up caching engine [2013/02/27-13:51:39 - 21851] [CORE] DEBUG: Parent ready for children. [2013/02/27-13:51:39 - 21856] [CORE] DEBUG: Child Preforked (21856) [2013/02/27-13:51:39 - 21856] [CBPOLICYD] DEBUG: Starting up caching engine [2013/02/27-13:51:39 - 21855] [CORE] DEBUG: Child Preforked (21855) [2013/02/27-13:51:39 - 21855] [CBPOLICYD] DEBUG: Starting up caching engine [2013/02/27-13:51:39 - 21854] [CORE] DEBUG: Child Preforked (21854) [2013/02/27-13:51:39 - 21854] [CBPOLICYD] DEBUG: Starting up caching engine [2013/02/27-13:51:53 - 21851] [CORE] INFO: Starting "1" children [2013/02/27-13:51:53 - 21856] [CORE] INFO: 2013/02/27-13:51:53 CONNECT TCP Peer: "127.0.0.1:45507" Local: "127.0.0.1:10031" [2013/02/27-13:51:53 - 21861] [CORE] DEBUG: Child Preforked (21861) [2013/02/27-13:51:53 - 21861] [CBPOLICYD] DEBUG: Starting up caching engine [2013/02/27-13:51:53 - 21856] [CBPOLICYD] INFO: Got request #1 [2013/02/27-13:51:53 - 21856] [QUOTAS] WARNING: Unknown key specification in TrackSenderIP [2013/02/27-13:51:53 - 21856] [QUOTAS] ERROR: No key found for quota ID '3' ======================= Dr. Marcello Anderlini [email protected] --------------------------------------------- Database Informatica S.r.l. Microsoft Certified Partner Tel. +39059775070 Fax. +39059779545 http://www.database.it http://www.facebook.com/DatabaseInformatica -----Messaggio originale----- Da: Users [mailto:[email protected]] Per conto di Robert Anderson Inviato: mercoledì 27 febbraio 2013 11.30 A: [email protected] Oggetto: Re: [policyd-users] R: Policyd does not work On 27/02/2013 12:20, Marcello Anderlini wrote: > I've changed my main.cf configuration in this way: > ================================================= > smtpd_sender_restrictions = > check_policy_service inet:127.0.0.1:10031, > permit_mynetworks, > permit > ================================================= > But now no email is sended and I get alway relaying denied. > > Ps. This should be a sendonly email relaying only specified ip address. I've > not configured any virtual domain on it. Is there any reason your CounterLimit is 1? Could you please post a full debug log as well as your quotas/policy configuration. _______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org _______________________________________________ Users mailing list [email protected] http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
