Koozali.org: home of the SME Server

use a domain between office365 and sme

Offline john56

  • ***
  • 143
  • +0/-0
use a domain between office365 and sme
« on: November 17, 2018, 02:18:24 PM »
I've a domain "kerplouz.com". I use it with office365 for my school.

Is there a way to configure sme  with it to have adresses email like "prenom.nom@kerplouz.com", not to use it with sme but to have thoses adresses emails into the sme's LDAP in order to use it with a lot of applications.
Then i wiil use those adresses created by sme with lazy admin tools in order to export them to create office365's adresses (actually it's impossible to use ldap with office365  :-()

I do not know if I'm clear ...

Offline stefangk

  • 20
  • +0/-0
Re: use a domain between office365 and sme
« Reply #1 on: November 18, 2018, 08:56:18 AM »
I've a domain "kerplouz.com". I use it with office365 for my school.

Is there a way to configure sme  with it to have adresses email like "prenom.nom@kerplouz.com", not to use it with sme but to have thoses adresses emails into the sme's LDAP in order to use it with a lot of applications.
Then i wiil use those adresses created by sme with lazy admin tools in order to export them to create office365's adresses (actually it's impossible to use ldap with office365  :-()

I do not know if I'm clear ...

If you create a user in SME with Firstname Lastname, than it will automatically create e-mail address Firstname.Lastname@kerplouz.com. These user accounts will be also presented in LDAP for your needs.

Stefan
Stefan Krastanov

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #2 on: November 19, 2018, 08:42:47 AM »
In the ldap, the first email entry is login@kerplouz.com, not firstname.lastname@kerplouz.com, so my applications using ldap received only this one.
Question, is there a way to regenerate pseudonyms ?  i have only 10 of my 800 users ...

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #3 on: November 25, 2018, 03:29:53 PM »
no more idea ?

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #4 on: November 25, 2018, 08:32:52 PM »
john56
Quote
Question, is there a way to regenerate pseudonyms ?  i have only 10 of my 800 users ...

Have you tried doing
signal-event post-upgrade
signal-event reboot

If there are entries for the pseudonyms still in the accounts database, then the above may not recreate the pseudonyms, you may have to delete the accounts database entries first.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #5 on: November 25, 2018, 08:44:27 PM »
I've deleted them in the panel.

After a signal-event post-upgrade
signal-event reboot

my panel is still empty.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #6 on: November 25, 2018, 09:17:29 PM »
john56

Did you check the accounts database ?
db accounts show |more

to see if the pseudonyms names are still listed
eg
first_last
first.last
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #7 on: November 25, 2018, 09:30:18 PM »
no more pseudonym i believe. Only for admin, abuse ...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #8 on: November 25, 2018, 09:37:22 PM »
john56

What does "I believe" mean ?
Are they there or not ?
Did you scroll through the database listing ie using Enter key or space bar right until the end & review the actual entries for existing users ?
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #9 on: November 25, 2018, 09:50:39 PM »
yes i have seen it in /home/e-smith/db/accounts.


Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #10 on: November 26, 2018, 02:01:23 AM »
john56

Quote
i have seen it in /home/e-smith/db/accounts.

If you still see pseudonyms in the accounts database that appear like the following
(for users like first last):
first_last
first.last
Then you need to delete all those entries.
Yes 790 of them, so maybe you need to write a script to do so.
Once deleted you can run the post upgrade & reboot events, which should recreate all the pseudonym variants.
If
first_last
first.last
are definitely not in the accounts database, then something else is wrong & I do not know what.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #11 on: November 26, 2018, 07:11:50 AM »
Hi, there is no more pseudonym like
first_last
first.last

run the post upgrade & reboot events doesn't regenerate pseudonyms.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #12 on: November 26, 2018, 03:36:19 PM »
john56

Sorry the method suggested does not work (as you discovered).
The user (account) needs to be deleted & recreated, which will then create all the pseudonyms.
Deleting the user account will delete the users home & Maildir folders (& all email), which is probably not desired.

Instead you could use the Lazy Admin Tools contrib
https://wiki.contribs.org/Lazy_Admin_Tools
in particular
https://wiki.contribs.org/Lat-pseudonyms

You could create pseudonyms in a batch process from an input file.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #13 on: November 26, 2018, 06:41:12 PM »
Thanks for your help Janet.
I have use lat-user to add a user today, no pseudonym have been added ...

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: use a domain between office365 and sme
« Reply #14 on: November 26, 2018, 09:31:11 PM »
john56

You have to use Lat-pseudonyms, see link at end of my prevoous post !
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline john56

  • ***
  • 143
  • +0/-0
Re: use a domain between office365 and sme
« Reply #15 on: November 26, 2018, 09:46:22 PM »
Yes of course but it's a bit boring to do like that. I thought it was easier to do it.