msmtp Questions
The fun never ends. I installed msmtp and as near as I can tell
it works as advertised. My SMTP smarthost at
Suddenlink.net presents the following banner which nicely
explains what one needs to do to get real work done. I've had a
little trouble getting msmtp to fit what is required. The
documentation provided by Suddenlink says that smtp is provided
on ports 25 and 587 and both display the following banner:
SMTP server at smtp.suddenlink.net (smtp.suddenlink.net [208.180.40.68]), port 587:
txasav-vm06.suddenlink.net ESMTP server (InterMail vM.8.04.03.20 201-2389-100-164-20150330) ready Fri, 17 Jul 2015 19:59:42 -0500
Capabilities:
SIZE 52428800:
Maximum message size is 52428800 bytes = 50.00 MiB
PIPELINING:
Support for command grouping for faster transmission
ETRN:
Support for RMQS (Remote Message Queue Starting)
DSN:
Support for Delivery Status Notifications
AUTH:
Supported authentication methods:
PLAIN LOGIN
Here's the .msmtprc file with password redacted.
# Set default values for all following accounts.
defaults
tls off
tls_trust_file /etc/ssl/certs/ca-certificates.crt
logfile ~/.msmtp.log
# Set a default account
account default
auth on
from martin.m@suddenlink.net
protocol smtp
port 587
# The SMTP smarthost.
host smtp.suddenlink.net
user martin.m
password 'IfItoldu,Idhave2'
passwordeval eval
# Construct envelope-from addresses of the form "user@oursite.example".
auto_from off
# Don't use starttls.
tls off
tls_starttls off
#tls_trust_file /etc/ssl/certs/ca-certificates.crt
# Syslog logging with facility LOG_MAIL instead of the default LOG_USER.
syslog LOG_MAIL
When I run a test by piping a file in to msmtp, I get
loaded system configuration file /etc/msmtprc
loaded user configuration file /home/martin/.msmtprc
using account default from /home/martin/.msmtprc
host = smtp.suddenlink.net
port = 587
timeout = off
protocol = smtp
domain = localhost
auth = choose
user = martin.m
password = *
passwordeval = eval
ntlmdomain = (not set)
tls = off
tls_starttls = off
tls_trust_file = /etc/ssl/certs/ca-certificates.crt
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = on
tls_force_sslv3 = off
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
auto_from = off
maildomain = (not set)
from = martin.m@suddenlink.net
dsn_notify = (not set)
dsn_return = (not set)
keepbcc = off
logfile = /home/martin/.msmtp.log
syslog = LOG_MAIL
aliases = (not set)
reading recipients from the command line
<-- 220 txasav-vm07.suddenlink.net ESMTP server (InterMail vM.8.04.03.20 201-2389-100-164-20150330) ready Fri, 17 Jul 2015 22:01:57 -0500
--> EHLO localhost
<-- 250-txasav-vm07.suddenlink.net
<-- 250-HELP
<-- 250-XREMOTEQUEUE
<-- 250-ETRN
<-- 250-AUTH=LOGIN PLAIN
<-- 250-AUTH LOGIN PLAIN
<-- 250-PIPELINING
<-- 250-DSN
<-- 250-8BITMIME
<-- 250 SIZE 52428800
msmtp: cannot use a secure authentication method
msmtp: could not send mail (account default from /home/martin/.msmtprc)
Believe it or not, this is the closest I have gotten to
making anything work.
Martin McCormick
Reply to: