Sorry guys but that field has nothing in common with the default email address for the user account. Here you can put any email account you want. This field is “General”.
To set the default email address for an user, you must have something like an “Exchange connector”.
I used this feature when I have used AXIGEN as email server, with an additional module provided by AXIGEN (Axigen Active Directory Extension for Windows). After I have installed this module, I was able to set the default email address for the user in AD user account ( https://www.axigen.com/knowledgebase/Synchronizing-Axigen-with-an-Active-Directory_269.html ).
Just to document what I found, it is following this link. The ‘mail’ microsoft active directory field exists, maybe this can make some noise with sogo.
This field is used only for information.
This field does not affect the user account.
If I understand well, @asl want to set the default email address of the user through RSAT. This is possible only if you have an Exchange server in your domain, or with a “connector”, as I exemplified, to add special fields to be able to set the default email address for the user.
I have installed today the Exchange 2010 Management Tools.
The installation was well but when I run the tool, the message was that there is no Exchange server on my domain.
Then you can use AD as you would do in a Windows Domain. As far as I could test this works perfect from both sides. If you update the user in MS AD the change will be reflected on NS user and vice versa. The only thing I found, that if you use the field E-Mail: on AD general page (Default Mailaddress in Sogo 3.2 can't be set) then we have the side effect with sogo default mail address…
It is not my goal to set Sogo default mail address through RSAT! And there is no exchange server here! The point is, that sogo should not look at this field at all (so I can set it in AD for information purpose e.g. this is what many Admins do).
Strange, indeed!
I think that field should not have such effect.
Sorry for misunderstanding.
I didn’t say that you want to set Sogo default mail address through RSAT, I thought that you want to set the default mail address for the user through RSAT, when you create or modify a domain user properties. As I said, when I used AXIGEN, I used this feature. In this mode, you can set everything from a single place.
first I can tell you, that the filed name in LDAP Broswer is called Email. I can click on this field and a page with detail information is opened. But on that view the field is called mail only.
Next I changed lines 84 and 101 as requested to see if this will still block me to set my default email in sogo when LDAP field “mail” is set to same email I try to use as default in Sogo. Result:
I can set my email now.
Next I changed lines 84 and 101 back to original to see if the old effect is back again. Result:
Can not reproduce it any more - problem gone!? Hm, that makes me worrying a bit, this is now what I was hoping to see.
tested with a new user, but not reproducable anymore. Working! Maybe @flatspin can still reproduce it?
Did you see something in your code that was giving you a clue that what I had found is possible and reasonable?
nethserver-sogo is not my module, I’m just trying to give support if I can
If the bug is not reproducible, hard to solve it, maybe @flatspin could help when possible. If you are curious you could make a new VM with sogo installed and try to reproduce it.
SOGo is not bug free, or at least it is well knew like this.
Hi @all, just had some time to play again.
It seems that the only address which is not saved, is the address in the AD-filed.
i.e. a user user@domain.lan. In SOGo I can give an address whatever I want. Every address is saved, exept when I give this user the address user@domain2.loc in the AD-field and try to save this address in SOGo, it isn’t saved. Then it jumps back to user@domain.lan, where domain.lan is the NS7.
Hope this is understandable.
yes this is exactly as it was in my setup before. But now the problem is gone and I don’t know why. So you are the only one at the moment who can reproduce this bug.