Permission failed opendkim.sock

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Permission failed opendkim.sock

Maurizio Caloro-2

Hello

Here i’am running with Debian Stretch and i have a littel undestanding mismatch, please help

 

Postfix write to me

  • mail postfix/smtpd[4904]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • mail postfix/smtpd[4904]: warning  connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

But i think that i have given the right access –

drwxr-xr-x  2 opendkim  postfix    4096 May 16 11:23 opendkim

  • -rw-rw----  1 root     root       5 May 16 11:23 opendkim.pid
  • srwxrwx---  1 opendkim postfix    0 May 16 11:23 opendkim.sock
  • root@mail:/var/spool/postfix/opendkim#

 

main.cf

  • smtpd_milters = unix:/var/spool/postfix/opendkim/opendkim.sock,unix:opendmarc/opendmarc.sock

 

opendkim.conf

  • UserID                opendkim:postfix

 

Thans

Mauri

 

Reply | Threaded
Open this post in threaded view
|

Re: Permission failed opendkim.sock

Francesc Peñalvez-2

in the /lib/systemd/system/opendmarc.service file add Group = postfix under User =
that will correctly create the sock with correct permissions

El 16/05/2020 a las 11:35, [hidden email] escribió:

Hello

Here i’am running with Debian Stretch and i have a littel undestanding mismatch, please help

 

Postfix write to me

  • mail postfix/smtpd[4904]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • mail postfix/smtpd[4904]: warning  connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

But i think that i have given the right access –

drwxr-xr-x  2 opendkim  postfix    4096 May 16 11:23 opendkim

  • -rw-rw----  1 root     root       5 May 16 11:23 opendkim.pid
  • srwxrwx---  1 opendkim postfix    0 May 16 11:23 opendkim.sock
  • root@mail:/var/spool/postfix/opendkim#

 

main.cf

  • smtpd_milters = unix:/var/spool/postfix/opendkim/opendkim.sock,unix:opendmarc/opendmarc.sock

 

opendkim.conf

  • UserID                opendkim:postfix

 

Thans

Mauri

 


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

AW: Permission failed opendkim.sock

Maurizio Caloro-2

Thanks for fast Answer, yes Service postfix, opendkim, opendmarc restarted.

 

  • May 16 12:09:51 mail postfix/smtpd[25681]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • May 16 12:09:51 mail postfix/smtpd[25681]: warning: connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

cat /lib/systemd/system/opendkim.service | grep begin [Sevice]

>>[Service]

>>Type=forking

>>PIDFile=/var/spool/postfix/opendkim/opendkim.pid

>>UMask=0007

>>User=

>>Group=postfix

 

cat /lib/systemd/system/opendmarc.service | grep begin [Sevice]

>>[Service]

>>Type=forking

>>PIDFile=/var/run/opendmarc/opendmarc.pid

>>User=

>>Group=postfix

>>ExecStart=/usr/sbin/opendmarc

>>Restart=on-failure

>>ExecReload=/bin/kill -USR1 $MAINPID

 

 

 

---

Von: [hidden email] <[hidden email]> Im Auftrag von Francesc Peñalvez
Gesendet: Samstag, 16. Mai 2020 11:56
An: [hidden email]
Betreff: Re: Permission failed opendkim.sock

 

in the /lib/systemd/system/opendmarc.service file add Group = postfix under User =
that will correctly create the sock with correct permissions

El 16/05/2020 a las 11:35, [hidden email] escribió:

Hello

Here i’am running with Debian Stretch and i have a littel undestanding mismatch, please help

 

Postfix write to me

  • mail postfix/smtpd[4904]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • mail postfix/smtpd[4904]: warning  connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

But i think that i have given the right access –

drwxr-xr-x  2 opendkim  postfix    4096 May 16 11:23 opendkim

  • -rw-rw----  1 root     root       5 May 16 11:23 opendkim.pid
  • srwxrwx---  1 opendkim postfix    0 May 16 11:23 opendkim.sock
  • root@mail:/var/spool/postfix/opendkim#

 

main.cf

  • smtpd_milters = unix:/var/spool/postfix/opendkim/opendkim.sock,unix:opendmarc/opendmarc.sock

 

opendkim.conf

  • UserID                opendkim:postfix

 

Thans

Mauri

 

Reply | Threaded
Open this post in threaded view
|

Re: AW: Permission failed opendkim.sock

Francesc Peñalvez-2

User = opendmarc should also be set.

in main.cf depending if it is with chroot only the 2 option is needed in smtpd_milters if it is not with chroot the first option
  this is my conf:
[Unit]
Description = OpenDMARC Milter
Documentation = man: opendmarc (8) man: opendmarc.conf (5)
After = network.target nss-lookup.target

[Service]
Type = forking
PIDFile = / run / opendmarc / opendmarc.pid
User = opendmarc
Group = postfix
ExecStart = / usr / sbin / opendmarc
Restart = on-failure
ExecReload = / bin / kill -USR1 $ MAINPID

[Install]
WantedBy = multi-user.target
/lib/systemd/system/opendmarc.service

El 16/05/2020 a las 12:15, [hidden email] escribió:

Thanks for fast Answer, yes Service postfix, opendkim, opendmarc restarted.

 

  • May 16 12:09:51 mail postfix/smtpd[25681]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • May 16 12:09:51 mail postfix/smtpd[25681]: warning: connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

cat /lib/systemd/system/opendkim.service | grep begin [Sevice]

>>[Service]

>>Type=forking

>>PIDFile=/var/spool/postfix/opendkim/opendkim.pid

>>UMask=0007

>>User=

>>Group=postfix

 

cat /lib/systemd/system/opendmarc.service | grep begin [Sevice]

>>[Service]

>>Type=forking

>>PIDFile=/var/run/opendmarc/opendmarc.pid

>>User=

>>Group=postfix

>>ExecStart=/usr/sbin/opendmarc

>>Restart=on-failure

>>ExecReload=/bin/kill -USR1 $MAINPID

 

 

 

---

Von: [hidden email] [hidden email] Im Auftrag von Francesc Peñalvez
Gesendet: Samstag, 16. Mai 2020 11:56
An: [hidden email]
Betreff: Re: Permission failed opendkim.sock

 

in the /lib/systemd/system/opendmarc.service file add Group = postfix under User =
that will correctly create the sock with correct permissions

El 16/05/2020 a las 11:35, [hidden email] escribió:

Hello

Here i’am running with Debian Stretch and i have a littel undestanding mismatch, please help

 

Postfix write to me

  • mail postfix/smtpd[4904]: warning: connect to Milter service unix:/var/spool/postfix/opendkim/opendkim.sock: No such file or directory
  • mail postfix/smtpd[4904]: warning  connect to Milter service unix:opendmarc/opendmarc.sock: Permission denied

 

But i think that i have given the right access –

drwxr-xr-x  2 opendkim  postfix    4096 May 16 11:23 opendkim

  • -rw-rw----  1 root     root       5 May 16 11:23 opendkim.pid
  • srwxrwx---  1 opendkim postfix    0 May 16 11:23 opendkim.sock
  • root@mail:/var/spool/postfix/opendkim#

 

main.cf

  • smtpd_milters = unix:/var/spool/postfix/opendkim/opendkim.sock,unix:opendmarc/opendmarc.sock

 

opendkim.conf

  • UserID                opendkim:postfix

 

Thans

Mauri

 


smime.p7s (5K) Download Attachment