[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: msmtp Questions



Quoting Martin G. McCormick (martin@server1.shellworld.net):
> 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 

I see no encryption here. I think this is why it is telling you that
it "cannot use a secure authentication method". I wrote "You might
want to check out port 587 but I think you'll be disappointed"
just this morning. As I wrote there, you should try port 465.

> Here's the .msmtprc file with password redacted.
> 
> # Set default values for all following accounts.
> defaults
> tls off
      ↑↑↑
Looking at msmtp.pdf I'm almost certain you need tls on, even though
it could work that out for itself by looking at the port number, 465.

> 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
       ↑↑↑
Change this to 465.

> # The SMTP smarthost.
> host smtp.suddenlink.net
> user martin.m
> password 'IfItoldu,Idhave2'
> passwordeval eval
               ↑↑↑↑
I'm not sure why you have this line if the previous one has just told
it the password already. I would remove it.

> # Construct envelope-from addresses of the form "user@oursite.example".
    ↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑
The comment above doesn't agree with the next line. It doesn't
construct the envelope-from; you've set it with "from martin.m@suddenlink.net"

> auto_from off

> # Don't use starttls.
> tls off
  ↑↑↑↑↑↑↑
This line duplicates one higher up. I think you need on.

> 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

> Believe it or not, this is the closest I have gotten to
> making anything work.

I assume you haven't tried typing in my example, then.

Cheers,
David.


Reply to: