GNOME Bugzilla – Bug 273627
No way to configure mailbox != username
Last modified: 2008-07-07 11:04:46 UTC
Our exchange servers are using DOMAIN\username for authentication, but the
mailbox path is https://server/exchange/firstname.lastname. There is no
way to configure the mailbox in the account setup.
This is a regression from 2.0.x where there used to be a separate field for
I also tried ximian-connector-setup-2.2 but it failed to authenticate.
Providing the same values for x-c-s-2.0 proceeds further (but for
probably unrelated reasons the mailbox fails to open still.)
I applied this patch and tried again.
Migration from functional 2.0 setup didn't work, the mailbox failed to
open. Removed the existing account then.
Running ximian-connector-setup-2.2 and including the mailbox name in
the OWA URL works better, it can now correctly detect all the
information (like 2.0 used to.)
However the mailbox still can not be opened. Checking the account
information in evolution prefs I see that OWA URL is mysteriously
empty. The authentication method is also 'secure password'
After (again) entering the OWA URL and changing to 'plaintext
password' I am now able to read my mail again. Yay!
Please try re-creating the account using account setup.
Select authentication type as plaintext password, while you
create the account.
Enter owa url with the mailbox name in it.
just some modification to my comment..
Please try re-creating the account using account setup.
Enter owa url with the mailbox name in it.
Once your create the account, set the auth type to "plaintext"
and try it?
Had to hit 'Authenticate' twice to get asked for password,
evolution-alarm-notify crashed once the account was created. But
after changing the authentication method to 'Plaintext' mail works.
Uhh, scary, now everything else seems to be working as well. I think
there's something fishy going on with x-c-s.
*** This bug has been marked as a duplicate of 273722 ***
by mistake marked as duplicate..
*** bug 269942 has been marked as a duplicate of this bug. ***
I also need a way to specify the mailbox. We use DOMAIN\user for
authentication but the mailbox is firstname.lastname
Previous version of Evolution/Connector allowed this specificity.
Curretnly using the following packages from Fedora Core 4 test 1:
This should work in 2.2.x
If it is supposed to work, then how do I specify the mailbox name? I
upgraded to package evolution-126.96.36.199 and still see no place to
supply that information.
As far as I can tell, this does not work. I have tried using the
following as my OWA and the message back says that there is no such
mailbox on the server (using my domain name).
is the correct way to specify the URL.
Can you look at the gconf entry created
at /apps/evolution/mail/ and see the values of "owa_path" and
owa_path should be set to "/exchange" and
mailbox to "firstname.lastname".
Created attachment 45032 [details]
I have attached a screenshot. As you can see I do not have these
entries under apps->evolution->mail
Have I misunderstood something?
Well, you clicked on evolution and not on "mail". When you click on
"mail" [ this is present under "evolution" ], you will see on the
right hand side an attribute called "accounts". This will have an
entry for each account you have in evolution. [ Yeah the interface
isnt that great, you could actually see it in your file system under
$HOME/.gconf if you like ]. Find the exchange account entry that you
have configured and find the values of the attributes "owa_path" and
Noticed that owa_path was set as "exchange" and "/exchange".
Not sure if that was causing any problem.
Now fixed that and committed the fix to cvs head and gnome-2-10 branches.
In HOME/.gconf/apps/evolution/mail I did a 'cat %gconf.xml |grep
mailbox' and the results returned nothing. Also no output when grep
Authentication itself is failing for you, during account creation?
Or you are able to create the account and while trying to access
it is failing?
You should use "DOMAIN\user" for user name and
http://exchangeserver.fqdn.com/exchange/firstname.lastname for OWA url.
If account creation is failing, get E2K_DEBUG traces for evolution,
when you try to create the account.
(Run evolution as $E2K_DEBUG=4 <your_prefix>/bin/evolution-2.2 )
*** bug 274168 has been marked as a duplicate of this bug. ***
Are there plans to return the separate username and mailbox name
dialogs to the gui?
I ran evolution with E2K_DEBUG=4 and am attaching a log file. Before
I did that, I deleted my previous account using the "Preferences"
dialog. Afterward, I did an evolution --force-shutdown and then I
During the Setup Assistant, I was unable to proceed past the second
dialog box "Receiving Email". At this point the "Forward" button is
disabled because I have not yet authenticated. When I try to
authenticate, I get an error saying, "Could not authenticate to the
Exchagne server. Make sure that the username and password are
correct and try again" I assume this failure is because SPA is being
used when I need to use plain text. However, there is no option to
choose otherwise. To get past this, I have to set up a "dummy" email
account (using IMAP or POP) so that I can get into Evolution. Then I
add an account which behaves differently.
I am attaching a log of the console messages.
Created attachment 45043 [details]
I should also mention that the logfile contains only information up
until the point where I cancel because the forward button is disabled
in the initial attempt.
I'm confused. There is no file containing the word owa_path under
.gconfd, nor can I find it using a key search with Configuration Editor.
There is an owa_url though.
Using my browser, I can go to
and authenticate using
and it works fine.
Entering the same information into evolution, and watching the debug
messages using the E2K_DEBUG=4 option shows me that evolution is
getting a 404 error.
Created attachment 45064 [details]
my e2debug output - seems to be working at least on the exchange side now
my e2debug output - seems to be working at least on the exchange side now
bryan.christ: IMAP works for me.
I had to make sure the Alias section for my account was correct. I
changed it from first.last to username.
I have no problem with IMAP. I am trying to connect to my Exchange
server (this is done via the webdav protocol).
Sushma: I think there are several relevant questions. Is there a
possible workaround given my current situation (edit gconf data,
etc)? What future version will provide the necessary override fields
for mailbox and password mechanisms?
Try next version 2.2.2, of Evo and connector,
which will be available next week.
That should fix the problem I feel.
Re-create the account with
URL as http://exchangeserver.fqdn.com/exchange/firstname.lastname
and user name as "DOMAIN\user"
If you have problem with authenticate type, you can set it in account
editor once the account is created.
Okay. I will retest when 2.2.2 becomes available.
I have retested this bug with version 2.2.2. I followed the steps above to
recreate the problem, but the problem still exists. Here's what I did:
1. Proceed to recreate new account.
2. Set URL to http://exchangeserver.fqdn.com/exchange/firstname.lastname
3. Set username to DOMAIN\user
4. Could not authenticate therefore the "forward" button was not enabled
5. Changed type to IMAP in order to set up a "dummy" account and enable
6. When the Evolution main window appeared I went to properties and changed the
type to exchange, made sure the URL was correct, and set the authentication
method to "plain text"
7. Quit Evolution
8. Restarted backend (evolution --force-shutdown)
9. Received message "No mailbox for user NAME on server.fqdn.com" after
Can you try creating the account using tool ximian-connector-setup-2.2 ?
WFM - Excellent :)
One question - why does the wizard require a replica be entered, and not work
with the GCS in the second field?
It did not work for me. I got a message:
"Could not authenticate to the Exchange server. Make sure the username and
password are correct and try again."
I think this is because the default mechanism might be secure password and not
plain text authentication. Is my assumption correct? If so, there needs to be
a way to choose the authentication method.
Also, I noticed that after I received the error, my username gets truncated from
domain\user to simply user in the dialog box.
I had the same problem with a truncated username, but user@domain worked (which
is what I tend to use anyway).
For the OWA url I had to use server/exchange/first.last/, i.e. the same url that
OWA uses if you open the right-pane in a new frame.
Thanks for the tip, but that also did not help. It did resolve the truncation
problem, but I think the root cause, in my case, is that our server uses plain
text authentication and I am not able to choose that.
Bryan, can you export E2K_DEBUG=4 and run Evolution-2.2 from the same console and
attach the traces here when u try create account using Evolution (not x-c-s)?
Connector actually reads the server response and decides on plain text or secure
authentication. Need to see where it fails.
Okay. I am attaching the log.
Created attachment 45410 [details]
logfile with E2KDEBUG=4
Sushma: Has the logfile revealed anything for you?
I found a bug report at http://bugzilla.ximian.com/long_list.cgi?buglist=66926
which is sounds *very* similar. Initially, it is a discussion of evo 1.4 vs evo
2.0 but it becomes more relevant as you read down the page. Looks like there
was a patch applied to correct the problem in 2.0. It also looks like it was
*supposed* to be checked-in for 2.2. Maybe it didn't?
I hope to hear back from you, using the MS web interface is getting tiresome.
Yes, #66926 was about FBA not working .. This has been fixed and the fix is also
there in the 2.2 branch. From the traces, the login is failing for
authentication. Few places where you could look for are ..
1. Do you have openldap with the NTLM patch applied ?
2. If you have SSL enabled on your server, you will have to use a "https://" as
your OWA url. Are you sure that your server is not SSL enabled?
3. Also, could you let us know if you are able to create the account using x-c-s ?
[ Also, please reopen the bug once you attach some information. ]
1. How would I know of openldap has the NTLM patch applied? I am using the
version with Fedora Core 4 test 3.
2. I do not use https:// when accessing MS OWA.
3. I have been unsuccessfully in creating an account with x-c-s.
Fedora Core's evolution-connector package statically links to a version of
OpenLDAP with the NTLM patch applied (openldap-devel provides a
/usr/lib/evolution-openldap/ which we statically link the Connector against)
Bryan: what happens if you simply telnet into port 80 of the Exchange server and
type something like this:
GET /exchange HTTP/1.1
Host: name of exchange server
What's the response from the server (in particular, what are the
With ximian-connector-setup-2.2 I can setup the account and succesfully connect
The account setup in evolution still doesn't work.
I get no error message when presssing "Legitimation", but "Forward" stays disabled.
Created attachment 46536 [details]
evolution log file with E2K_DEBUG=4
last step was pressing Legitimation
I get no response from the server when I telnet in on port 80 and issue "GET
/exchange HTTP/1.1" (without the quotes obviously). I know the server is
listening because if I just do "GET" the response is:
HTTP/1.1 400 Bad Request
Date: Tue, 17 May 2005 19:10:38 GMT
<h1>Bad Request (Invalid Verb)</h1>Connection closed by foreign host.
I tried again with x-c-s but still was unable to create an account.
Brian, maybe you forgot the "Host: servername" line? HTTP/1.1 needs this.
if you have an ssl enabled server you can use:
$ openssl s_client -connect servername:443 -quiet
GET /exchange HTTP/1.1
Thanks for the tip. Here's the results from telneting to the server:
Connected to cceexc23.americas.cpqcorp.net (188.8.131.52).
Escape character is '^]'.
GET /exchange HTTP/1.1
HTTP/1.1 401 Unauthorized
WWW-Authenticate: Basic realm="cceexc23.americas.cpqcorp.net"
Date: Thu, 26 May 2005 15:50:46 GMT
<html><head><title>Error</title></head><body>Error: Access is Denied.</body></html>
Any progress on this?
Same problem here. FC4 x86_64, Evolution 2.2.3, connector 2.2.2. Fix badly needed.
It seems to me the problem could be resolved by using the old evo 1.4 style
configuration dialog which allows you to override the mailbox name. As it
stands, I can either supply domain\user and properly authenticate, but then get
a message "mo mailbox for USERNAME found on this server" (that was a
paraphrase). If I supply, the proper mailbox name (first.last) then I fail to
authenticate. I would think that http://server.fqdn.com/exchange/first.last in
combination with domain\username would work, but it doesn't. I have even gone
back and change auth type from SPA to plain-text but I still get the "no mailbox
for USERNAME..." message.
*Please help* Using RDP just to access Outlook and get my calendar is quite
cumbersome and tiersome.
Changed the state of bug as reporter has given reply to all queries
increasing the priority.
Any update on this?
I was finally able to get some level of connectivity using Evolution 2.5.92 and Connector 2.5.92 on Fedora Core 5 test 3. However, I was unable to create my account using the default "wizard". Instead, I had to use ximian-connector-setup-2.6. Otherwise, I ran into the same error.
for x-c-s, what is the format of the URL and user name you provided?
I cannot recall the exact text which i typed in for x-c-s. Is there anyway to retrive that string value?
I accidentally changed a setting in the Account Edtior->Receiving Email. In that dialog box I changed it from domain\login (using backslash) to domain/login (using forwardslash). To say the least, it ruined my configuration. Evolution kept trying to connect to a server that *was not* my OWA URL. Even when I changed it back to forwardslash it was still trying to connect to this other server. There is definitely a difference between x-c-s and "Receiving Email tab" configuration.
Fortunately for you, this meant that I had to delete my account and use x=c=s to setup my account again. Here are the is the format of the URL which I used in x-c-s (your answer for comment 58).
^^^ notice the forwardslash
I know that I have stated this before, by my NT login and Exchange Mailbox names are different. My exchange mailbox is firstname.lastname and my login is a different.
Thanks for the information.
The code handles both "/" and "\", anyway I will look into this.
Created attachment 62182 [details]
Log of exchange connector session, E2K_DEBUG=4
Ted Rodriguez-Bell evolution-exchange-storage session
I'm having the same problem as Brian. I created my account with ximian-connector-setup-2.6; this is FC5. My ID is trb, my mailbox is tedrb. The Exchange servers are exchange-server02 and 19; the OWA URL I entered was https://exchange-server19.mycompany.com; it bounces to exchange-server02.mycompany.corp and exchange-server19.mycompany.corp
I entered my ID and password four times: twice on startup and twice after I clicked on the Exchange mailbox.
https://exchange-server19.mycompany.com/tedrb works for you?
It does with Evolution 2.0.4 and 1.4. It does not with subsequent versions. This is a regression problem
The attachment I made in Comment 62 was using /tedrb.
If you try to create account using ximian-account-setup will it work?
sorry, I meant ximian-connector-setup tool.
No, I've been using ximian-connector-setup-2.6 and it doesn't work. That's what's in the attached error output from 28 March.
The initial setup works; connector-setup takes my password, talks to our Active Directory server, and finds my screen name and email ID. When I run evolution it prompts me for a password twice and then says that I must have entered the password or account name wrong. I didn't.
Is there any other information you need to help resolve this?
I have a test server where my windows logon id is "rsushma",
my mail ID is "firstname.lastname@example.org" and my mailbox name (alias)
and creating the account using Evolution account setup, it works fine
for me with owa url "https://test.com/exchange" and username "rsushma".
Anyone here has any idea, what I am missing and how can I setup an account
where my mailbox path is different than userid in Exchange server?
I know that in my case, exchange was accessed via http and not https. Also, my username is DOMAIN\USERNAME
Our Exchange setup uses https, not http. I can connect to OWS from a browser with https: and not http:. The browser method doesn't care if I say DOMAIN\username or just username; neither does connector-setup. Evolution doesn't care either; it fails both ways.
When I go in through the browser I get asked if I'm sure because the certificate has expired and because it points to Exchange-server instead of Exchange-server.mycompany.com. I also noticed I'm getting the message
** (evolution:18360): WARNING **: Unexpected kerberos error -1765328164
from Evolution. Could that be part of it?
I've left a level 4 trace of the exchange-connector output here; is there anything else I can do?
Thanks for the suggestions!
I have the same problem:
The url given by the menu in the OWA is:
but my login is different.
The authentication button in the setup works, but it tries to guess the folder and messes up giving me an authentication failure.
For quite some time, connector was working properly for me. As long as I used the "setup wizard" to configure my exchange server, everything worked fine. If I tried to change the exchange server settings in the "Receiving Mail" tab, the I would have authentication problems.
Today, our IT dept. moved my mailbox to a new exchange server. I grabbed the new fqdn from my outlook client which I'll call server_x.company.com. The full OWA path to my mailbox on this new server appears to be:
However, when I login in, I somehow get redirected to server_y. The peculiar thing is that I can login to http://server_y.company.com/exchange/firstname.lastname using my browser. However, if I do that, I get redirected to server_x.
As best I can guess, server_y must be some sort of authentication server and server_x is where my mailbox actually resides. When Connector trys to auth with server_x he gets redirected to server_y, but somehow manages to mangle my credentials in the process. My Windows login is domain\username and I noticed that Connector passes \username to server_y. I deduce this because I get prompted for a password for \username@server_y.company.com (notice that the domain is missing before the slash).
As addtl. information regarding comment #73, I should mention that I am using more recent versions of Evolution and Connector. My fc packages are:
What is your OWA_URL and username in the "Edit->Preferences->Receiving Mail" tab?
And can you get E2K_DEBUG trace for Evolution (during the authentication process)?
Veerapuram: I looked in the preferences and noticed that my username was not set to "domain\username" but instead was truncated to "username". I am certain that when I went through the account setup wizard I supplied "domain\username". Now that I have corrected it, I can no longer open the preferences dialog box. When I try, Evolution just freezes. I have even tried by starting Evolution with --offline but that still does not help. I have also tried restarting Evolution by first doing a --force-shutdown.
As for the debug, I just need to 'export E2K_DEBUG=[debug_level]' and then run Evo from the terminal right? If so, what debug level do you want me to supply?
E2K_DEBUG=4 should be okay. Also, what is your owa_url in the "Receiving Mail" tab?
Veerapuram: I will run the debug soon, but as I mentioned in comment #76, I can no longer go into preferences.
Created attachment 82252 [details]
logfile with E2K_DEBUG=4
Veerapuram: Comment #79 is the E2K_DEBUG you asked for.
(In reply to comment #79)
> Created an attachment (id=82252) 
> logfile with E2K_DEBUG=4
According to the log, it has authenticated successfully - can you get gdb traces when evolution freezes? (while accessing Edit->Preferences)
Just in case:
1) Find the pid of evolution that just froze
2) gdb -p <pid>
3) In the gdb prompt:
gdb> thread apply all bt
4) copy and past the traces to the bug.
Veerapuram: Somehow preferences didn't hang this time :/ My ows_url is:
Retested with Evolution 1.8.3 and problem still happens:
(packages feteched via yum on fc6)
typo in comment #83 Evolution = 2.8.3
Retested with evolution 2.10 and connector 2.10. The problem still exists.
Bumping version to a stable release.
Created attachment 112042 [details] [review]
proposed eds patch
This is necessary to be able to pass to the e2k_validate_user a mailbox name we want to use and not parse the mailbox name from the home_uri. (So in case you've the old eds and new evo, then you'll see the mailbox name will change back to the "default" after validate).
Created attachment 112044 [details] [review]
proposed evo patch
For exchange-operation plugin, to show and work with an UI entry.
Bharath: Can you look at it ?
Srini, Akhil is on leave. Would get it tested for this scenario once he's back and then proceed. Milan a week's wait on this one :) hope you don't mind
Can anyone try out this patch if they do have the scenario mentioned. I don't have a setup to test this. Patch looks good to me. But I would like someone to verify it out.
Very nice patch!! The patch seems to work fine with the current setup and should work fine in the setup where mailbox and username are different too. This patch can be committed to svn HEAD. I think we should request for a freeze break from the release team and get this patch in stable branch too once someone verifies as bharath has mentioned. But if no one is able to respond quick enough, we can go ahead and request for the freeze break. IMHO this is a blocker in certain setups.
Bharath, what do you feel?
Yup. If someone can just verify it out I'll be overjoyed. Commit to Trunk.
and to Stable if freeze break approved. Thanks.
eds part committed to trunk. Committed revision 8986.
evo part committed to trunk. Committed revision 35642.
hmm, did chen CC me because his browser plugin beeped when he wrote "freeze break"? :-)
This is a string break, an UI break, and the documentation has to be updated. Feel free to use the normal channels for a request, but do it earlier than on the friday evening before monday's tarballs due. ;-)
Andre, yeah :) Milan, please send a mail to the release team and CC'ing doc team requesting for a freeze break for committing to the stable branch.
e? I'm sorry for my ignorance, but what are those addresses? I like coding, the paper work is not my part at all.
Here is the link which explains it http://live.gnome.org/ReleasePlanning/RequestingFreezeBreaks :)
@chen: the link also lists the required teams. your list was not complete. ;-)
if you send an email to the r-t, it would be helpful to tell us whether the userdocs will be updated in the next days, and whether screenshots are affected or not. if you want to save some time (harhar), then please at least attach a screenshot here that shows the UI changes and link to it in your request.
updated the user guide with text and new screenshot
Actually having the user documentation patch against upstream SVN evolution.xml and the two new screenshots attached here would be very nice.
Patches have been committed to stable branch. The screen shot exchng-rec-mail.png is not updated since the MailBox field does not appear while editing an account. This should be fixed for HEAD.
Created attachment 113641 [details]
Updated screen shot .
*** Bug 523605 has been marked as a duplicate of this bug. ***
*** Bug 302255 has been marked as a duplicate of this bug. ***