have a way that I can schedule the sent of e-mails?
I need that all messages that goes to my server between 8 AM to 8 PM at
work days go to deferred queue, and send them automatically at
non-work-days and non-work-hours.
Thanks,
--=20
Felipe Neuwald
felipe....@loreno.com.br
+55 61 3038-5038
+55 61 8135-8918
------
Chave p=C3=BAblica PGP / PGP public key:
http://pgp.mit.edu:11371/pks/lookup?op=3Dget&search=3D0x8AE508F3
http://www.postfix.org/rate.html#postponing
Arnaud.
> have a way that I can schedule the sent of e-mails?
>=20
> I need that all messages that goes to my server between 8 AM to 8 PM at
> work days go to deferred queue, and send them automatically at
> non-work-days and non-work-hours.
Cron job at 8 AM:
postconf -e defer_transports=3Dsmtp
postfix reload
Cron job at 8 PM:
postconf -e defer_transports=3D
postfix reload
postfix flush
You might want to omit the "postfix flush" command. The mail will
eventually be sent anyway. Also, it might not be enough to defer
the smtp transport, depending on your setup.
--=20
Magnus B=E4ck
mag...@dsek.lth.se
> > have a way that I can schedule the sent of e-mails?
> >
> > I need that all messages that goes to my server between 8 AM to 8 PM =
at
> > work days go to deferred queue, and send them automatically at
> > non-work-days and non-work-hours.
>
> Cron job at 8 AM:
>
> postconf -e defer_transports=3Dsmtp
> postfix reload
>
> Cron job at 8 PM:
>
> postconf -e defer_transports=3D
> postfix reload
> postfix flush
>
> You might want to omit the "postfix flush" command. The mail will
> eventually be sent anyway.
Does the OP want to hold inbound mail also? Perhaps the employer does not
want people to get new mail in the middle of the business day. Does the O=
P
want to hold outbound mail? Magnus gives correct advice for delaying
outbound mail. To delay all mail enable the HOLD restriction at 8AM and a=
t
8PM disable the "HOLD" restriction and run "postsuper -H ALL".
http://www.postfix.org/access.5.html
As for flushing, it is a reasonable idea. Make sure you have recipient
validation in place if you are holding outbound mail, all those dictionar=
y
attack bounces will clog the queue even more when delayed.
--=20
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majo...@postfix.org?body=3Dunsubscribe%20postfix-users>