[SOLVED] Difference in generated primary email between primary domain and other domains
Tom Reijnders <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kroupware |
|---|---|
| Message-ID | <69453bdd-fb43-8ff9-f0a4-e409a2578d22__28224.0772665077$1595964440$gmane$org@tor.nl> |
Thank you for this. Yes, this is what I was looking for. And yes, I've adapted it to my taste, and works perfectly. I still do not quite understand why in the default setup, there is a difference between the primary domain and the rest, but that's a totally different subject. Cheers, Tom Op 28-7-2020 om 10:32 schreef hede: > Hi Tom, > > On Mon, 27 Jul 2020 18:08:48 +0200 Tom Reijnders <[email protected]> wrote: > >> [...] the genrated primary email is <first name>.<last >> name>@<domain>.nl, which I actually like. If I add a new user to any >> other domain (which is a domain on the same level, so it is not an alias >> domain), the primary email is <last name>@<domain>.nl (and one of the >> aliases is <first name>.<last name>@<domain>.nl). Is there any way to >> change that? > One of the places to change this behaviour is within /etc/kolab/kolab.conf > > I've attached mine below (which is quite the opposite of what you demand). Theres a default for kolab and a domain specific definition. Maybe you can adapt it to your needs. > > regards > hede > > #### > > [kolab] > primary_mail = %(givenname)s@%(domain)s > secondary_mail = { > 0: { > "{0}@{1}": "format('%(surname)s', '%(domain)s')" > }, > 1: { > "{0}.{1}@{2}": "format('%(givenname)s'[0:1].capitalize(), '%(surname)s', '%(domain)s')" > }, > 2: { > "{0}@{1}": "format('%(uid)s', '%(domain)s')" > }, > 3: { > "{0}@{1}": "format('%(givenname)s.%(surname)s', '%(domain)s')" > } > } > > [seconddomain.tld] > primary_mail = %(givenname)s@%(domain)s > _______________________________________________ > users mailing list > [email protected] > https://lists.kolab.org/mailman/listinfo/users -- -- Tom Reijnders TOR Informatica Chopinlaan 27 5242HM Rosmalen Tel: 073 5226191 Fax: 073 5226196