mpaperno / spampd

SpamPD - Spam Proxy Daemon. A spam-filtering SMTP/LMTP proxy server using SpamAssassin in Perl. Since 2002.
GNU General Public License v3.0
34 stars 9 forks source link

Unix ports #13

Closed Kritzefitz closed 7 years ago

Kritzefitz commented 7 years ago

Let's try this once again.

These changes enable the possibility to listen on and relay to UNIX sockets instead of INET. This is controlled via the --socket and --relaysocket options. When they are specified their corresponding --(relay-)host and --(relay-)port counterparts are ignored.

It is also possible to specify different permissions for the listening socket via the --socket-perms option. Originally I intended to add options for controlling the owning user and group of the created socket, butNet::Server doesn't seem to support this and does a good job at preventing this from being done in a hook.

Note: The unix-ports branch doesn't contain the commits from my previous merge request, so you may need to pull with --force.

mpaperno commented 7 years ago

Looks great, thanks! Only minor niggle is that --socket-perms is not documented. Maybe a quick usage example (of the new socket options) as well? But anyway, looks good to merge.

-Max

Kritzefitz commented 7 years ago

My last commit adds both the missing documentation and a usage example.

mpaperno commented 7 years ago

Thanks again!