- Control panel: CWP 1.7
- Operating system: AlmaLinux 9.8
- MTA: Postfix
- DKIM service: OpenDKIM
- Mail filtering: Amavis
ProblemCWP generated the DKIM key and the corresponding DNS record correctly. The CWP interface showed
Install DKIM & SPF enabled, and the OpenDKIM service was running.
However, messages sent to external providers arrived with:
dkim=none (message not signed)
spf=pass
dmarc=pass
The local OpenDKIM key test was successful:
opendkim-testkey -d example.tld -s default -vvv
key OK
The problem was not the DKIM key or the DNS record. Postfix was not connected to OpenDKIM.
DiagnosisAfter using
Rebuild Mail Server, CWP recorded:
dkimspf = 1
However, the effective Postfix configuration did not contain:
smtpd_milters
non_smtpd_milters
content_filter
The SMTP service for Amavis existed in
master.cf, but the line connecting Postfix to Amavis was commented:
# -o content_filter=smtp-amavis:127.0.0.1:10024
Therefore, CWP generated the DKIM infrastructure, but the outgoing Postfix delivery path did not use OpenDKIM.
SolutionThe integration was added directly to
/etc/postfix/main.cf:
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = inet:127.0.0.1:8891
milter_default_action = accept
milter_protocol = 6
No internal CWP scripts were modified.
After reloading Postfix, the active configuration showed:
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = inet:127.0.0.1:8891
milter_default_action = accept
milter_protocol = 6
External validationTest messages were sent to Gmail and Outlook.
Gmail reported:
dkim=pass
spf=pass
dmarc=pass
Outlook reported:
dkim=pass
spf=pass
dmarc=pass
compauth=pass
ConclusionIn this installation, CWP generated the DKIM keys and DNS records correctly, but the mail server rebuild did not connect Postfix to OpenDKIM.
Adding the local OpenDKIM milter settings to Postfix resolved the issue without modifying CWP internal scripts.