Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scheduled sent

0 views
Skip to first unread message

Felipe Neuwald

unread,
Jun 28, 2004, 10:37:28 AM6/28/04
to
Hello Folks,

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

Arnaud Launay

unread,
Jun 28, 2004, 11:00:41 AM6/28/04
to
Le Mon, Jun 28, 2004 at 11:37:59AM -0300, Felipe Neuwald a =E9crit:

> have a way that I can schedule the sent of e-mails?

http://www.postfix.org/rate.html#postponing

Arnaud.

Magnus Bäck

unread,
Jun 28, 2004, 11:04:51 AM6/28/04
to
On Monday, June 28, 2004 at 16:37 CEST,
Felipe Neuwald <felipe....@loreno.com.br> wrote:

> 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

Victor....@morganstanley.com

unread,
Jun 28, 2004, 11:16:40 AM6/28/04
to
On Mon, 28 Jun 2004, Magnus B=E4ck wrote:

> > 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>

0 new messages