Skip to content

Commit f24ad95

Browse files
committed
Introduce a DKIM_SELECTOR environment variable for controlling dkim_selector
Fixes #22
1 parent 482c87f commit f24ad95

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ENV LOCAL_DOMAINS=@ \
2424
RELAY_TO_DOMAINS=* \
2525
RELAY_TO_USERS= \
2626
DISABLE_SENDER_VERIFICATION= \
27+
DKIM_SELECTOR=default \
2728
HOSTNAME= \
2829
SMARTHOST= \
2930
SMTP_PASSWORD= \

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ docker run \
7171
ghcr.io/devture/exim-relay:SOME_TAGGED_RELEASE
7272
```
7373

74+
You can adjust the [DKIM selector](https://dmarcly.com/blog/what-is-dkim-selector-and-how-does-it-work-dkim-selector-explained) value by passing an additional `DKIM_SELECTOR` environment variable. By default, it has a value of `default`.
75+
7476
## Docker Compose
7577

7678
```

exim.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ remote_smtp:
757757
headers_remove = received
758758
helo_data = ${env{HOSTNAME}{$value}{$primary_hostname}}
759759
dkim_domain = ${env{HOSTNAME}{$value}{$primary_hostname}}
760-
dkim_selector = default
760+
dkim_selector = ${env{DKIM_SELECTOR}{$value}{default}}
761761
# Headers as per recommended signature content of the RFC 4871: https://datatracker.ietf.org/doc/html/rfc4871#section-5.5
762762
dkim_sign_headers = From:=Sender:=Reply-To:=Subject:=Date:=Message-ID:=To:=Cc:=MIME-Version:=Content-Type:=Content-Transfer-Encoding:=Content-ID:=Content-Description:=In-Reply-To:=References:=List-Id:=List-Help:=List-Unsubscribe:=List-Subscribe:=List-Post:=List-Owner:=List-Archive
763763
dkim_private_key = ${if exists{/etc/exim/dkim.pem} {/etc/exim/dkim.pem}}

0 commit comments

Comments
 (0)