Add msmtp
This commit is contained in:
parent
f6a81ccc4e
commit
40078dd529
10
user/msmtp/.config/msmtp/getpass.py
Executable file
10
user/msmtp/.config/msmtp/getpass.py
Executable file
@ -0,0 +1,10 @@
|
|||||||
|
#! /usr/bin/env python2
|
||||||
|
import sys
|
||||||
|
from subprocess import check_output
|
||||||
|
|
||||||
|
|
||||||
|
def get_pass(account):
|
||||||
|
return check_output("pass mail/" + account, shell=True).splitlines()[0]
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print get_pass(sys.argv[1])
|
14
user/msmtp/.config/msmtp/msmtprc
Normal file
14
user/msmtp/.config/msmtp/msmtprc
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
account jombi
|
||||||
|
host mail.jombi.fr
|
||||||
|
port 587
|
||||||
|
protocol smtp
|
||||||
|
auth on
|
||||||
|
from nicolas@jombi.fr
|
||||||
|
user nicolas@jombi.fr
|
||||||
|
passwordeval "$XDG_CONFIG_HOME/msmtp/getpass.py nicolas@jombi.fr"
|
||||||
|
tls on
|
||||||
|
tls_starttls on
|
||||||
|
tls_trust_file /etc/ssl/certs/ca-certificates.crt
|
||||||
|
|
||||||
|
|
||||||
|
account default : jombi
|
Loading…
x
Reference in New Issue
Block a user