Postfix Email Server: Difference between revisions

From Run Your Own
Jump to navigation Jump to search
Line 4: Line 4:
== Troubleshooting ==
== Troubleshooting ==
=== Log files ===
=== Log files ===
=== Troubleshooting ===
* If problems, the places to look for useful info are:
* If problems, the places to look for useful info are:
  /var/log/mail.info
  /var/log/mail.info
  mail              
  mail
 
=== Postfix queue control ===
=== Postfix queue control ===
Sometimes you may need to check what's in the queue of emails waiting to be fully processed.
Sometimes you may need to check what's in the queue of emails waiting to be fully processed.

Revision as of 09:52, 18 May 2018

Installation

TODO

Troubleshooting

Log files

  • If problems, the places to look for useful info are:
/var/log/mail.info
mail

Postfix queue control

Sometimes you may need to check what's in the queue of emails waiting to be fully processed.

  • Optional: stop Postfix, in case you need to investigate something and stop incoming/outgoing activity.
service postfix stop
  • print a list of all queued email:
mailq | less
postqueue -p | less      # it's the same
  • print a specific email by its ID
postcat -vq ID | less
  • delete a specific email by its ID
postsuper -d ID