waltari2001 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? > 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.