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
Check existing sites for
The SMTP server details are stored in the site file
Add the following to the
sites pillar e.g.
server_meta: mail_server: smtp_relay_host: smtp.sparkpostmail.com smtp_relay_port: 587 smtp_username: SMTP_Injection smtp_password: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx admin_email: email@example.com sender_rules: /.*@kbsoftware.co.uk/: firstname.lastname@example.org
sender_rulesis the from address. This address will be used for sending all the emails. This is 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