| |||||||||||||||||||||||||||||||
|
> List, I'm looking for feedback or ideas regarding the following problem. > I have been tasked with developing a way to schedule message delivery > for future time in our webmail client. We use Squirrelmail (SQM > hereafter), and it sends mail via our outbound Postfix servers (smtp auth). > > My initial idea was to have SQM add some custom header with the desired > delivery time. I then use header_checks on the postfix servers to look > for such a header, and if found, put the message on hold. A perl script > would run via cron every so often, reading through the hold queue > looking for the custom header, and when it's time for delivery, execute > postsuper -r to requeue the message. Have you considered the "at" command? at 1pm <<'AT-ochC3f6Uhoa6OZxVpgBD' sendmail -f "$sender" -it <<'MSG-ar20iQmv9/aRhn2fJ4XB' ... message_content ... MSG-ar20iQmv9/aRhn2fJ4XB AT-ochC3f6Uhoa6OZxVpgBD the random tails of the two "here document" delimeters were generated with: openssl rand-base64 15 -- 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:majordomo?body=unsubscribe%20postfix-users> If my response solves your problem, the best way to thank me is to not send an "it worked, thanks" follow-up. If you must respond, please put "It worked, thanks" in the "Subject" so I can delete these quickly.
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com