auth added
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Wolfgang Hottgenroth 2024-12-20 23:56:43 +01:00
parent 04ad6017e6
commit 0bf33c582f
3 changed files with 16 additions and 0 deletions

View File

@ -7,6 +7,8 @@ LABEL ImageName="quay.io/wollud1969/exim-docker"
ENV LOCALMAILNAME="" ENV LOCALMAILNAME=""
# smarthost to send mail to # smarthost to send mail to
ENV SMARTHOST="" ENV SMARTHOST=""
ENV SMARTHOST_USER=""
ENV SMARTHOST_PASS=""
# ip addresses or networks to allow for relaying, separate multiple ones by semicolon # ip addresses or networks to allow for relaying, separate multiple ones by semicolon
ENV RELAYNETS="" ENV RELAYNETS=""

View File

@ -15,6 +15,18 @@ smarthost_smtp:
driver = smtp driver = smtp
port = 25 port = 25
multi_domain multi_domain
hosts_require_auth = *
begin authenticators
plain:
driver = plaintext
public_name = PLAIN
client_send = ^%SMARTHOST_USER%^%SMARTHOST_PASS%
login:
driver = plaintext
public_name = LOGIN
client_send = : %SMARTHOST_USER% : %SMARTHOST_PASS%
begin acl begin acl
acl_check_rcpt: acl_check_rcpt:

View File

@ -7,6 +7,8 @@ cat exim.conf.tmpl \
-e 's#%RELAYNETS%#'$RELAYNETS'#' \ -e 's#%RELAYNETS%#'$RELAYNETS'#' \
-e 's/%LOCALMAILNAME%/'$LOCALMAILNAME'/' \ -e 's/%LOCALMAILNAME%/'$LOCALMAILNAME'/' \
-e 's/%SMARTHOST%/'$SMARTHOST'/' \ -e 's/%SMARTHOST%/'$SMARTHOST'/' \
-e 's/%SMARTHOST_USER%/'$SMARTHOST_USER'/' \
-e 's/%SMARTHOST_PASS%/'$SMARTHOST_PASS'/' \
> exim.conf > exim.conf
exim -bd -q15m -v exim -bd -q15m -v