Open main menu

Changes

915 bytes added ,  20:13, 29 November 2016
adds log and deleting mail info
== Version ==
Run <code>postconf -d | grep mail_version</code> to find out your Postfix version.
 
 
== Log ==
All mail activity goes to the mail log, and you can see what's going on there:
<source lang="bash">
sudo tail -100 /var/log/mail.log
</source>
 
== Delete Mail ==
Postfix stores mails in a queue before sending it. Sometimes you wish to remove the mails from the queue but wonder how. Postfix offers the <code>postsuper</code> command which can be used to delete unsent mails from the queue. Before removing the mail from the queue it is good idea to list all mails in the queue. By issuing the command:
<source lang="bash">
mailq
</source>
you will list all of the mails which are queued or simply timed out for some reason.
 
If you want to remove a mail from the "mailq" type:
<source lang="bash">
postsuper -d mailID
</source>
where mailID is the ID of the message in the mail queue.
 
Issuing the command:
<source lang="bash">
postsuper -d ALL
</source>
will delete all queued messages from the mailq.
{{References}}
4,558

edits