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 664749 - Cannot send message "Service not connected"
Cannot send message "Service not connected"
Status: RESOLVED FIXED
Product: evolution-ews
Classification: Other
Component: Mail
3.3.x
Other Linux
: Normal normal
: ---
Assigned To: Evolution EWS maintainer(s)
Evolution EWS maintainer(s)
: 673528 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-11-24 17:52 UTC by Milan Crha
Modified: 2013-03-20 11:35 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
proposed ews patch (529 bytes, patch)
2012-02-09 10:26 UTC, Milan Crha
committed Details | Review
proposed ews patch (send-as-denied) (1.50 KB, patch)
2012-02-09 11:45 UTC, Milan Crha
none Details | Review
updated ews patch (send-as-denied) (3.43 KB, patch)
2012-02-09 12:55 UTC, Milan Crha
committed Details | Review

Description Milan Crha 2011-11-24 17:52:07 UTC
I tried to send a message in current git master, after 3.3.2 release, and I cannot, because I receive an error when I press Send (Ctrl+Enter):

>   An error occurred while sending. How do you want to proceed?
>
>   The reported error was "Service not connected".

That's new, isn't it?
Comment 1 Andreas Proschofsky 2012-01-20 14:34:09 UTC
Also can't send any mail with 3.3.4, don't know if this actually is the same bug (I'll open a new one if you prefer so). After some time trying I get a popup with:

"The reported error was "Could not connect to derstandard.at: NSPR error code -5961"."
Comment 2 Milan Crha 2012-01-25 16:05:08 UTC
Hmm, I just got similar issue with my MAPI account, which was caused by account editing, its transport URL was changed from mapi:// to smtp://, and the error message came from the smtp provider.

Can this be the same issue, thus it might be moved to Evolution itself?

Please check with:
   $ gconftool-2 --get /apps/evolution/mail/accounts | grep ews:// | \
   grep transport
Comment 3 Andreas Proschofsky 2012-01-25 23:03:07 UTC
Well I indeed had smtp:// listed in the accounts key (which means the setup is somehow broken, this account was newly added with 3.3.4). BUT: When manually changing to ews:// I now get the same error you initially reported:

The reported error was "Service not connected".

So not a very huge step forward ;)
Comment 4 Milan Crha 2012-01-30 11:19:40 UTC
Just for a record, I filled bug #668714 for the garbled protocol after account preferences editing.
Comment 5 Milan Crha 2012-02-09 10:26:09 UTC
Created attachment 207169 [details] [review]
proposed ews patch

for evolution-ews;

This made the "Service not connected" error go away for me, but I still cannot send messages, because I receive a different error, this time: "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account", which I think is something with my setup, thus I would like to ask you, Andreas, to try with this patch too. Thanks in advance.
Comment 6 Andreas Proschofsky 2012-02-09 11:07:18 UTC
Perfect, with that patch applied sending mails finally works :) Thanks a lot !
Comment 7 Milan Crha 2012-02-09 11:43:46 UTC
Do you know the server version you use ews against? I have Exchange 2007, and there it claims the other error I mentioned above.
Comment 8 Milan Crha 2012-02-09 11:45:35 UTC
Created attachment 207180 [details] [review]
proposed ews patch (send-as-denied)

for evolution-ews;

This is for my other issue, for the send-as-denied error. It's done as described here [1]. Maybe it's relevant only for exchange 2007 servers.

[1] http://social.technet.microsoft.com/Forums/da/exchangesvrdevelopment/thread/bf0e5ea1-7ec6-4386-9637-3f37f9d4a653
Comment 9 Andreas Proschofsky 2012-02-09 11:52:52 UTC
(In reply to comment #7)
> Do you know the server version you use ews against? I have Exchange 2007, and
> there it claims the other error I mentioned above.

Yep this is with Exchange 14.1.270.1 === Exchange 2010 SP1.
Comment 10 Milan Crha 2012-02-09 12:53:12 UTC
(In reply to comment #9)
> Yep this is with Exchange 14.1.270.1 === Exchange 2010 SP1.

Then it might be the 2007 thing, it seems.
Comment 11 Milan Crha 2012-02-09 12:55:11 UTC
Created attachment 207186 [details] [review]
updated ews patch (send-as-denied)

for evolution-ews;

As we spoke about this with David on IRC, this is updated patch for send-as-denied, which checks whether the From address matches the address for which the account was configured and claims if not. It removes the From header content and let's the exchange server fill it itself. I miss better error messages :)
Comment 12 David Woodhouse 2012-02-09 13:02:56 UTC
Looks good; thanks. I'd prefer to see that error message make it clearer that this is an *Exchange* bug, not a limitation in our EWS client implementation.

And if/when we get round to fixing the fact that Evolution forces us to do send and save as two *separate* operations, and prevents us from using the SendAndSaveCopy operation, we may have even more fun. But we'll deal with that when we come to it.

Would be useful if ema were to have similar behaviour... I think you told me it just strips the From address without the comparison?
Comment 13 Milan Crha 2012-02-09 13:09:06 UTC
(In reply to comment #12)
> Would be useful if ema were to have similar behaviour... I think you told me it
> just strips the From address without the comparison?

Yup, I'm going to commit similar checking on send in evolution-mapi too.
Comment 14 Milan Crha 2012-02-09 13:14:18 UTC
I changed the two errors to "Exchange server cannot..." and then:

Created commit 546b2d7 in ews master (3.3.90+)
Comment 15 Milan Crha 2012-02-09 13:23:35 UTC
(In reply to comment #13)
> Yup, I'm going to commit similar checking on send in evolution-mapi too.

Hrm, I do not have the email address available during message send in ema, the one to which was the account configured. Maybe I'll change it later. (Just for your information.)
Comment 16 Milan Crha 2012-07-25 15:07:23 UTC
*** Bug 673528 has been marked as a duplicate of this bug. ***