1
0
Fork 0

rt: email setup WIP

This commit is contained in:
Sebastien Bourdeauducq 2021-08-11 10:54:24 +08:00
parent d9536ff5db
commit e3578011a5
2 changed files with 4 additions and 1 deletions

View File

@ -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";

View File

@ -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}');