Postfix: hold outgoing mail transport
From Deimos.fr / Bloc Notes Informatique
Contents
Software version | 2.10 |
---|---|
Operating System | Debian 7 |
Website | Postfix Website |
Last Update | 04/03/2014 |
Others |
1 Introduction
When you manage Postfix and have a trouble with your mail infrastructure, you may want to set in maintenance your Postfix without stopping the service. Here is a way to hold the queue, giving the time to analyze the problem and then release the queue.
2 Usage
You need to configure your Postfix as follow:
/etc/postfix/main.cf |
defer_transports = hold default_transport = hold |
Then restart Postfix. Once you're ready and want to release the queue, remove those two previous lines, restart Postfix and force the queue to release:
service postfix restart mailq -q |
You can then look at the current status of deferred mails: