-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support custom DKIM selector #1304
Comments
Привяу. Английский у меня не на высоте и мне лень писать перевод, но у меня есть решение для кастомного dkim. Если кому-то будет не впадлу, переведите его) Для начала, нам нужно получить доступ к сгенерированным DKIM ключам внутри контейнера, можете пробросить их через volumes, можете хоть зайти внутрь контейнера, не имеет значения. Далее, находим в директории /etc/opendkim/KeyTable и открываем его на редактирование. В нем мы имеем примерно следующее: mail._domainkey.example.com example.com:mail:/etc/opendkim/keys/example.com/mail.private Разобьем запись по ":"
Собственно, чтобы поменять селектор с mail вы просто меняете его в файле KeyTable, отмечен он П.2, сохраняете, перезагружаете контейнер и все у вас работает. |
Please use English here. It is not my native language either, but it tends to work best. |
Hi
Sory, i wrote it for russian language speakers and asked them to translate it)
Briefly, it says there, to replace the selector in the current image, you just need to fix /etc/opendkim/KeyTable
mail._domainkey.example.com example.com:MAIL:/etc/opendkim/keys/example.com/mail.private
Mail it is selector. Just replace it with the one you need
This is information so useful for developers who want use a custom DKIM selector
|
What's the status here? |
Just out of curiosity: what is your reason for switching the selector? |
For me, it would allow me to correctly set a TXT record of It would also save me from having to use the work-around provided by @dev-comrade, where I can't then run |
@wernerfred I checked the documentation I am here because I changed my server setup from to, as the docker-compose.yml comment claim is the appropriate way hostname=example.com However, it seems .mail is still the selector and I am also getting a looping dkim error in the logs |
Perhaps #1191 is related. The use case I understand is when you introduce a new DKIM record is added you may not want to immediately expire the old DKIM record in case anyone re-validates the DKIM signature. Hence, the need for customizing the DKIM selector. For example, you may have a selector |
I have an urgent different use case. I'm using SendInBlue for my Email Marketing, which requires setting their DKIM entry in my DNS. Unfortunately, they are using Any way to set a different DKIM selector? |
Have you read |
The docs don't seem like they got updated (technically they didn't even exist back then), but as the PR #1811 that closed this issue; the feature to support custom selectors was added and the CLI tool provides more info on using that: docker-mailserver/target/bin/open-dkim Lines 24 to 45 in dab7070
The default is The docs probably could be updated (contributions welcome), but otherwise are showing how to configure with the default As the start of this issue notes, the DKIM selector is not tied to the hostname. It can remain as
|
I didn't try it because of the |
Something relevant for the docs as well: If you want to change the DKIM selector when the
In order to use the new one, delete the
Just deleting the files results in a OpenDKIM error in the mailserver, because the files are linked in the
as well as
|
The current version of docker-mailserver always uses the value "mail" as DKIM selector. That works and (despite some confusion) is independent of host name. However, at least two users would like to make the DKIM selector configurable.
To do that:
The text was updated successfully, but these errors were encountered: