home-manager/tests/modules/programs/git/git-with-msmtp-expected.conf
Andrew Fontaine aa479b0124
git: rely on msmtp for smtp if msmtp is enabled (#1829)
If a user using msmtp to send all their email, it would be preferred if
git used it as well.

The only settings necessary are to set the smtp server to the msmtp
binary and set envelop sender to true, which makes git call msmtp with
the -f flag to set the from address from the email.
2021-02-28 16:06:11 +01:00

15 lines
304 B
Plaintext

[sendemail "hm-account"]
from = "hm@example.org"
smtpEncryption = "tls"
smtpServer = "smtp.example.org"
smtpUser = "home.manager.jr"
[sendemail "hm@example.com"]
envelopeSender = true
from = "hm@example.com"
smtpServer = "@msmtp@/bin/msmtp"
[user]
email = "hm@example.com"
name = "H. M. Test"