global/security: add common email/domain configuration
This commit is contained in:
parent
d612267294
commit
17d9520365
1 changed files with 23 additions and 1 deletions
|
@ -84,7 +84,10 @@ with lib;
|
|||
};
|
||||
};
|
||||
|
||||
common = {
|
||||
common = rec {
|
||||
domain = "inx.moe";
|
||||
subdomain = subdomain: "${subdomain}.${domain}";
|
||||
|
||||
nginx = rec {
|
||||
ssl-cert = {
|
||||
enableACME = true;
|
||||
|
@ -103,5 +106,24 @@ with lib;
|
|||
user = "${account}s1";
|
||||
host = "${account}.rsync.net";
|
||||
};
|
||||
|
||||
email = rec {
|
||||
withUser = user: "${user}@${domain}";
|
||||
outgoingUser = "noreply";
|
||||
incomingUser = "incoming";
|
||||
outgoing = withUser outgoingUser;
|
||||
incoming = withUser incomingUser;
|
||||
withSubaddress = subaddress: "${outgoingUser}+${subaddress}@${domain}";
|
||||
|
||||
smtp = {
|
||||
address = "smtp.purelymail.com";
|
||||
SSLTLS = 465;
|
||||
STARTTLS = 587;
|
||||
};
|
||||
imap = {
|
||||
address = "imap.purelymail.com";
|
||||
port = 993;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue