"Fossies" - the Fresh Open Source Software Archive
Member "msmtp-1.8.5/doc/msmtprc-user.example" (13 Dec 2018, 2828 Bytes) of package /linux/privat/msmtp-1.8.5.tar.xz:
As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard
) with prefixed line numbers.
Alternatively you can here view
the uninterpreted source code file.
See also the last Fossies "Diffs"
side-by-side code changes report for "msmtprc-user.example": 1.8.1_vs_1.8.2
1 # Example for a user configuration file ~/.msmtprc
3 # This file focusses on TLS and authentication. Features not used here include
4 # logging, timeouts, SOCKS proxies, TLS parameters, Delivery Status Notification
5 # (DSN) settings, and more.
8 # Set default values for all following accounts.
11 # Use the mail submission port 587 instead of the SMTP port 25.
12 port 587
14 # Always use TLS.
15 tls on
17 # Set a list of trusted CAs for TLS. The default is to use system settings, but
18 # you can select your own file.
19 #tls_trust_file /etc/ssl/certs/ca-certificates.crt
20 # If you select your own file, you should also use the tls_crl_file command to
21 # check for revoked certificates, but unfortunately getting revocation lists and
22 # keeping them up to date is not straightforward.
23 #tls_crl_file ~/.tls-crls
26 # A freemail service
27 account freemail
29 # Host name of the SMTP server
30 host smtp.freemail.example
32 # As an alternative to tls_trust_file/tls_crl_file, you can use tls_fingerprint
33 # to pin a single certificate. You have to update the fingerprint when the
34 # server certificate changes, but an attacker cannot trick you into accepting
35 # a fraudulent certificate. Get the fingerprint with
36 # $ msmtp --serverinfo --tls --tls-certcheck=off --host=smtp.freemail.example
37 #tls_fingerprint 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33
39 # Envelope-from address
40 from email@example.com
42 # Authentication. The password is given using one of five methods, see below.
43 auth on
44 user joe.smith
46 # Password method 1: Add the password to the system keyring, and let msmtp get
47 # it automatically. To set the keyring password using Gnome's libsecret:
48 # $ secret-tool store --label=msmtp \
49 # host smtp.freemail.example \
50 # service smtp \
51 # user joe.smith
53 # Password method 2: Store the password in an encrypted file, and tell msmtp
54 # which command to use to decrypt it. This is usually used with GnuPG, as in
55 # this example. Usually gpg-agent will ask once for the decryption password.
56 passwordeval gpg2 --no-tty -q -d ~/.msmtp-password.gpg
58 # Password method 3: Store the password directly in this file. Usually it is not
59 # a good idea to store passwords in plain text files. If you do it anyway, at
60 # least make sure that this file can only be read by yourself.
61 #password secret123
63 # Password method 4: Store the password in ~/.netrc. This method is probably not
64 # relevant anymore.
66 # Password method 5: Do not specify a password. Msmtp will then prompt you for
67 # it. This means you need to be able to type into a terminal when msmtp runs.
70 # A second mail address at the same freemail service
71 account freemail2 : freemail
72 from firstname.lastname@example.org
75 # The SMTP server of your ISP
76 account isp
77 host mail.isp.example
78 from email@example.com
79 auth on
80 user 12345
83 # Set a default account
84 account default : freemail