smartd: only enable postfix integration IF postfix is enabled
This commit is contained in:
@@ -54,7 +54,9 @@ in
|
|||||||
# keep "@privileged" or "@raw-io", since it needs to do that
|
# keep "@privileged" or "@raw-io", since it needs to do that
|
||||||
];
|
];
|
||||||
# serviceConfig.RestrictNamespaces = true;
|
# serviceConfig.RestrictNamespaces = true;
|
||||||
serviceConfig.ReadWritePaths = "/var/lib/postfix/queue/maildrop";
|
serviceConfig.ReadWritePaths = lib.mkIf config.services.postfix.enable [
|
||||||
|
"/var/lib/postfix/queue/maildrop"
|
||||||
|
];
|
||||||
# serviceConfig.PrivateUsers = true; # can't, because it requires CAP_SYS_RAWIO
|
# serviceConfig.PrivateUsers = true; # can't, because it requires CAP_SYS_RAWIO
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user