The postcat program enables the administrator to have the contents of individual messages (e-mails in the mail queues) displayed in a readable format.
[/opt/MAIL/postfix/sbin/]postcat |
[-vq] [-c <config_dir>] [<file> ... ] |
-v
Activates detailed logging for debugging purposes.
-q
In this case you only need to specify the queue ID of the e-mail to be displayed as <file>. postcat then automatically determines the complete path name, i.e. the mail queue which contains <file>.
-c <config_dir>
The Postfix configuration file main.cf is located in the <config_dir> directory instead of the standard configuration directory.
<file> ...
Name(s) of the file(s)/e-mails whose contents are to be displayed:
If you specify the
-q
option you need only specify the queue ID(s) of the message(s) to be output.If you do not specify the
-q
option, you must specify the complete path name(s) of the message(s).
Example
An e-mail with the queue ID 457106EA05 is contained in the deferred queue /var/spool/postfix/deferred/4/. A file with the name /var/spool/postfix/deferred/4/457106EA05 thus exists.
You can have the contents of the e-mail 457106EA05 displayed as follows:
postcat /var/spool/postfix/deferred/4/457106EA05
Here you must specify the complete path name as the argument.
postcat -q 457106EA05
With the
-q
option it is sufficient if you specify the queue ID of the e-mail to be displayed.