Jason Pyeron:
> > -----Original Message-----
> > From: Wietse Venema
> > Sent: Tuesday, September 28, 2021 7:45 PM
> >
> > Howard Chu:
> > > Jason Pyeron wrote:
> > > > I am trying to understand why group and other permissions are set to 6.
> > >
> > > On some platforms the permission bits on sockets are completely
> > > ignored. The only way to control access is thru the permissions
> > > of the containing directory.
> >
> > Postfix has to work on a range of operating systems, not just Linux.
> > And that is why Postfix has restricted access to the public (owner
> > all+group execute) and private (owner only) directories.
>
> Right - which is why I am asking about using 0666 vs 0600? This is not
> restrictive.
>
> In v3.6.2:
> postfix/src/util/unix_listen.c:96: if (fchmod(sock, 0666) < 0)
> postfix/src/util/unix_listen.c:99: if (chmod(addr, 0666) < 0)
>
> Which OS does postfix not work on if it is restricted to 0600 or 0660 ?
On every OS that doesn't ignore socket permissions.
Wietse