Re: Difference in generated primary email between primary domain and other domains

hede <[email protected]>
Newsgroups gmane.comp.kde.devel.kroupware
Organization der-he.de
Message-ID <20200728103216.00fdd1cb__1653.49661126442$1595925228$gmane$org@hpusdt4.der-he.de>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.