Add MSMTP configuration
This commit is contained in:
parent
b03d1a86be
commit
c36b17fa7a
1 changed files with 36 additions and 3 deletions
|
@ -1,8 +1,13 @@
|
||||||
(define-module (oni home config rincewind)
|
(define-module (oni home config rincewind)
|
||||||
#:use-module ((gnu home services guix)
|
|
||||||
#:select (home-channels-service-type))
|
|
||||||
#:use-module ((gnu home)
|
#:use-module ((gnu home)
|
||||||
#:select (home-environment))
|
#:select (home-environment))
|
||||||
|
#:use-module ((gnu home services mail)
|
||||||
|
#:select (home-msmtp-service-type
|
||||||
|
home-msmtp-configuration
|
||||||
|
msmtp-configuration
|
||||||
|
msmtp-account))
|
||||||
|
#:use-module ((gnu home services guix)
|
||||||
|
#:select (home-channels-service-type))
|
||||||
#:use-module ((gnu packages certs)
|
#:use-module ((gnu packages certs)
|
||||||
#:select (nss-certs))
|
#:select (nss-certs))
|
||||||
#:use-module ((gnu packages cdrom)
|
#:use-module ((gnu packages cdrom)
|
||||||
|
@ -487,4 +492,32 @@
|
||||||
".mbsyncstate.journal" ".mbsyncstate.new"))))
|
".mbsyncstate.journal" ".mbsyncstate.new"))))
|
||||||
|
|
||||||
(service home-autokey-service-type)
|
(service home-autokey-service-type)
|
||||||
(service home-copyq-service-type))))
|
(service home-copyq-service-type)
|
||||||
|
|
||||||
|
(service home-msmtp-service-type
|
||||||
|
(home-msmtp-configuration
|
||||||
|
(defaults (msmtp-configuration
|
||||||
|
(auth? #t)
|
||||||
|
(tls? #t)
|
||||||
|
(tls-starttls? #t)
|
||||||
|
(port 587)))
|
||||||
|
(accounts
|
||||||
|
(list (msmtp-account
|
||||||
|
(name "gmail")
|
||||||
|
;; Use `secret-tool store --label=msmtp host smtp.gmail.com
|
||||||
|
;; service smtp user ryuslash@gmail.com' to store the
|
||||||
|
;; password.
|
||||||
|
(configuration (msmtp-configuration
|
||||||
|
(host "smtp.gmail.com")
|
||||||
|
(from "ryuslash@gmail.com")
|
||||||
|
(user "ryuslash@gmail.com"))))
|
||||||
|
(msmtp-account
|
||||||
|
(name "ryuslash")
|
||||||
|
;; Use `secret-tool store --label=msmtp host
|
||||||
|
;; smtp-ryuslash.alwaysdata.net service smtp user
|
||||||
|
;; tom@ryuslash.org' to store the password.
|
||||||
|
(configuration (msmtp-configuration
|
||||||
|
(host "smtp-ryuslash.alwaysdata.net")
|
||||||
|
(from "tom@ryuslash.org")
|
||||||
|
(user "tom@ryuslash.org"))))))
|
||||||
|
(default-account "ryuslash"))))))
|
||||||
|
|
Loading…
Reference in a new issue