To view the queue:
To check if the system is correctly configured to send system emails try:
mail root mail patrick
Fill in the details, then Ctrl D when you finish writing the message.
To check email from Flowable you need to set up a workflow.
Postfix writes to
syslog. To extract all the postfix entries:
sudo cat /var/log/syslog | parse-log - postfix'
I think all the postfix programs (eg
smtpd, etc) prefix
their program name in the log with
Application (Django / Flowable)¶
postfix installed using our Salt states (as detailed below):
Use TLS False / No Host localhost Port 25
The SMTP server details are stored in a
mail_server: smtp_relay_host: 22.214.171.124 smtp_relay_port: 25
Add the following to the
sites pillar e.g.
server_meta: mail_domain: KB101 admin_email: email@example.com smtp_tls_security_level: may sender_rules: /.*/: firstname.lastname@example.org
To find the
mail_domain, log onto the server and run
sender_rulesis the from address. This address will be used for sending all the emails. This is a useful for Office 365 SMTP servers, because all email must be sent from a specific domain. (I think the regular expression,
/.*/:, matches all emails).
The main configuration file is
/etc/postfix/main.cf. It includes the
/etc/aliases, where mail to root should go.
smtp_generic_maps, a catch all (for
sender_canonical_maps, is used to change the from address.
relayhostinstructs Postfix to forward everything.
If using SparkPost (see mail for more information), authentication details will be added to
Think carefully before running the following command…
Delete all messages in the queue:
postsuper -d ALL
Are these error messages?:
match_list_match: permit_mynetworks: no match