From 854b0222a073cf3c3ee453562207192b8cb0c7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Wed, 25 May 2022 11:16:26 +0200 Subject: [PATCH] Add mail@b12f.io Add configuration for offlineimap, mutt, and msmtp for mail@b12f.io. This is a catch-all inbox, but it can send out via mail@ as well. Secrets will have to be added to the secret-tool manually. --- users/ben/.config/msmtp/config | 10 +++++++++ users/ben/.config/mutt/mail@b12f.io.muttrc | 21 +++++++++++++++++++ users/ben/.config/mutt/mail@b12f.io.signature | 12 +++++++++++ users/ben/.config/offlineimap/config | 17 ++++++++++++++- users/ben/home.nix | 3 +++ 5 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 users/ben/.config/mutt/mail@b12f.io.muttrc create mode 100644 users/ben/.config/mutt/mail@b12f.io.signature diff --git a/users/ben/.config/msmtp/config b/users/ben/.config/msmtp/config index 20ab37a7..dc324118 100644 --- a/users/ben/.config/msmtp/config +++ b/users/ben/.config/msmtp/config @@ -48,5 +48,15 @@ account admins@pub.solar tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt +account mail@b12f.io + host mail.b12f.io + port 587 + protocol smtp + auth on + from mail@b12f.io + user mail@b12f.io + tls on + tls_trust_file /etc/ssl/certs/ca-certificates.crt + account default : hello@benjaminbaedorf.eu diff --git a/users/ben/.config/mutt/mail@b12f.io.muttrc b/users/ben/.config/mutt/mail@b12f.io.muttrc new file mode 100644 index 00000000..ebe1d713 --- /dev/null +++ b/users/ben/.config/mutt/mail@b12f.io.muttrc @@ -0,0 +1,21 @@ +# vim: filetype=muttrc + +set from = "Benjamin Bädorf " +set sendmail = "msmtp -a mail@b12f.io" +set signature = "~/.config/mutt/mail@b12f.io.signature" + +set pgp_default_key="4332E0D02B214D31376C366E4406E80E13CD656C" + +set mbox_type = Maildir +set folder = ~/Mail +set spoolfile = "+mail\@b12f.io/INBOX" +set postponed = "+mail\@b12f.io/Drafts" +set record = "+mail\@b12f.io/Sent" +set trash = "+mail\@b12f.io/Trash" +mbox-hook = "+mail\@b12f.io/Archive" +unmailboxes * +mailboxes +mail\@b12f.io/INBOX \ + +mail\@b12f.io/Drafts \ + +mail\@b12f.io/Sent \ + +mail\@b12f.io/Archive \ + +mail\@b12f.io/Trash diff --git a/users/ben/.config/mutt/mail@b12f.io.signature b/users/ben/.config/mutt/mail@b12f.io.signature new file mode 100644 index 00000000..3e3e37aa --- /dev/null +++ b/users/ben/.config/mutt/mail@b12f.io.signature @@ -0,0 +1,12 @@ + +-- + +Benjamin Bädorf (he/him) +Software Engineer + +MAIL: mail@b12f.io +TEL: +49 15 778 959 877 +GPG: 4332 E0D0 2B21 4D31 376C 366E 4406 E80E 13CD 656C +GIT: git.b12f.io/b12f +MATRIX: @b12f:pub.solar +WEB: benjaminbaedorf.eu diff --git a/users/ben/.config/offlineimap/config b/users/ben/.config/offlineimap/config index ede944c4..041ffd89 100644 --- a/users/ben/.config/offlineimap/config +++ b/users/ben/.config/offlineimap/config @@ -1,7 +1,7 @@ [general] pythonfile = $XDG_CONFIG_HOME/offlineimap/functions.py metadata = $XDG_DATA_HOME/offlineimap -accounts = BBEU, RWTH, MiOM, PubSolar +accounts = BBEU, RWTH, MiOM, PubSolar, b12f [Account BBEU] localrepository = LocalBBEU @@ -77,3 +77,18 @@ remotehost = mail.greenbaum.cloud remoteuser = admins@pub.solar remotepasseval = get_secret("service", "smtp", "host", "mail.greenbaum.cloud", "user", "admins@pub.solar") sslcacertfile = /etc/ssl/certs/ca-certificates.crt + +[Account b12f] +localrepository = Localb12f +remoterepository = Remoteb12f + +[Repository Localb12f] +type = Maildir +localfolders = ~/Mail/mail@b12f.io + +[Repository Remoteb12f] +type = IMAP +remotehost = mail.b12f.io +remoteuser = mail@b12f.io +remotepasseval = get_secret("service", "smtp", "host", "mail.b12f.io", "user", "mail@b12f.io") +sslcacertfile = /etc/ssl/certs/ca-certificates.crt diff --git a/users/ben/home.nix b/users/ben/home.nix index ac768fc2..0aff38a7 100644 --- a/users/ben/home.nix +++ b/users/ben/home.nix @@ -74,6 +74,7 @@ in macro index 'source $XDG_CONFIG_HOME/mutt/b.baedorf@openproject.com.muttrc!' macro index 'source $XDG_CONFIG_HOME/mutt/byb@miom.space.muttrc!' macro index 'source $XDG_CONFIG_HOME/mutt/admins@pub.solar.muttrc!' + macro index 'source $XDG_CONFIG_HOME/mutt/mail@b12f.io.muttrc!' ''; xdg.configFile."mutt/hello@benjaminbaedorf.eu.muttrc".source = ./.config/mutt + "/hello@benjaminbaedorf.eu.muttrc"; xdg.configFile."mutt/benjamin.baedorf@rwth-aachen.de.muttrc".source = ./.config/mutt + "/benjamin.baedorf@rwth-aachen.de.muttrc"; @@ -84,6 +85,8 @@ in xdg.configFile."mutt/byb@miom.space.signature".source = ./.config/mutt + "/byb@miom.space.signature"; xdg.configFile."mutt/admins@pub.solar.muttrc".source = ./.config/mutt + "/admins@pub.solar.muttrc"; xdg.configFile."mutt/admins@pub.solar.signature".source = ./.config/mutt + "/admins@pub.solar.signature"; + xdg.configFile."mutt/mail@b12f.io.muttrc".source = ./.config/mutt + "/mail@b12f.io.muttrc"; + xdg.configFile."mutt/mail@b12f.io.signature".source = ./.config/mutt + "/mail@b12f.io.signature"; xdg.configFile."offlineimap/config".source = ./.config/offlineimap/config; xdg.configFile."msmtp/config".source = ./.config/msmtp/config; # xdg.configFile."wallpaper.jpg".source = ./assets/wallpaper.jpg;