DevHeads.net

postpone large messages

Hi
I want to postpone (keep in the hold queue) messages larger than 5 Mb and
send them after work hours
How Can I do that?
Thanks

Comments

Re: postpone large messages

By Noel Jones at 06/15/2017 - 12:18

On 6/15/2017 10:42 AM, azerquera wrote:
Yes possible, but not entirely within postfix native config.

You can use an external policy_service such as postfwd to place
large messages on hold. You'll have to work out some way to only do
this during work hours; I don't know if postfwd has time-sensitive
rules. Maybe some other policy service
<a href="http://www.postfix.org/SMTPD_POLICY_README.html" title="http://www.postfix.org/SMTPD_POLICY_README.html">http://www.postfix.org/SMTPD_POLICY_README.html</a>
<a href="http://postfwd.org/" title="http://postfwd.org/">http://postfwd.org/</a>

Then use a shell script and crontab to release the messages at the
desired time.

-- Noel Jones