Routing the world

Routing & IT System Administration

Postfix: Envelope records out of order

leave a comment »

If you make a migration between Postfix servers, or a system recovery, you may find when you manually copy de Maildir files or spool files this string in your server logs

fatal: 98GH09DFI: envelope records out of order

Note that “98GH09DFI” is a Queue ID that could be anyone.

The reason for this issue is the corruption of the input queue, causing all incoming messages to be stored in the “Deferred Queue”.

To fix this you need to locate that file in the pool of Postfix:
#cd /var/spool
#find . -name "98GH09DFI"

And delete the files:
rm -rf ./postfix/defer/6/98GH09DFI ./postfix/active/98GH09DFI

Sometimes the file is not found… so you have to use the postsuper command:
postsuper -d 98GH09DFI

The postsuper command is a swiss kniffe for Postfix Queue.


Written by Root

February 1, 2011 at 13:19

Posted in Linux

Tagged with ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: