W dniu 03.12.2013 17:36, Валетов Константин pisze:
Hello!
Seems like defer verdict in quotas working wrong or am I not
understanding how it works.
So, I want limit rate within 30 min for 30 messages, for example.
when im reaching limit my message not going to postfix deferred queue,
but throw error to my mail client (mozilla)
In postfix log its looks like simple reject:
Dec 3 17:46:10 cbpolicyd[30015]: module=Quotas, action=defer, host=,
helo=[], from=, to=, reason=quota_match, policy=1, quota=3, limit=4,
track=Sender:, coun
ter=MessageCount, quota=6.57/5 (131.5%)
Dec 3 17:46:10 postfix/smtpd[28761]: NOQUEUE: reject: RCPT from []:
450 4.7.1 <>: Recipient address rejected: 450; from=<> to=<>
proto=ESMTP helo=<[]>
cbpolicyd logs
[2013/12/03-17:46:10 - 30015] [CBPOLICYD] DEBUG: Running module:
Quotas Plugin
[2013/12/03-17:46:10 - 30015] [PROTOCOL/Postfix] DEBUG: Received
PROTO_DEFER with response 'DEFER':'450'
[2013/12/03-17:46:10 - 30015] [CBPOLICYD] DEBUG: Module 'Quotas
Plugin' returned CBP_STOP
Is it suppose to be put this message to postfix deferred queue, like
hold but without hold flag?
I was tried official buntu version from repo (2.0.11), stable from
your site 2.0.14 and dev snapshot 2.1.x~201310261831, all same result.
Well the policy is working correctly and postfix is saing 450 (this code
indicates to the oder side it should wait with sending in other words
deffer sending
I think You want postfix to accept all mail and delay sending it out.
As far as i know this is possible in dual instance mode of postfix
First instance accepts everything ino its queue and sends to second
instance wich is configured to use policyd to limit mail traffic
First instance sends messages when second instances policyd kicks in it
stops accepting mail and replies with 450 4.7.1 this causes first
instance of postfix to move the message to deferred queue.
Hope this helps.
Or can I realise with policyd such thing as I said?
Thank you!
_______________________________________________
Users mailing list
Users@lists.policyd.org
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org
_______________________________________________
Users mailing list
Users@lists.policyd.org
http://lists.policyd.org/mailman/listinfo/users_lists.policyd.org