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

[msmtp-users] Google smtp server very slow



I've used msmtp to send email through the gmail smtp servers for
several years.  It would take a couple of seconds.  About 6 weeks ago,
something happened, and email sent this way starting taking a long
time (60 seconds or more) before it would be sent.   It always
would go through successfully.   I couldn't figure out what
happened, so I just started using the Yahoo smtp servers and they
work fine for me.   But today I'd like to understand what's happening
with gmail.

Here is my .msmtprc file (email, user, and password are changed to *)


account default
host smtp.gmail.com
port 465
from *gmail.com
tls on
tls_certcheck off
tls_starttls off
auth login
user *@gmail.com
password *
logfile /home/*/tmp/MSMTP.log



If I create file foobar (with no contents, but it makes no difference
if I put something in the file) and run

        cat $HOME/foobar | msmtp -a default -v *@gmail.com

I get this output immediately:

loaded system configuration file /etc/msmtprc
loaded user configuration file /home/*/.msmtprc
using account default from /home/*/.msmtprc
host                  = smtp.gmail.com
port                  = 465
timeout               = off
protocol              = smtp
domain                = localhost
auth                  = LOGIN
user                  = *@gmail.com
password              = *
passwordeval          = (not set)
ntlmdomain            = (not set)
tls                   = on
tls_starttls          = off
tls_trust_file        = (not set)
tls_crl_file          = (not set)
tls_fingerprint       = (not set)
tls_key_file          = (not set)
tls_cert_file         = (not set)
tls_certcheck         = off
tls_force_sslv3       = off
tls_min_dh_prime_bits = (not set)
tls_priorities        = (not set)
auto_from             = off
maildomain            = (not set)
from                  = *@gmail.com
dsn_notify            = (not set)
dsn_return            = (not set)
keepbcc               = off
logfile                  = /home/*/TMP/MSMTP.log
syslog                = (not set)
reading recipients from the command line

>>> Now there is a long pause, about 60 seconds,
>>> then the following output continues and the email
>>> continues along and is successfully sent.


TLS certificate information:
    Owner:
        Common Name: smtp.gmail.com
        Organization: Google Inc
        Locality: Mountain View
        State or Province: California
        Country: US
    Issuer:
        Common Name: Google Internet Authority G2
        Organization: Google Inc
        Country: US
    Validity:
        Activation time: Tue 10 Sep 2013 02:54:47 AM CDT
        Expiration time: Wed 10 Sep 2014 02:54:47 AM CDT
    Fingerprints:
        SHA1: 10:75:E1:8C:DF:93:15:3B:A1:8F:CD:FE:D3:11:79:D5:16:43:77:BC
        MD5:  E4:CA:10:85:C3:53:00:E6:A1:D2:AC:C4:35:E4:A2:10


<-- 220 mx.google.com ESMTP f9sm7012257igc.15 - gsmtp
--> EHLO localhost
<-- 250-mx.google.com at your service, [67.167.112.44]
<-- 250-SIZE 35882577
<-- 250-8BITMIME
<-- 250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
<-- 250-ENHANCEDSTATUSCODES
<-- 250 CHUNKING
--> AUTH LOGIN
<-- 334 VXNlcm5hbWU6
--> azlqZW5pdXNAZ21haWwuY29t
<-- 334 UGFzc3dvcmQ6
--> d2ZsZHR2MzI=
<-- 235 2.7.0 Accepted
--> MAIL FROM:<*@gmail.com>
<-- 250 2.1.0 OK f9sm7012257igc.15 - gsmtp
--> RCPT TO:<*@gmail.com>
<-- 250 2.1.5 OK f9sm7012257igc.15 - gsmtp
--> DATA
<-- 354  Go ahead f9sm7012257igc.15 - gsmtp
--> .
<-- 250 2.0.0 OK 1403704103 f9sm7012257igc.15 - gsmtp
--> QUIT
<-- 221 2.0.0 closing connection f9sm7012257igc.15 - gsmtp

If I use the gmail web interface (using gmail SMTP servers), it
goes out immediately.   I'm running PCLinuxOS if it matters...

I need help figuring out why it's taking so long to send a
simple email with gmail....