Open main menu

Changes

1,078 bytes added ,  16:44, 17 March 2017
might need the CA file
# work-around for Digital Ocean's blocking of IPv6 for email
smtp_bind_address = 0.0.0.0
# or set inet_protocols = ipv4
# satellite configuration
smtp_use_tls = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
# list of CAs to trust when verifying server certificate
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
HERE
== 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}}
[[Category:Email]]
[[Category:Security]]
4,558

edits