You have to create user with principal domain and then go into Email Addresses menu and create real addresses related to this account and you can choose domains of email addresses.
There is a difference in users and emailaddresses. If your goal is to add a new maildomain then @federico.ballarini is correct.
If you need a 2nd userdomain (Samba4 AD account provider) then you can not accomplish this with a single server.
The only option for a 2nd userdomain is creating a subdomain of the existing Samba4 AD domain.
Thank you robb for you replay. I use LDAP as Account Provider.
For federico
It is working correctly but when the user log into second-domain/Webmail and want to send a message, it is not the alias that shows up in the field From:, it is the original user@first-domain.com.
The user have to Edit identities > + to add > enter Email > enter email to Reply-To, select Set default > Save.
It is kind of complicated for a ordinary user… he won’t undestand why and from where is the original user@first-domain.com is coming from… he will be suspicious… etc.
Is it possible for root to set the default email identity somewhere?
In roundcube you have to do it directly in the “user settings”: you cannot impersonate the user because normal user and impersonate user has got two different identify.
I suggest you, if you want to use roundcube, to set a temporarily password and then enter into user page and change identity. Then says to user to reset password.
WebTop is working fine with the identiy for user@second-domain.com, also in Thunderbird. The only problem is that there is no French Translation. When I have more time, I will translate it on transifex.com; I registered yesterday and I am waiting for an OK to join the team.
For now, I will follow your suggestion:
I suggest you, if you want to use roundcube, to set a temporarily password and then enter into user page and change identity. Then says to user to reset password.
I will open a new topic to hide “domain” indication.
If you want to continue use roundcube you can easily hide “domain” indication. If you want to do that, please open another topic.