Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

ap-wtioit
Copy link
Contributor

@ap-wtioit ap-wtioit commented Jul 7, 2025

Description

Use numerical uid and gid for chown as they should always work even when the uid and gid have no names in /etc/...

in case the owner user does not exist in the image we get the following error:

open-dkim: Creating DKIM private key '/tmp/docker-mailserver/opendkim/keys/subdomain.example.com/mail.private'
chown: invalid user: 'UNKNOWN:UNKNOWN'

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change that does improve existing functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (README.md or the documentation under docs/)
  • If necessary, I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added information about changes made in this PR to CHANGELOG.md

Info @wt-io-it

in case the owner user does not exist in the image to prevent:
```
open-dkim: Creating DKIM private key '/tmp/docker-mailserver/opendkim/keys/subdomain.example.com/mail.private'
    chown: invalid user: 'UNKNOWN:UNKNOWN'
```
@ap-wtioit ap-wtioit force-pushed the master-fix_add_dkim_github branch from 930f302 to 8f7eb8f Compare July 7, 2025 07:57
@polarathene polarathene added this to the v15.1.0 milestone Jul 7, 2025
@polarathene polarathene changed the title open-dkim: use numerical uid and gid for chown fix: open-dkim - Use numerical uid and gid for chown Jul 7, 2025
@casperklein casperklein enabled auto-merge (squash) July 10, 2025 22:14
@casperklein casperklein merged commit 337ae07 into docker-mailserver:master Jul 10, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.