afshin afzali: > I need to get custom control over defer queue. My emails need to > be sent in specified time-frame.
Wietse: > /etc/postfix/main.cf: > maximal_queue_lifetime = 3600s > maximal_backoff_time = 600s > > This retries mail approximately six times until it is approximately > one hour old. afshin afzali: > hi wietse?I need further control over defer queue? actually Im going to use > postfix as cross switch between multiple kind of messaging media such as > voice and sms?to do this?message sender needs to specify time frame that the > message must be send?i.e. 9?12 AM. I think if there is a hook that i could > install to decide if is ok to return email to active queue would be my > solution? Postfix has no support for senders to specify "do not deliver this message after X" (i.e. no per-message expiration time). Postfix explicitly does not support other programs reading or manipulating Postfix queue files. If you do this then you do so at your own risk. Postfix has no support for control over the queue by non-Postfix programs. Allowing a non-Postfix program to decide if mail goes into the active queue does not solve your problem. Postfix will retry delivery until the message is too old. Also, you need to respect mailing list etiquette. Put your reply BELOW the text that you reply to, and do reply with the entire previous message if it is longer than a dozen or so lines. Wietse