Skip to content

[BUG] OpenDKIM running when disabled #3169

@jrpear

Description

@jrpear

Miscellaneous first checks

  • I checked that all ports are open and not blocked by my ISP / hosting provider.
  • I know that SSL errors are likely the result of a wrong setup on the user side and not caused by DMS itself. I'm confident my setup is correct.

Affected Component(s)

opendkim is started even though ENABLE_OPENDKIM=0

What happened and when does this occur?

opendkim is started even though ENABLE_OPENDKIM=0

What did you expect to happen?

I expected opendkim to not be started

How do we replicate the issue?

Just run a container with ENABLE_OPENDKIM set to zero (and ENABLE_OPENDMARC for good measure). Observe that the log contains repeated messages like:

mailserver    | 2023-03-09 15:50:43,589 INFO spawned: 'opendkim' with pid 1465
mailserver    | 2023-03-09 15:50:43,598 INFO success: opendkim entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
mailserver    | 2023-03-09 15:50:43,598 INFO exited: opendkim (exit status 78; not expected)

Here are the commands I ran:

wget https://raw.githubusercontent.com/docker-mailserver/docker-mailserver/dab70709d90df1d83b920eccc6c0386b283d677e/docker-compose.yml
cat <<-EOF >mailserver.env
	LOG_LEVEL=info
	SUPERVISOR_LOGLEVEL=info
	ENABLE_OPENDKIM=0
	ENABLE_OPENDMARC=0
EOF
docker-compose up -d
docker exec -it $(docker-compose ps -q) setup email add [email protected]
# Enter password
docker-compose logs --tail=10 -f

DMS version

v11.3.1

What operating system is DMS running on?

Linux

Which operating system version?

Debian testing

What instruction set architecture is DMS running on?

AMD64 / x86_64

Code of conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions