> Yes, "postfix reload" runs "postsuper", which will fix-up the names of
> files. To avoid this, you'd have to do that yourself, before marking
> the
> file mode 0700. The first 5 bytes are a microsecond timer measured just
> after the created file's inode is obtained via lstat(2) and before it
> is renamed to:
> 
>       <hex-of-usec-time><hex-of-inode-number>
> 
> Getting all of this right is done by sendmail/postdrop.


Since it sounds like I'd have to do this with postfix stopped, I found a
different workaround.


> 
> > .then the message gets sent a second time (or at least I'm guessing
> that's
> > how the duplicate happens).   I guess the answer is to either run
> that
> > second instance of postfix that doesn't get hit with a "reload" very
> often
> > or. would running "postsuper -s" solve it?
> 
> Running "postsuper -s" causes a race, and is too expensive. 


Yeah, I realized that right after I sent my message.


>Why are you
> manually creating queue-files again?


We're not manually creating them, these are archived queue files that were
pulled from the hold queue, and then later released by being dropped into
the maildrop queue (using the technique discussed earlier in this thread).

As for the "workaround"... I simply created a wrapper for "postfix reload"
that we'll use in place of actually running "postfix reload"... it creates a
lock file that tells the script that drops the files into maildrop to pause
and then it waits until the maildrop queue is empty before doing the reload.

Thanks,

Curtis

P.S. Since I received complaints about my message formatting from both the
HTML and plain text modes of gmail, I've switched to using Outlook just for
messages that I send to this list.  Hopefully Outlook uses an acceptable
charset?

> 
> --
>       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:majord...@postfix.org?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.

Reply via email to