Mail and auth ID lower case surnames - auth ok, mail not

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

lonnieborntreger

Mail and auth ID lower case surnames - auth ok, mail not

Postby lonnieborntreger » Tue Jul 31, 2007 7:59 am

I looked in the man pages and saw the following "keys" available for the name part:

Code: Select all

G       The full given name in the original case as supplied.
I       The full initials in the original case as supplied.
S       The full surname in the original case as supplied.
C       The full common name in the original case as supplied.
g       The first character only of the given name in lower case.
i       The first character only of the initials in lower case.
s       The first character only of the surname in lower case.
c       The first character only of the common name in lower case.
f       The full given name (first name) in lower case.
l       The full surname (last name) in lower case.


So, based on other posts that I saw, I did the following in an attempt to set the rules to be the firstinitial (lowercase) followed by lastname (lowercase) like jblow for Joe Blow:

Code: Select all

-> sxconfig --remove -t general.usrl_authid_rule
-> sxconfig --set -t general.usrl_authid_rule='gl@'
-> sxconfig --get -t general.usrl_authid_rule
general.usrl_authid_rule=gl@

-> ommodiam -N '"C" <gl>' -s 1
-> omshowiam -s all -f
1    domain.com    "C" <gl>


It all looks like it should work. Here's what happens. If I add a user, Joe Blow, in this example, the auth id follows the rule properly and gets set to "jblow", but the mail gets set to:

Code: Select all

"Joe Blow" <j@domain.com>


seems the "l" gets ignored in the mail setting, but used properly in the auth id setting. If I use pretty much any of the other "name part" keys, they work properly, except for "c" or "l".

Is this a bug???

Oh, I'm using 11.1

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Mon Jan 28, 2008 8:15 am

i ve got the same problem in version 11.3.... :roll:

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Mail and auth ID lower case surnames - auth ok, mail not

Postby les » Tue Jan 29, 2008 2:37 am

lonnieborntreger wrote:I looked in the man pages and saw the following "keys" available for the name part:

Code: Select all

G       The full given name in the original case as supplied.
I       The full initials in the original case as supplied.
S       The full surname in the original case as supplied.
C       The full common name in the original case as supplied.
g       The first character only of the given name in lower case.
i       The first character only of the initials in lower case.
s       The first character only of the surname in lower case.
c       The first character only of the common name in lower case.
f       The full given name (first name) in lower case.
l       The full surname (last name) in lower case.


So, based on other posts that I saw, I did the following in an attempt to set the rules to be the firstinitial (lowercase) followed by lastname (lowercase) like jblow for Joe Blow:

Code: Select all

-> sxconfig --remove -t general.usrl_authid_rule
-> sxconfig --set -t general.usrl_authid_rule='gl@'
-> sxconfig --get -t general.usrl_authid_rule
general.usrl_authid_rule=gl@

-> ommodiam -N '"C" <gl>' -s 1
-> omshowiam -s all -f
1    domain.com    "C" <gl>


It all looks like it should work. Here's what happens. If I add a user, Joe Blow, in this example, the auth id follows the rule properly and gets set to "jblow", but the mail gets set to:

Code: Select all

"Joe Blow" <j@domain.com>


seems the "l" gets ignored in the mail setting, but used properly in the auth id setting. If I use pretty much any of the other "name part" keys, they work properly, except for "c" or "l".

Is this a bug???

Oh, I'm using 11.1


mail address rules are different to authid rules.

From my old notes.....

sxconfig --set -t orniasys.name_part_2='"C" <gl>' -t orniasys.domain_part_2='mydomain.com.au'

check mail address rule

sxconfig --get -t "orniasys.all"

That should work for you.
Regards,

Les Stott

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Tue Jan 29, 2008 4:31 am

thx for your reply, but it doesnt work for me.

Code: Select all

sxconfig --get -t "orniasys.all"                   
orniasys.domain_part_1=domain.com
orniasys.name_part_1="C" <gS>
orniasys.domain_part_2=domain.com
orniasys.name_part_2="C" <gl>
orniasys.domain_part_3=
orniasys.name_part_3=
orniasys.domain_part_4=
orniasys.name_part_4=
orniasys.domain_part_5=
orniasys.name_part_5=

if i add a new user "John Doe", 2 email-addresses are generated:
1) John Doe <jDoe@domain.com>
2) John Doe <j@domain.com>



if i use the "l" in the authid_rule, it works fine:

Code: Select all

sxconfig --get -t general.usrl_authid_rule         
general.usrl_authid_rule=l@

if i add a new user "John Doe", the login name is set to "doe" automatically.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Tue Jan 29, 2008 8:43 am

p.richterich wrote:thx for your reply, but it doesnt work for me.

Code: Select all

sxconfig --get -t "orniasys.all"                   
orniasys.domain_part_1=domain.com
orniasys.name_part_1="C" <gS>
orniasys.domain_part_2=domain.com
orniasys.name_part_2="C" <gl>
orniasys.domain_part_3=
orniasys.name_part_3=
orniasys.domain_part_4=
orniasys.name_part_4=
orniasys.domain_part_5=
orniasys.name_part_5=

if i add a new user "John Doe", 2 email-addresses are generated:
1) John Doe <jDoe@domain.com>
2) John Doe <j@domain.com>



if i use the "l" in the authid_rule, it works fine:

Code: Select all

sxconfig --get -t general.usrl_authid_rule         
general.usrl_authid_rule=l@

if i add a new user "John Doe", the login name is set to "doe" automatically.


I'm confused about what you exactly want to achieve. Can you specify exactly waht you want to happen with email addresses and authid?

I usually prefer to set authid via /var/opt/scalix/XX/s/sys/general.cfg using....

USRL_AUTO_GEN_AUTHID=gl@

Ofcourse you can use any combination as suggested earlier in the post.

After making that change i believe its necessary to restart a scalix service, but i cannot remember which one off the top of my head. To confirm the change restart scalix.
Regards,

Les Stott

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Wed Jan 30, 2008 3:42 am

if i add a new user (John Doe), then the email-address should be automatically set to:
j.doe@mycompany.com

i tried the following setting, but i t doesnt work.

Code: Select all

sxconfig --set -t orniasys.name_part_1='"C" <g.l>' -t orniasys.domain_part_1='mycompany.com'

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Jan 30, 2008 5:40 am

p.richterich wrote:if i add a new user (John Doe), then the email-address should be automatically set to:
j.doe@mycompany.com

i tried the following setting, but i t doesnt work.

Code: Select all

sxconfig --set -t orniasys.name_part_1='"C" <g.l>' -t orniasys.domain_part_1='mycompany.com'


It appears that sxconfig is not the tool to use for internet address mappings. Use ommodiam instead.

See Florian's post here.....

viewtopic.php?t=690&highlight=sxconfig

Searching the forums first always helps ;)
Regards,

Les Stott

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Wed Jan 30, 2008 9:35 am

les wrote:It appears that sxconfig is not the tool to use for internet address mappings. Use ommodiam instead.

See Florian's post here.....

viewtopic.php?t=690&highlight=sxconfig

Code: Select all

ommodiam -s 1 -N '"C" <g.l>' -D 'mycompany.com'

didn t work either. Is anyone able to use the "l" parameter for generating email-addresses?
btw, the other tool 'omiam' (mentioned in Florians post and in the man-page of ommodiam) didn t exist anymore.

les wrote:Searching the forums first always helps ;)

well, in the wiki you ll find the command i used:
http://www.scalix.com/wiki/index.php?ti ... nvironment

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Jan 30, 2008 9:43 am

p.richterich wrote:

Code: Select all

ommodiam -s 1 -N '"C" <g.l>' -D 'mycompany.com'

didn t work either. Is anyone able to use the "l" parameter for generating email-addresses?
btw, the other tool 'omiam' (mentioned in Florians post and in the man-page of ommodiam) didn t exist anymore.


When you say it didn't work, what did actually happen? what format did it use when the address was created?

What do you have now in "sxconfig --get -t "orniasys.all" ?
Regards,

Les Stott

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Wed Jan 30, 2008 10:13 am

sry, the same as before - i didn t recognize any differences:
sxconfig --get -t "orniasys.all"
orniasys.domain_part_1=mycompany.com
orniasys.name_part_1="C" <g.l>
orniasys.domain_part_2=
orniasys.name_part_2=
orniasys.domain_part_3=
orniasys.name_part_3=
orniasys.domain_part_4=
orniasys.name_part_4=
orniasys.domain_part_5=
orniasys.name_part_5=


if i add a new user, called John Doe, he ll get the following email-address:
John Doe <j@mycompany.com>

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Wed Jan 30, 2008 10:41 am

p.richterich wrote:sry, the same as before - i didn t recognize any differences:
sxconfig --get -t "orniasys.all"
orniasys.domain_part_1=mycompany.com
orniasys.name_part_1="C" <g.l>
orniasys.domain_part_2=
orniasys.name_part_2=
orniasys.domain_part_3=
orniasys.name_part_3=
orniasys.domain_part_4=
orniasys.name_part_4=
orniasys.domain_part_5=
orniasys.name_part_5=


if i add a new user, called John Doe, he ll get the following email-address:
John Doe <j@mycompany.com>



Ok, replicated on my setup....

g.l doesn't work

g.S does however. So it seems that "l" is not usable.

Also i saw this in /var/opt/scalix/XX/s/logs/fatal

ERROR Administration(Scalix Admin C) Wed Jan 30 20:02:15 2008
[OM 7505] The specified tag name is unknown. Use --help option to get more info.

Pid of logging process: 19962
Current errno value: 2

It doesn't like the "l" for some reason.
Regards,

Les Stott

p.richterich
Posts: 28
Joined: Mon Jul 02, 2007 6:08 am
Location: Dueren, Germany
Contact:

Postby p.richterich » Thu Jan 31, 2008 4:08 am

well, will it be fixed in one of the next releases?

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Postby les » Thu Jan 31, 2008 4:20 am

p.richterich wrote:well, will it be fixed in one of the next releases?


I cannot say, don't work for Scalix. ;)

Suggest logging a bug over at http://bugzilla.scalix.com/
Regards,

Les Stott

thomas1001
Posts: 22
Joined: Tue Jan 08, 2008 11:51 am
Location: Germany / NRW

Postby thomas1001 » Tue Feb 05, 2008 11:48 am

Hi all,

i have run the following command:

Code: Select all

ommodiam -s 1 -N 'C <g.S>'

This work fine... In the Mailaddress Option is the value "Server Generated"....
But when somebody selects an other value and save the setting, the "Server Generated" value is not available anymore...

Is there a possibility to save and "lock" this value?


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 1 guest

cron