Skip to content

Commit

Permalink
Merge pull request namshi#33 from psychopenguin/master
Browse files Browse the repository at this point in the history
added option to override SES port
  • Loading branch information
oba11 authored Aug 30, 2017
2 parents b34c1ea c0549f8 commit 74af808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 31,7 @@ You need to set the `GMAIL_USER` and `GMAIL_PASSWORD` to be able to use it.
### As Amazon SES Relay
You need to set the `SES_USER` and `SES_PASSWORD` to be able to use it.<br/>
You can override the SES region by setting `SES_REGION` as well.
If you use Google Compute Engine you also should set `SES_PORT` to 2587.

### As generic SMTP Relay
You can also use any generic SMTP server with authentication as smarthost.</br>
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 42,7 @@ if [ "$GMAIL_USER" -a "$GMAIL_PASSWORD" ]; then
elif [ "$SES_USER" -a "$SES_PASSWORD" ]; then
opts =(
dc_eximconfig_configtype 'smarthost'
dc_smarthost "email-smtp.${SES_REGION:=us-east-1}.amazonaws.com::587"
dc_smarthost "email-smtp.${SES_REGION:=us-east-1}.amazonaws.com::${SES_PORT:=587}"
)
echo "*.amazonaws.com:$SES_USER:$SES_PASSWORD" > /etc/exim4/passwd.client
# Allow to specify an arbitrary smarthost.
Expand Down

0 comments on commit 74af808

Please sign in to comment.