YAGAGT - Yet Another Gnus And Gmail thread!

109 views
Skip to first unread message

Sebastian Tennant

unread,
Dec 2, 2007, 5:50:01 PM12/2/07
to info-gnu...@gnu.org
Hi all,

I'm just wondering, if any of the poeple who were having this problem
sending mail using Gmail's SMTP server...

530 5.7.0 Must issue a STARTTLS command first o24sm838057ugd

...(and wrote to this list about it) now have it working?

I seem to be doing everything I'm supposed to, but still the problem
persists. Grrrr...

Is anyone really _sending_ email using Gnus and Gmail? If so, what
clinched it for you?

Sebastian

No Gnus v0.7
Emacs 22.1.1

Volkan YAZICI

unread,
Dec 3, 2007, 5:47:18 AM12/3/07
to
On Dec 3, 12:50 am, Sebastian Tennant <seb...@smolny.plus.com> wrote:
> 530 5.7.0 Must issue a STARTTLS command first o24sm838057ugd

See SET-SMTP-SSL in http://www.emacswiki.org/cgi-bin/emacs-en/MultipleSMTPAccounts
(That configuration works fine with me; even with 7 accounts and 2 of
them belongs to gmail.) Make sure you configured necessary variables
appropriately and have a suitable STARTTLS-GNUTLS-PROGRAM installed.


Regards.

Sebastian Tennant

unread,
Dec 3, 2007, 8:32:06 AM12/3/07
to info-gnu...@gnu.org
Quoth Volkan YAZICI <volkan...@gmail.com>:

Hi Volkan,

Thank you for your help. I thought I gnutls-cli was installed... but it
wasn't!

I can now send email using Gmail's SMTP server :-)

However, another problem now presents itself!

I've been using fetchmail to retreive my email from Gmail quite happily
for a couple of years now, but I've just noticed that mail I send using
Gmail's SMTP servers appears in my Inbox, (in Gmail's website), but is
not available for download using POP3 (i.e., fetchmail)!

How do you retrieve your email from Gmail?

Sebastian

P.S. I've been doing some research and have every intention of meeting
with you and Muart soon :-)

Volkan YAZICI

unread,
Dec 3, 2007, 11:02:15 AM12/3/07
to
On Dec 3, 3:32 pm, Sebastian Tennant <seb...@smolny.plus.com> wrote:
> I've been using fetchmail to retreive my email from Gmail quite happily
> for a couple of years now, but I've just noticed that mail I send using
> Gmail's SMTP servers appears in my Inbox, (in Gmail's website), but is
> not available for download using POP3 (i.e., fetchmail)!
>
> How do you retrieve your email from Gmail?

I don't have an idea about that. (By the way, neither fetched messages
appear as "read" in Gmail's web interface.) It can probably be solved
via IMAP. I use

(setq gnus-message-archive-group "nnml:sent")

to archive sent message in gnus. To also archive messages sent via
Gmail's web interface, you'll probably need IMAP again.


Regards.

Sebastian Tennant

unread,
Dec 3, 2007, 1:45:08 PM12/3/07
to info-gnu...@gnu.org
Quoth Volkan YAZICI <volkan...@gmail.com>:

Thanks again Volkan. It's a bug at Gmail's end, nothing else can
explain it.

I had this problem before... it has to do with their POP3 options.

There are three:

1. "Enable POP3 for _all_ mail (even mail that's already been downloaded)"
[by which they mean 'archived', I believe]

2. "Enable POP3 for mail that arrived from now on.

3. Disable POP3.

Gmail's POP3 servers get 'stuck' sometimes and you have to toggle the
first two options to get them going... at least that's what I hope it
is. I'll know more soon.

Sebastian

Edward O'Connor

unread,
Dec 3, 2007, 11:35:17 PM12/3/07
to info-gnu...@gnu.org
Sebastian Tennant wrote:

> Is anyone really _sending_ email using Gnus and Gmail?

Yup. Here's the relevant part of ~/.gnus:

,----[~/.gnus]
| (setq smtpmail-starttls-credentials '(("smtp.gmail.com" 587 nil nil))
| smtpmail-smtp-server "smtp.gmail.com"
| smtpmail-default-smtp-server "smtp.gmail.com"
| send-mail-function 'smtpmail-send-it
| message-send-mail-function 'smtpmail-send-it
| smtpmail-smtp-service 587
| smtpmail-auth-credentials "~/.authinfo")
`----

I have a line in .authinfo that looks like this:

,----[~/.authinfo]
| machine smtp.gmail.com login hob...@gmail.com password ********
`----


Ted

--
Edward O'Connor
hob...@gmail.com

Ense petit placidam sub libertate quietem.

Torben Knudsen

unread,
Dec 4, 2007, 3:34:49 AM12/4/07
to
>>>>> "Ted" == Edward O'Connor <hob...@gmail.com> writes:

Ted> Sebastian Tennant wrote:
>> Is anyone really _sending_ email using Gnus and Gmail?

Ted> Yup. Here's the relevant part of ~/.gnus:

...

Ted> I have a line in .authinfo that looks like this:

...

I have problems sending mails from at home but not from university.
Now i tried to copy your (snipped) settings. Again it works from
university.

Another thing I notices was "Make sure you configured necessary


variables appropriately and have a suitable STARTTLS-GNUTLS-PROGRAM

installed" How do I check if I have such a program and if I need it?

--
Associate Prof. Ph.D Torben Knudsen Phone : (+45) 9635 8670
Section of Automation and Control, Mobile : (+45) 2787 9826
Department of Electronic Systems, Email : t...@es.aau.dk
Aalborg University
Fredrik Bajersvej 7
DK-9220 Aalborg Ø
Denmark

Sebastian Tennant

unread,
Dec 4, 2007, 3:54:20 AM12/4/07
to info-gnu...@gnu.org
Quoth Torben Knudsen <t...@es.aau.dk>:

>>>>>> "Ted" == Edward O'Connor <hob...@gmail.com> writes:
>
> Ted> Sebastian Tennant wrote:
>>> Is anyone really _sending_ email using Gnus and Gmail?
>
> Ted> Yup. Here's the relevant part of ~/.gnus:

Interesting that it works without defining the TLS program. My setup
(working at last) includes this line:

(setq starttls-gnutls-program "gnutls-cli")

> Ted> I have a line in .authinfo that looks like this:

Hmm, that's perhaps better that putting it in your .gnus

> Another thing I notices was "Make sure you configured necessary
> variables appropriately and have a suitable STARTTLS-GNUTLS-PROGRAM
> installed" How do I check if I have such a program and if I need it?

The Debian package is called gnutls-bin.

$ dpkg -l | grep gnutls

should tell you if you have it or not, (provided you run Debian of
course).

Sebastian

Torben Knudsen

unread,
Dec 4, 2007, 4:38:33 AM12/4/07
to
>>>>> "Sebastian" == Sebastian Tennant <seb...@smolny.plus.com> writes:

Sebastian> Quoth Torben Knudsen <t...@es.aau.dk>:


>>>>>>> "Ted" == Edward O'Connor <hob...@gmail.com> writes:
>>
Ted> Sebastian Tennant wrote:
>>>> Is anyone really _sending_ email using Gnus and Gmail?
>>
Ted> Yup. Here's the relevant part of ~/.gnus:

Sebastian> Interesting that it works without defining the TLS program.
Sebastian> My setup (working at last) includes this line:

Sebastian> (setq starttls-gnutls-program "gnutls-cli")

I had this line but now it is commented out

Ted> I have a line in .authinfo that looks like this:

Sebastian> Hmm, that's perhaps better that putting it in your .gnus

>> Another thing I notices was "Make sure you configured necessary
>> variables appropriately and have a suitable STARTTLS-GNUTLS-PROGRAM
>> installed" How do I check if I have such a program and if I need
>> it?

Sebastian> The Debian package is called gnutls-bin.

Sebastian> $ dpkg -l | grep gnutls

Sebastian> should tell you if you have it or not, (provided you run
Sebastian> Debian of course).

It says

tk@tk-laptop:~$ dpkg -l | grep gnutls
ii libgnutls13 1.4.4-3build1
the GNU TLS library - runtime library

but there is no executable program called gnutls

also there is a package gnutls-bin which I haven't got. Should I
install it?

Sebastian Tennant

unread,
Dec 4, 2007, 5:13:18 AM12/4/07
to info-gnu...@gnu.org
Quoth Torben Knudsen <t...@es.aau.dk>:

Yes, absolutely, install it. That's the package you need.

My tip was supposed to read:

$ dpkg -l | grep gnutls-bin

Doh! Sorry. You could be up and running by now!

Sebastian

Sebastian Tennant

unread,
Dec 4, 2007, 6:32:34 AM12/4/07
to info-gnu...@gnu.org
The package is called gnutls-bin (for binary). The program itself is
called 'gnutls-cli' (for command line interface). Sorry I didn't make
that very clear.

$ which gnutls-cli
/usr/bin/gnutls-cli

$ file /usr/bin/gnutls-cli
/usr/bin/gnutls-cli: ELF 32-bit LSB executable, Intel 80386, version 1
(SYSV), for GNU/Linux 2.6.8, dynamically linked (uses shared libs),
stripped

Sebastian

Reply all
Reply to author
Forward
0 new messages