nix/os/containers/mailserver: use LDA delivery and fix restart times
This commit is contained in:
parent
1a030dec60
commit
9f3b5d3a80
1 changed files with 5 additions and 3 deletions
|
@ -54,6 +54,8 @@ in args // {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
serviceConfig.User = "steveej";
|
serviceConfig.User = "steveej";
|
||||||
serviceConfig.Group = "users";
|
serviceConfig.Group = "users";
|
||||||
|
serviceConfig.RestartSec = 600;
|
||||||
|
serviceConfig.Restart = "always";
|
||||||
description = "Getmail service";
|
description = "Getmail service";
|
||||||
path = [ pkgs.getmail ];
|
path = [ pkgs.getmail ];
|
||||||
script = let
|
script = let
|
||||||
|
@ -72,8 +74,8 @@ in args // {
|
||||||
mailboxes = ('INBOX',)
|
mailboxes = ('INBOX',)
|
||||||
|
|
||||||
[destination]
|
[destination]
|
||||||
type = Maildir
|
type = MDA_external
|
||||||
path = ~/.maildir/
|
path = ${pkgs.dovecot}/libexec/dovecot/dovecot-lda
|
||||||
'';
|
'';
|
||||||
in ''
|
in ''
|
||||||
getmail --rcfile=${rc} --idle=INBOX
|
getmail --rcfile=${rc} --idle=INBOX
|
||||||
|
@ -87,7 +89,7 @@ in args // {
|
||||||
serviceConfig.Group = "users";
|
serviceConfig.Group = "users";
|
||||||
description = "Getmail service";
|
description = "Getmail service";
|
||||||
path = [ pkgs.getmail ];
|
path = [ pkgs.getmail ];
|
||||||
serviceConfig.RestartSec = 900;
|
serviceConfig.RestartSec = 1000;
|
||||||
serviceConfig.Restart = "always";
|
serviceConfig.Restart = "always";
|
||||||
script = let
|
script = let
|
||||||
rc = pkgs.writeText "schtifATweb.de.getmail.rc" ''
|
rc = pkgs.writeText "schtifATweb.de.getmail.rc" ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue