rt: email setup WIP
This commit is contained in:
parent
d9536ff5db
commit
e3578011a5
|
@ -764,6 +764,8 @@ in
|
||||||
ownerEmail = "sb" + "@m-labs.hk";
|
ownerEmail = "sb" + "@m-labs.hk";
|
||||||
commentAddress = "helpdesk" + "@m-labs.hk";
|
commentAddress = "helpdesk" + "@m-labs.hk";
|
||||||
correspondAddress = "helpdesk" + "@m-labs.hk";
|
correspondAddress = "helpdesk" + "@m-labs.hk";
|
||||||
|
sendmailPath = "${pkgs.msmtp}/bin/msmtp";
|
||||||
|
sendmailArguments = ["-t" "-C" "/etc/nixos/secret/rt_msmtp.conf"];
|
||||||
};
|
};
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
|
|
|
@ -35,10 +35,11 @@ let
|
||||||
Set($OwnerEmail, '${cfg.ownerEmail}');
|
Set($OwnerEmail, '${cfg.ownerEmail}');
|
||||||
Set($MaxAttachmentSize, 15360000);
|
Set($MaxAttachmentSize, 15360000);
|
||||||
Set($CheckMoreMSMailHeaders, 1);
|
Set($CheckMoreMSMailHeaders, 1);
|
||||||
|
Set($RTAddressRegexp, '^(helpdesk|sales)\@(m-labs.hk)$');
|
||||||
Set($LoopsToRTOwner, 0);
|
Set($LoopsToRTOwner, 0);
|
||||||
|
|
||||||
# System (Outgoing mail)
|
# System (Outgoing mail)
|
||||||
Set($SetOutgoingMailFrom, '${cfg.ownerEmail}');
|
Set($SetOutgoingMailFrom, 'helpdesk@m-labs.hk');
|
||||||
|
|
||||||
# System (Sendmail configuration)
|
# System (Sendmail configuration)
|
||||||
Set($SendmailPath, '${cfg.sendmailPath}');
|
Set($SendmailPath, '${cfg.sendmailPath}');
|
||||||
|
|
Loading…
Reference in New Issue