remove rspamd socket

This commit is contained in:
Robin Raymond 2018-11-11 18:03:04 +01:00
parent 1c1e301c11
commit 8b7dde4b54
1 changed files with 1 additions and 4 deletions

View File

@ -21,15 +21,12 @@ let
postfixCfg = config.services.postfix; postfixCfg = config.services.postfix;
rspamdCfg = config.services.rspamd; rspamdCfg = config.services.rspamd;
rspamdSocket = if rspamdCfg.socketActivation rspamdSocket = "rspamd.service";
then "rspamd-rspamd_proxy-1.socket"
else "rspamd.service";
in in
{ {
config = with cfg; lib.mkIf enable { config = with cfg; lib.mkIf enable {
services.rspamd = { services.rspamd = {
enable = true; enable = true;
socketActivation = false;
extraConfig = '' extraConfig = ''
extended_spam_headers = yes; extended_spam_headers = yes;
'' + (lib.optionalString cfg.virusScanning '' '' + (lib.optionalString cfg.virusScanning ''