> On 2012-04-20 17:03, Wietse Venema wrote:
>> On 4/19/2012 11:55 PM, Vishal Agarwal wrote:
>>>                  I want to keep the messages waiting in queue for
>>> delivery for certain time of period  (say 10 minutes) destination
>>> wise. Presently as soon as the message is being received by postfix
>>> is being delivered in the same time. I want to keep message staying
>>> in queue for delivery for 10 minutes, and that also destination wise.
>> Noel Jones:
>>> Postfix does not have any controls for delaying mail.
>>>
>>> You might be able to hack something together with some scripts using
>>> the postsuper hold/release functions.
>>> http://www.postfix.org/postsuper.1.html
>> Postfix provides per-destination rate limits, not per-message delays.
>>
>> http://www.postfix.org/postconf.5.html#transport_destination_rate_delay
>>
>> Example: smtp_destination_rate_delay = 600
>>
>>      Wietse
>
> That allows one message to that destination every 10 minutes, not
> delivery after 10 minutes.
> So the delays will be longer than what he wants if there are more than 1
> messages per 10 minutes received per destination, and shorter than he
> wants if there are less.
>
> Just to inform the OP that it's probably not his solution without
> further tweaking.
>
> Of course, we don't know why this is deemed necessary - his real problem
> may be easily solvable using other means.
>
> --
> J.
>
>

Thanks all,

I feel that all the messages has to be kept in queue as hold and there
should be some script that will check the queue receiving time and will
create a crontab with postsupre -r [message ID] for defined time to be
released for the each and every message. so the purpose will be solved.
The script itself should be croned for every 5 minutes to run automatically.

Thanks
Vishal Agarwal



Reply via email to