|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Postfix header_checks and HOLD queueHi,
I have a webapp that hands email messages to the local Postfix. One of the requirement is that I need to hold all (client specific) messages for a day before delivery. I created the following rule in header_checks: /^Subject:.*KEYWORD/ HOLD I have a script that runs every 5 mins that scans the mailq, evaluates the Q time then triggers postsuper -r MSGID It seems like once the message is released it will go through header checking AGAIN. Therefore it will NEVER leave the queue. Is there any other easy way to accomplish this? Thanks for the help!! Eric |
|
|
Re: Postfix header_checks and HOLD queuewaltari2001 wrote:
> Hi, > > I have a webapp that hands email messages to the local Postfix. One of the > requirement is that I need to hold all (client specific) messages for a day > before delivery. > > I created the following rule in header_checks: > > /^Subject:.*KEYWORD/ HOLD > > I have a script that runs every 5 mins that scans the mailq, evaluates the Q > time then triggers > > postsuper -r MSGID > > It seems like once the message is released it will go through header > checking AGAIN. Therefore it will NEVER leave the queue. > > Is there any other easy way to accomplish this? > Look at the postsuper manual again and focus on the -H parameter. This assumes (maximal|bounce)_queue_lifetime is set much further than the HOLD time. |
|
|
Re: Postfix header_checks and HOLD queueHi,
I've tried that. It will still put it back in the HOLD queue. Here are my settings. bounce_queue_lifetime = 1d maximal_queue_lifetime = 1d I've run postsuper -H MSGID 2 min after being help then postsuper -r a min later. It's still showing up in the HOLD queue with a different MSGID. Thanks, Sadek
|
|
|
Re: Postfix header_checks and HOLD queueOn Saturday, November 07, 2009 at 21:10 CET,
waltari2001 <sadek_mostefai@...> wrote: > Brian Evans - Postfix List wrote: > > > Suggestion: > > > > Look at the postsuper manual again and focus on the -H parameter. > > This assumes (maximal|bounce)_queue_lifetime is set much further > > than the HOLD time. > > I've tried that. It will still put it back in the HOLD queue. Here are > my settings. > > bounce_queue_lifetime = 1d > maximal_queue_lifetime = 1d > > I've run postsuper -H MSGID 2 min after being help then postsuper -r > a min later. It's still showing up in the HOLD queue with a different > MSGID. Stop requeueing the message. The whole point of "postsuper -H" is to release the message without requeueing it. Do not top-post. Place your response below the quoted text. -- Magnus Bäck magnus@... |
| Free embeddable forum powered by Nabble | Forum Help |