1. À propos de nous
  2. Services
  3. Aide
  4. Howto
  5. Reseaux
  6. Contribuer
  7. ||
  8. it
  9. en
  10. es
  11. de
  12. fr
  13. pt
  14. cat
My Account Login

A/I Mutt+Msmtp Configuration Howto (SSL/TLS, POP/SMTP)



Software details

Output of `mutt -v`:

#Mutt 1.5.11 (2005-09-15)
#System: Linux (i686) [using ncurses 5.4] [using libidn 0.5.15
#Compile options:

so, a mutt with pop and gnutls configured (and no USE_SSL nor USE_SASL).

Output of `msmtp --version`:

#msmtp version 1.4.0
#TLS/SSL library: GnuTLS
#Authentication library: GNU SASL
#Supported authentication methods:
#plain cram-md5 digest-md5 external login
#System configuration file name: /etc/msmtprc

so, a msmtp with GNUTLS and SASL, as opposed to the default 'ssl' Gentoo flag

If you are using a different Linux distribution from Gentoo you should find both the mutt and msmtp packages in your distribution package repository

Reading email via POP using mutt

For reading via POP in mutt, add and customize the following line (join the following!) in .muttrc, customizing PASSWORD and USER terms with the ones provided in your connection parameters:

	macro index <F8> ":set dsn_notify=<enter>:unhook *<enter>:unset
	pop_user<enter>:unset pop_pass<enter>:set
	pops://USER@DOMAIN.ORG@mail.autistici.org<enter>:my_hdr From:
	USER <USER@DOMAIN.ORG><enter>:set sendmail='/usr/bin/msmtp -a
	USER'<enter>:reply_to From: USER

Append the A/I certificate for POP mail to ~/.mutt/certificates and add the following to .muttrc :

	set certificate_file=~/.mutt/certificates

(or mutt wil prompt you to add the certificate automatically)

Place the next in .muttrc ONLY if you have priority conflicts with other accounts :

	set pop_authenticators="digest-md5:apop:user"

Sending email via STMP with msmtp

For sending, place this in your default .msmtprc:

	port 587
	user USER@DOMAIN.org
	auth on
	password PASSWORD
	tls on
	tls_starttls on
	tls_trust_file ~/ca.crt  # download from A/I Certification Authority website
	host smtp.autistici.org
	tls_certcheck on

Test your msmtp configuration by mailing a "foo" message to yourself :

	echo foo | msmtp -a USER USER@DOMAIN.ORG

Translate this page