# setting up with AWS SES https://docs.aws.amazon.com/ses/latest/dg/postfix.html # important files: /etc/postfix/main.cf /etc/postfix/sasl_passwd # changes to sasl_passwd need to be applied with: postmap hash:/etc/postfix/sasl_passwd ; systemctl restart postfix # view logs: journalctl -af | grep postfix # see the message q and their QUEUE_IDs: postqueue -p # view a message: postcat -q $QUEUE_ID # delete a message from the q: postsuper -d $QUEUE_ID # delete all messages in the q: postsuper -d ALL # example test command: date | sendmail -f $FROM_EMAIL $TO_EMAIL