diff --git a/configs/workhorse/mail-fetcher.nix b/configs/workhorse/mail-fetcher.nix index c366bcf..82e1057 100644 --- a/configs/workhorse/mail-fetcher.nix +++ b/configs/workhorse/mail-fetcher.nix @@ -37,6 +37,11 @@ source = toString ; requiredBy = ["fetchmail.service"]; }; + "c-base.palo" = { + user = config.users.users.mailUser.name; + source = toString ; + requiredBy = ["fetchmail.service"]; + }; }; environment.systemPackages = [ pkgs.muchsync ]; @@ -96,6 +101,56 @@ }; notmuch.enable = true; }; + c-base = { + primary = false; + address = "palo@c-base.org"; + aliases = [ ]; + realName = "Ingolf Wagner"; + userName = "palo"; + passwordCommand = "cat ${toString config.krops.userKeys."c-base.palo".target}"; + imap = { + host = "c-mail.c-base.org"; + port = 993; + # fetched using : nix-shell -p openssl --run "openssl s_client -connect c-mail.c-base.org:993 -showcerts" + tls.certificatesFile = + pkgs.writeText "c-base.pem" '' + -----BEGIN CERTIFICATE----- + MIIFKDCCAxCgAwIBAgIDArgjMA0GCSqGSIb3DQEBDQUAMFQxFDASBgNVBAoTC0NB + Y2VydCBJbmMuMR4wHAYDVQQLExVodHRwOi8vd3d3LkNBY2VydC5vcmcxHDAaBgNV + BAMTE0NBY2VydCBDbGFzcyAzIFJvb3QwHhcNMTcxMTE1MDkxMjI3WhcNMTkxMTE1 + MDkxMjI3WjBhMQswCQYDVQQGEwJERTEPMA0GA1UECBMGQmVybGluMQ8wDQYDVQQH + EwZCZXJsaW4xFDASBgNVBAoTC2MtYmFzZSBlLlYuMRowGAYDVQQDExFjLW1haWwu + Yy1iYXNlLm9yZzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKR3XBxJ + 72MayCS0D5GCoHcY0TQLs1DQSohCCobRdSowFJzNQw/2lL6bb+Q2rmevZQXuM4vP + YbFytvTDmY5y5MNXEqGLfi8D5TcaP/RdXWQU++yUunE6yMdqZNheeXPjM//PnoXG + DyT236BovEi3YipUUsLXFiRj+cAjrQE7a2YUs3fjV3P6grMH0V06J6P6+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l0a + TDFlwPWrRmeZrBhVt1O9Hb/Yyt0vMAej4J6jVkErGCeliipMhlA3gFrsOl0uVMf7 + u9IDWpuZmAjdYebK/kh2iyj7xEgfNY1yvwryBNJiV5g7jPSkaVleJ/Due8Yl7eVk + RamaGp3UnFTUy7gxvWmBYGKIxt3d/TBZnptvMA== + -----END CERTIFICATE-----''; + }; + mbsync = { + enable = true; + create = "both"; + }; + notmuch.enable = true; + }; gmail = { # for google accounts you have to allow 'less secure apps' in accounts.google.com primary = true; @@ -252,6 +307,7 @@ {query = "from:jobs2web.com" ; tags = ["+newzealand" "+jobs" "-inbox" ];} {query = "from:mailings.gmx.net" ; tags = ["+junk" "-inbox" "-unread"];} {query = "from:paypal.de AND subject:Bestätigung"; tags = ["-unread" "+paypal" "+billing"] ;} + {query = "to:c-base.org" = ["+cbase"] ;} {query = "to:renoise@ingolf-wagner.de OR to:root@renoise.com OR from:renoise.com OR to:admin@renoise.com"; tags = ["+renoise"] ;} {query = "from:amazon.de OR from:amazon.com AND NOT to:renoise.com"; tags = ["+shop" "+amazon" "+billing"];}