On Thu, 26 Mar 2026 11:40:36 +0100
Enrico Morelli via Postfix-users <[email protected]> wrote:
> Dear all,
>
> I tried to configure my mail server to use DKIM to sign outgoing
> mails on my Debian 11 with Postfix 3.5.25 and OpenDKIM 2.11.0.
>
> Seems that Postfix is not calling the milter.
>
> My main.cf configuration related to the milters:
>
> ## To use rspamd and DKIM
> smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:11332
> non_smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:11332
> milter_mail_macros = i {mail_addr} {client_addr} {client_name}
> {auth_authen} milter_default_action = accept
> milter_protocol = 6
>
> The OpenDKIM seems configured well:
>
> # opendkim-testkey -d cerm.unifi.it -s default -vvv
> opendkim-testkey: using default configfile /etc/opendkim.conf
> opendkim-testkey: key loaded from
> /etc/opendkim/keys/cerm.unifi.it/default.private opendkim-testkey:
> checking key 'default._domainkey.cerm.unifi.it' opendkim-testkey: key
> not secure opendkim-testkey: key OK
>
> In the opendkim.conf I had set:
>
> Socket inet:[email protected]
>
> and it is running:
>
> # ss -lnpt | grep 8891
> LISTEN 0 4096 127.0.0.1:8891 0.0.0.0:*
> users:(("opendkim",pid=2382553,fd=3))
>
> Using "journalctl -u opendkim -f" to check what happens when I try to
> send an email, nothing appears. I see only DKIM verifications
>
> I addedd
> debug_peer_level = 3
> debug_peer_list = 127.0.0.1
>
> to main.cf to check for connections problem, but nothing appears.
>
> In the master.cf there aren't milter options that could prevent the
> call to opendkim.
>
> Where can I investigate?
>
> Thanks in advance
I found the problem. I've to put entire network in the OpenDKIM TrustedHosts
configuration file.
--
-----------------------------------------------------------
Enrico Morelli
System Administrator | Programmer | Web Developer
CERM - Polo Scientifico
via Sacconi, 6 - 50019 Sesto Fiorentino (FI) - ITALY
------------------------------------------------------------
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]