opensmtpd nixos module: chmod & chown until the daemon's heart's content
This commit is contained in:
parent
dab32a1fa6
commit
03b9a159fe
1 changed files with 2 additions and 0 deletions
|
@ -109,12 +109,14 @@ in {
|
||||||
after = [ "network.target" ];
|
after = [ "network.target" ];
|
||||||
preStart = ''
|
preStart = ''
|
||||||
mkdir -p /var/spool/smtpd
|
mkdir -p /var/spool/smtpd
|
||||||
|
chmod 711 /var/spool/smtpd
|
||||||
|
|
||||||
mkdir -p /var/spool/smtpd/offline
|
mkdir -p /var/spool/smtpd/offline
|
||||||
chown root.smtpq /var/spool/smtpd/offline
|
chown root.smtpq /var/spool/smtpd/offline
|
||||||
chmod 770 /var/spool/smtpd/offline
|
chmod 770 /var/spool/smtpd/offline
|
||||||
|
|
||||||
mkdir -p /var/spool/smtpd/purge
|
mkdir -p /var/spool/smtpd/purge
|
||||||
|
chown smtpq.root /var/spool/smtpd/purge
|
||||||
chmod 700 /var/spool/smtpd/purge
|
chmod 700 /var/spool/smtpd/purge
|
||||||
'';
|
'';
|
||||||
serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
|
serviceConfig.ExecStart = "${opensmtpd}/sbin/smtpd -d -f ${conf} ${args}";
|
||||||
|
|
Loading…
Reference in a new issue