Set credentials in docker-compose.yml
then
docker build . -t ses-postfix-relay
docker-compose up -d
In addition to MYNETWORKS
, you will need to specify the hosts from
which you accept HELO
messages in helo_access. You can use POSIX Regular Expressions (PCRE) here if you wish.
See access(5) and regex_table(5) for details on the HOST NAME patterns allowed here.
You can attach to the container and send a test message. The final line must contain a period with no other content.
sendmail -f [email protected] [email protected]
From: MyDomain Notification
Subject: Amazon SES Test
This message was sent using Amazon SES.
.
Feb 17 17:56:02 ip-10-150-241-58 postfix/smtpd[978]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 451 4.3.0 <ip-10-150-241-58.ec2.internal>: Temporary lookup failure; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<ip-10-150-241-58.ec2.internal>
Some things to check:
- is the
RCPT from
address inMYNETWORKS
- is the
from=
address permissible in your SES relay - is the
to=
address permissible in your SES relay - does the hostname in
helo=
match an entry in helo_access