msmtp Configuration

This page explains how to configure msmtp for sending emails via your A/I account.

In the example below, USER@DOMAIN.ORG is your account name (full email address), and PASSWORD the associated password.

Ensure you have the ca-certificates package installed, and add the following to your ~/.msmtprc file:

account USER@DOMAIN.ORG
port 587
from USER@DOMAIN.ORG
user USER@DOMAIN.ORG
auth on
password PASSWORD
tls on
tls_starttls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
host smtp.autistici.org
tls_certcheck on

To check that the configuration works, try sending a test email to yourself:

echo test | msmtp -a USER@DOMAIN.ORG USER@DOMAIN.ORG
JavaScript license information