After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 702263 - Unable to handle multiline SMTP greetings
Unable to handle multiline SMTP greetings
Status: RESOLVED FIXED
Product: gnome-online-accounts
Classification: Core
Component: general
3.8.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Online Accounts maintainer(s)
GNOME Online Accounts maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-06-14 12:39 UTC by Ruben Grimm
Modified: 2013-06-19 12:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
smtp-auth-plain: Handle multiline SMTP greetings (2.77 KB, patch)
2013-06-18 15:28 UTC, Debarshi Ray
committed Details | Review

Description Ruben Grimm 2013-06-14 12:39:33 UTC
When I try to configure a mail account (IMAP / SMTP) with SSL decryption the server throws an error while trying to add the SMTP connection:

"220-We do not authorize the use of this system to transport unsolicited."

The error is thrown during PLAIN authentication. I can connect to the SMTP server with all other applications (also Evolution).
Comment 1 Debarshi Ray 2013-06-14 13:43:35 UTC
Would it be possible to have a test account on the server?

Otherwise, can you please do the following:
$ export G_MESSAGES_DEBUG=all
$ gnome-control-center
... and show me the transcript of the conversation between the client and the server?
Comment 2 Ruben Grimm 2013-06-14 13:50:12 UTC
I added a test account:

IMAP Server: bmind.de (SSL over dedicated Port)
SMTP Server: bmind.de (SSL over dedicated Port)

Login: gnome-online-account@bmind.de
Password: awesomegnome



Those were my debug results:

(gnome-control-center:12478): Gtk-DEBUG: Connecting to session manager
15:48:21.590:[12478]:[WARNING]: g_socket_client_connect_to_host() failed: Nicht akzeptables TLS-Zertifikat (g-tls-error-quark, 2) [goamailclient.c:318, mail_client_check_connect_cb()]
(gnome-control-center:12478): GoaBackend-DEBUG: < * OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
(gnome-control-center:12478): GoaBackend-DEBUG: > A001 LOGIN "********************" "********************"
(gnome-control-center:12478): GoaBackend-DEBUG: < A001 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS MULTIAPPEND UNSELECT IDLE CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS QUOTA] Logged in
15:48:37.976:[12478]:[WARNING]: g_socket_client_connect_to_host() failed: Nicht akzeptables TLS-Zertifikat (g-tls-error-quark, 2) [goamailclient.c:318, mail_client_check_connect_cb()]
(gnome-control-center:12478): GoaBackend-DEBUG: < 220-ocshared-de15.owncube.com ESMTP Exim 4.80.1 #2 Fri, 14 Jun 2013 15:48:44 +0200 
(gnome-control-center:12478): GoaBackend-DEBUG: > EHLO bmind.de

(gnome-control-center:12478): GoaBackend-DEBUG: < 220-We do not authorize the use of this system to transport unsolicited, 
15:48:44.659:[12478]:[WARNING]: goa_mail_auth_run() failed: Unexpected response `220-We do not authorize the use of this system to transport unsolicited, ' while doing PLAIN authentication (goa-error-quark, 0) [goamailclient.c:156, mail_client_check_auth_run_cb()]
Comment 3 Debarshi Ray 2013-06-14 14:02:29 UTC
Thanks a lot for this. I will look into it.
Comment 4 Debarshi Ray 2013-06-18 15:28:41 UTC
Created attachment 247171 [details] [review]
smtp-auth-plain: Handle multiline SMTP greetings
Comment 5 Debarshi Ray 2013-06-19 11:33:19 UTC
Comment on attachment 247171 [details] [review]
smtp-auth-plain: Handle multiline SMTP greetings

Patch works fine for me. Please let us know if you encounter further issues.
Comment 6 Debarshi Ray 2013-06-19 11:34:21 UTC
I would really appreciate if you continue to keep the test account alive, but you might want to change the credentials to avoid spammers from abusing it.

Since you have a slightly unusual SMTP greeting, it would be useful for regression testing. Thanks!
Comment 7 Ruben Grimm 2013-06-19 12:20:51 UTC
But you still need the new credentials for testing, right?
Comment 8 Debarshi Ray 2013-06-19 12:33:49 UTC
You can email it to rishi.is@lostca.se