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" ];
|
||||
serviceConfig.User = "steveej";
|
||||
serviceConfig.Group = "users";
|
||||
serviceConfig.RestartSec = 600;
|
||||
serviceConfig.Restart = "always";
|
||||
description = "Getmail service";
|
||||
path = [ pkgs.getmail ];
|
||||
script = let
|
||||
|
@ -72,8 +74,8 @@ in args // {
|
|||
mailboxes = ('INBOX',)
|
||||
|
||||
[destination]
|
||||
type = Maildir
|
||||
path = ~/.maildir/
|
||||
type = MDA_external
|
||||
path = ${pkgs.dovecot}/libexec/dovecot/dovecot-lda
|
||||
'';
|
||||
in ''
|
||||
getmail --rcfile=${rc} --idle=INBOX
|
||||
|
@ -87,7 +89,7 @@ in args // {
|
|||
serviceConfig.Group = "users";
|
||||
description = "Getmail service";
|
||||
path = [ pkgs.getmail ];
|
||||
serviceConfig.RestartSec = 900;
|
||||
serviceConfig.RestartSec = 1000;
|
||||
serviceConfig.Restart = "always";
|
||||
script = let
|
||||
rc = pkgs.writeText "schtifATweb.de.getmail.rc" ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue