Difference in generated primary email between primary domain and other domains

hede kolab983 at der-he.de
Tue Jul 28 10:32:16 CEST 2020


Hi Tom,

On Mon, 27 Jul 2020 18:08:48 +0200 Tom Reijnders <reijnders at tor.nl> 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


More information about the users mailing list