FS#61855 - [spamassassin] Allow local socket connection instead of just TCP/IP connection

Attached to Project: Arch Linux
Opened by AMM (amish) - Monday, 25 February 2019, 09:57 GMT
Last edited by Florian Pritz (bluewind) - Sunday, 28 April 2019, 12:30 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Florian Pritz (bluewind)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Most daemon softwares (postgresql, clamav etc) now support connection over socket in addition to over TCP/IP.

Spamassassin (spamd) has support for unix sockets too. But current spamassassin.service file does not make use of one.

Unix sockets can make spamc/spamd connection and communication faster and also less resource hungry.

I know I can add and override but it would be nice to have it by default as it adds to optimization too.

Suggested changes to /usr/lib/systemd/system/spamassassin.service
-ExecStart=/usr/bin/vendor_perl/spamd -x -u spamd -g spamd
+ExecStart=/usr/bin/vendor_perl/spamd -x -u spamd -g spamd --listen=/run/spamd/spamd.sock --listen=localhost

New file:
$ cat /usr/lib/tmpfiles.d/spamd.conf
d /run/spamd 0755 spamd spamd -

Thank you.

Additional info:
* package version(s)
All version of spamassassin

* config and/or log files etc.
As above.
This task depends upon

Closed by  Florian Pritz (bluewind)
Sunday, 28 April 2019, 12:30 GMT
Reason for closing:  Implemented
Additional comments about closing:  spamassassin 3.4.2-2

Loading...