Subject: [sup-talk] Arg, gmail

From: [email-masked] (Guillaume Quintard)
Date: Wed, 27 May 2009 18:24:07 +0200

Hi all,
I'm having a *little* problem with gmail: I can't send mail with
neither msmtp nor ssmtp, I get "no route to host" with the first one
and "can't auth" with the latter, even though last year it worked (I
got too annoyed by ferrets errors I dropped sup, shame on me!). If
anyone has a (s|m)smtp+gmail config, could he please mail me in
private to help me tackle this? I don't want to flood the mlist.

By the way, two questions:
- when we'll we see an automatic option to save changes to a mail as
we quit it (.a or ,a or x to kill the buffer)?
- I can haz a width limit so I don't loose sight of my mails whenever
I sleep on the right key? (cheezburger would be good too)
in inbox-mode that's just max(arbitrary_size, terminal_width)
in thread-view-mode max(terminal_width, 80 + max_depth*indent)

anyway, awesome job, I'm always amazed that sup is the only one of it's kind.

-- 
Guillaume

---

From: [email-masked] (William Morgan)
Date: Wed, 27 May 2009 09:38:26 -0700

Hi Guillaume,

Nice to hear from you again.

Reformatted excerpts from Guillaume Quintard's message of 2009-05-27:
> (I got too annoyed by ferrets errors I dropped sup, shame on me!).

I think we have fixed those in the meanwhile.

> we quit it (.a or ,a or x to kill the buffer)?

You mean, so that you don't have to press '$'? When you press 'q'
everything's automatically saved. Does that help?

But now that we have undo support, removing the '$' key is an option in
the future.

> in thread-view-mode max(terminal_width, 80 + max_depth*indent)

This isn't exactly what you want, but you can press '[' to jump back to
the left side of the screen.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Iain)
Date: Wed, 27 May 2009 17:36:45 +0100

(Replying to the list in case of future person with the same problem.)

> and "can't auth" with the latter, even though last year it worked

Gmail uses non-standard port 587.

Partial example .msmtprc:

account whateveryouwant
auth on
host smtp.gmail.com
port 587
user yourusername at gmail.com
password yourpassword
tls on
tls_starttls on
tls_certcheck off  # Insecure; better would be to add the Gmail cert to
tls_trust_file
auto_from on

---

From: [email-masked] (Guillaume Quintard)
Date: Wed, 27 May 2009 19:29:34 +0200

On Wed, May 27, 2009 at 6:38 PM, William Morgan
<wmorgan-sup at masanjin.net> wrote:

account gmail
auth on
host smtp.gmail.com
port 587
user foo at gmail.com
password bar
tls on
tls_starttls on
tls_certcheck off
tls_trust_file
auto_from on

and I get
smtp: cannot connect to smtp.gmail.com, port 587: No route to host
 msmtp: could not send mail (account gmail from /home/shivan/.msmtprc)
Problem sending mail: Couldn't execute msmtp --account=gmail -t

I don't get what I'm not doing right

> I think we have fixed those in the meanwhile.
I heard so, that's why I'm back, and so far, so good.

> everything's automatically saved. Does that help?

not really, I don't close sup very often. what annoys me is that if I
take care of a few mails, by using ",a", go back to inbox, and reload
the view, the mails are still there. Killing the buffer could save.
Since it's only one mail, that would go fast.

> the left side of the screen.

nope, that's not exactly what I want :-)

-- 
Guillaume

---

From: [email-masked] (Iain)
Date: Wed, 27 May 2009 18:36:45 +0100

> tls_trust_file

Sorry, this was some careless copy-and-pasting on my part.
tls_trust_file was part of the commented line above, not supposed to be
on a separate line by itself.

But that's not what is causing the problem...

> Problem sending mail: Couldn't execute msmtp --account=gmail -t

What is the output of:
telnet smtp.gmail.com 587
?

---

From: [email-masked] (Nicolas Pouillard)
Date: Wed, 27 May 2009 19:41:33 +0200

> I don't get what I'm not doing right

I use this one (mostly the same except tls things and no auto_from):

defaults
tls on

account gmail
host smtp.gmail.com
port 587
auth on
user foo
password bar
tls_starttls on
tls_trust_file ............../ThawtePremiumServerCA.crt
tls_certcheck on
logfile /var/log/msmtp.log

-- 
Nicolas Pouillard
http://nicolaspouillard.fr

---

From: [email-masked] (Mark Alexander)
Date: Wed, 27 May 2009 10:42:54 -0700

On Wed, May 27, 2009 at 10:29 AM, Guillaume Quintard
> smtp: cannot connect to smtp.gmail.com, port 587: No route to host

I'm away from my home machine so can't check what I'm using there
to send to gmail (I know it's working with msmtp, though).  However,
I did try the following just now from a BSD machine:

% telnet smtp.gmail.com 587
Trying 209.85.201.111...
telnet: connect to address 209.85.201.111: Connection refused
% telnet smtp.gmail.com 465
Trying 209.85.201.111...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.

So you might want to try port 465.

il (account gmail from /home/shivan/.msmtprc)
> _______________________________________________
> sup-talk mailing list
> sup-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk
>

---

From: [email-masked] (Guillaume Quintard)
Date: Wed, 27 May 2009 19:53:04 +0200

> telnet smtp.gmail.com 587

I don't like that. it just keeps hanging, but on another machine,
outside of the LAN, it works perfectly fine. I should talk to the
admins I guess.

Thanks for your time guys.

-- 
Guillaume