Gary Aitken via Postfix-users:
> New install of postfix on a freebsd 12.4 system.
> I have milter-greylist installed, set up in main.cf as:
> 
>    milter_protocol = 6
>    milter_default_action = accept
>    smtpd_milters = local:/var/milter-greylist/milter-greylist.sock
> 
> The socket to milter-greylist is at:
> 
> $ ls -dl /var/milter-greylist/
> drwxrwxr-x  2 mailnull  mailnull  512 May 23 19:27 /var/milter-greylist/
> $ ls -l /var/milter-greylist/milter-greylist.sock
> srwxrwxr-x  1 mailnull  mailnull  0 May 22 16:43 
> /var/milter-greylist/milter-greylist.sock
> 
> The directory and the socket file were originally rwxr-xr-x
> permissions.  I had to change them to group writeable to get the
> milter to work.
> 
> Is this the proper way to set this up?

Executable sockets? I don't think so. Socket permissions have no
meaning on some operating systems systems, so I rely on directory
permision instead.

On my systems the sockets have mode 666 (rw-rw-rw-) and access to
those sockets is allowed with 'execute' group permission. (drwx--x---).

I suggest that you do that with the milter socket.

> Or should postfix be run as mailnull?

That is not supported. Postfix should run with its own UID and GID,
and no other progran should use those.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to