On Tue, May 17, 2011 at 10:48 PM, Wietse Venema <wie...@porcupine.org>wrote:

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


> Postfix has no support for senders to specify "do not deliver
> this message after X" (i.e. no per-message expiration time).
>
Of course, for transports such as SMS or voice I need to use custom scrips
to wrap postfix to appropriate managers. In these scripts I will check
time-frame parameter to decide if the message should let to go or not.

>
> 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.
>
I hope that there was a mechanism like those that inspect messages for
spam.

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

-- afshin

Reply via email to