mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-04-25 16:08:30 +02:00
mailserver fixes
This commit is contained in:
parent
6972c8d5dd
commit
d337c62451
5 changed files with 84 additions and 68 deletions
|
@ -38,66 +38,66 @@ in
|
|||
msmtp.enable = true;
|
||||
};
|
||||
accounts.email.accounts = {
|
||||
# "rouven@rfive.de" = rec {
|
||||
# address = "rouven@rfive.de";
|
||||
# gpg.key = gpg-default-key;
|
||||
# realName = "Rouven Seifert";
|
||||
# userName = address;
|
||||
# passwordCommand = "${pkgs.coreutils}/bin/cat $XDG_RUNTIME_DIR/secrets/email/rfive";
|
||||
# imap = {
|
||||
# host = "pro1.mail.ovh.net";
|
||||
# port = 993;
|
||||
# };
|
||||
# smtp = {
|
||||
# host = "pro1.mail.ovh.net";
|
||||
# port = 587;
|
||||
# tls.useStartTls = true;
|
||||
# };
|
||||
# msmtp.enable = true;
|
||||
# mbsync = {
|
||||
# enable = true;
|
||||
# create = "maildir";
|
||||
# expunge = "both";
|
||||
# groups.rfive = {
|
||||
# channels.inbox = {
|
||||
# nearPattern = "INBOX";
|
||||
# farPattern = "INBOX";
|
||||
# extraConfig.Create = "near";
|
||||
# };
|
||||
# channels.trash = {
|
||||
# nearPattern = "Trash";
|
||||
# farPattern = "Gel&APY-schte Elemente";
|
||||
# extraConfig.Create = "near";
|
||||
# };
|
||||
# channels.sent = {
|
||||
# nearPattern = "Sent";
|
||||
# farPattern = "Gesendete Elemente";
|
||||
# extraConfig.Create = "near";
|
||||
# };
|
||||
# channels.junk = {
|
||||
# nearPattern = "Junk";
|
||||
# farPattern = "Junk-E-Mail";
|
||||
# extraConfig.Create = "near";
|
||||
# };
|
||||
# channels.drafts = {
|
||||
# nearPattern = "Drafts";
|
||||
# farPattern = "Entw&APw-rfe";
|
||||
# extraConfig.Create = "near";
|
||||
# };
|
||||
# };
|
||||
# extraConfig = {
|
||||
# account = {
|
||||
# AuthMechs = "Login";
|
||||
# };
|
||||
# };
|
||||
# };
|
||||
# neomutt = let c = mbsync.groups.rfive.channels; in
|
||||
# {
|
||||
# enable = true;
|
||||
# mailboxName = " rfive.de";
|
||||
# extraMailboxes = lib.lists.forEach [ c.sent c.trash c.junk c.drafts ] (x: x.nearPattern);
|
||||
# };
|
||||
# };
|
||||
"rouven@rfive.de" = rec {
|
||||
address = "rouven@rfive.de";
|
||||
gpg.key = gpg-default-key;
|
||||
realName = "Rouven Seifert";
|
||||
userName = "rouven";
|
||||
passwordCommand = "${pkgs.coreutils}/bin/cat $XDG_RUNTIME_DIR/secrets/email/rfive";
|
||||
imap = {
|
||||
host = "mail.rfive.de";
|
||||
port = 993;
|
||||
};
|
||||
smtp = {
|
||||
host = "mail.rfive.de";
|
||||
port = 587;
|
||||
tls.useStartTls = true;
|
||||
};
|
||||
msmtp.enable = true;
|
||||
mbsync = {
|
||||
enable = true;
|
||||
create = "maildir";
|
||||
expunge = "both";
|
||||
groups.rfive = {
|
||||
channels.inbox = {
|
||||
nearPattern = "INBOX";
|
||||
farPattern = "INBOX";
|
||||
extraConfig.Create = "near";
|
||||
};
|
||||
channels.trash = {
|
||||
nearPattern = "Trash";
|
||||
farPattern = "Trash";
|
||||
extraConfig.Create = "near";
|
||||
};
|
||||
channels.sent = {
|
||||
nearPattern = "Sent";
|
||||
farPattern = "Sent";
|
||||
extraConfig.Create = "near";
|
||||
};
|
||||
channels.junk = {
|
||||
nearPattern = "Junk";
|
||||
farPattern = "Junk";
|
||||
extraConfig.Create = "near";
|
||||
};
|
||||
channels.drafts = {
|
||||
nearPattern = "Drafts";
|
||||
farPattern = "Drafts";
|
||||
extraConfig.Create = "near";
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
account = {
|
||||
AuthMechs = "Login";
|
||||
};
|
||||
};
|
||||
};
|
||||
neomutt = let c = mbsync.groups.rfive.channels; in
|
||||
{
|
||||
enable = true;
|
||||
mailboxName = " rfive.de";
|
||||
extraMailboxes = lib.lists.forEach [ c.sent c.trash c.junk c.drafts ] (x: x.nearPattern);
|
||||
};
|
||||
};
|
||||
"TU-Dresden" = rec {
|
||||
address = "rouven.seifert@mailbox.tu-dresden.de";
|
||||
gpg.key = gpg-default-key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue