Comment faire tourner Opendkim sur une Socket ?

Le
Ph. Gras
Bonjour,

Ma question s'adresse uniquement à ceux qui font tourner Opendkim =
sur une Socket,
inutile de me sortir des liens, ça fait 2 jours que j'épluche =
Google.

Le symptôme :
==
:/etc/opendkim# tail /var/log/syslog
May 20 15:00:28 ns3001166 postfix/smtpd[30318]: warning: connect to =
Milter service unix:/var/run/opendkim/opendkim.sock: No such file or =
directory

Ma chaussette :

# ps -ax | grep opendkim
7074 ? Ssl 0:00 /usr/sbin/opendkim -x /etc/opendkim.conf -u =
opendkim -P /var/run/opendkim/opendkim.pid -p =
local:/var/run/opendkim/opendkim.sock
8727 pts/0 S+ 0:00 grep opendkim

:/etc/opendkim# service opendkim status
● opendkim.service - LSB: Start the OpenDKIM service
Loaded: loaded (/etc/init.d/opendkim)
Active: active (running) since sam. 2017-05-20 17:41:44 CEST; 1h =
14min ago
Process: 7062 ExecStop=/etc/init.d/opendkim stop (code=exited, =
status=0/SUCCESS)
Process: 7068 ExecStart=/etc/init.d/opendkim start (code=exited, =
status=0/SUCCESS)
CGroup: /system.slice/opendkim.service
└─7074 /usr/sbin/opendkim -x =
/etc/opendkim.conf -u opendkim -P /var/run/opendkim/opendkim.pid -p =
local:/va

mai 20 17:41:44 ns3001166.ip-5-196-73.eu opendkim[7068]: Starting =
OpenDKIM: opendkim.
mai 20 17:41:44 ns3001166.ip-5-196-73.eu systemd[1]: Started LSB: Start =
the OpenDKIM service.
mai 20 17:41:44 ns3001166.ip-5-196-73.eu opendkim[7074]: OpenDKIM Filter =
v2.9.2 starting (args: -x /etc/opendkim.ock)
Hint: Some lines were ellipsized, use -l to show in full.


Quelques extraits de configuration :
==

:/etc/opendkim# vi opendkim.conf
# Socket
# Socket =
local:/var/spool/postfix/var/run/opendkim/opendkim.sock
# Socket local:/var/run/opendkim/opendkim.sock

# vi ../default/opendkim
SOCKET="local:/var/run/opendkim/opendkim.sock" # default
#SOCKET="local:/var/spool/postfix/var/run/opendkim/opendkim.sock"
#SOCKET="inet:54321" # listen on all interfaces on port 54321
#SOCKET="inet:12345@localhost" # listen on loopback on port 12345
#SOCKET="inet:12345@192.0.2.1" # listen on 192.0.2.1 on port 12345

:/etc/opendkim# vi ../postfix/main.cf
milter_default_action = accept
milter_protocol = 6
#smtpd_milters = local:/var/run/opendkim/opendkim.sock
#non_smtpd_milters = local:/var/run/opendkim/opendkim.sock
smtpd_milters = unix:/opendkim/opendkim.sock
non_smtpd_milters = $smtpd_milters

D'avance, je vous remercie pour votre sollicitude.

Ph. Gras=
Vos réponses
Gagnez chaque mois un abonnement Premium avec GNT : Inscrivez-vous !
Trier par : date / pertinence
Fabien R
Le #26434078
On 20/05/2017 19:03, Ph. Gras wrote:
L'avertissement semble normal
May 20 15:00:28 ns3001166 postfix/smtpd[30318]: warning: connect to Milter service unix:/var/run/opendkim/opendkim.sock: No such file or directory

par rapport à la conf active:
smtpd_milters = unix:/opendkim/opendkim.sock

--
Fabien
Publicité
Poster une réponse
Anonyme