Custom Mail Address Help

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

gordon
Posts: 21
Joined: Wed Jul 19, 2006 5:35 pm

Custom Mail Address Help

Postby gordon » Thu Jan 11, 2007 10:51 am

I am having some difficutly figuring out how to make a custom mail address and am looking for some examples on how to do this. I did see that there is some information in the wiki about this but it appears that the file that it references is not available.

http://www.scalix.com/wiki/index.php?ti ... example.29

I looked at the man page for omaddiam and some of the other utilites but I am not making the connection. Basically I want to change the default mail address rule to be the users lastname then the first letter of their first name, lastnameF@example.com.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Jan 12, 2007 8:32 am

Hi!

I tried to help you trying things at my end, I have reached to a state where if my name is Subir Sinha, I am able to create a user by email address Sinhas@scalixdomain

If this helps your requirement, I can tell you what I did or I can try further. :lol:

Thanks,
Subir

gordon
Posts: 21
Joined: Wed Jul 19, 2006 5:35 pm

Postby gordon » Fri Jan 12, 2007 9:55 am

That sounds like what I am looking for. Essentially when I create new users through SAC I would like their default mail address to be lastnameF@example.com.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Jan 12, 2007 10:04 am

Hi!

The only difference I was trying to bring to your notice was in my case the address that would be genereted would be Lastnamef@domain i.e. the initials for firstname is in small case while the first character for lastname is in upper case. While you want it like lastnameF@domain.

If this does not make any difference, I could have guided you with my steps.

Thanks,
Subir

gordon
Posts: 21
Joined: Wed Jul 19, 2006 5:35 pm

Postby gordon » Fri Jan 12, 2007 4:01 pm

Heh, actually I wanted it lastnamef@example.com but any example would be helpful. I can probably work it out given some hints.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jan 15, 2007 2:30 am

Hi Gordon,

Ok! Could you please reply with the result of the command:

omshowiam -s all -f


Thanks,
Subir
Last edited by ScalixSupport on Mon Jan 15, 2007 7:15 am, edited 1 time in total.

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Mon Jan 15, 2007 5:52 am

I thought there was an RFC about emails not being case sensetive?

William
Posts: 314
Joined: Fri Jun 02, 2006 8:28 am
Location: British Isles

Postby William » Mon Jan 15, 2007 5:53 am

I thought there was an RFC about email addresses not being handled in a case sensitive manner?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jan 15, 2007 9:05 am

Hi William,

Searching in Google, I found this:

http://email.about.com/od/emailbehindthescenes/f/email_case_sens.htm

Thanks,
Subir

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue Jan 16, 2007 4:07 am

Hi Gordon,

When I run the command "omshowiam -s all -f", I get a result as below:
[root@subir-rhel4 ~]# omshowiam -s all -f
1 subir-rhel4.scalix.co.in "C" <giS>

In order to, add new mail address format you require, run the command:

Code: Select all

omaddiam -N "Sg" -s 2 -D "subir-rhel4.scalix.co.in"

Now, when you run the command "omshowiam -s all -f", you should get a result like below:
[root@subir-rhel4 ~]# omshowiam -s all -f
1 subir-rhel4.scalix.co.in "C" <giS>
2 subir-rhel4.scalix.co.in Sg
[root@subir-rhel4 ~]#

Once, you get this result, login SAC, click on Settings tab -> Mail Server: <domain> -> under Mail Address Settings, you would see the second entry for Mail address rule to be "Server Generated". Click the up arrow for this entry to make this mail address rule as default. Save the changes by clicking on "Save Changes"

Now try creating a test user. Either using the command omaddu or from SAC. I tried creating a new user using omaddu:
[root@subir-rhel4 config]# omaddu -n "Test User/subir-rhel4"
omaddu : The user was added successfully

To see this users details, I used omshowu:
[root@subir-rhel4 config]# omshowu -n "Test User/subir-rhel4"
Authentication ID: Test.User@subir-rhel4.scalix.co.in
Globally Unique ID: 1830000040412854-211.301.861.291
User Name : Test User /CN=Test User
MailNode : subir-rhel4
Internet Address : Usert@subir-rhel4.scalix.co.in="Test User" <tUser@subir-rhel4.scalix.co.in>
System Login : 60539
Password : unset
Admin Capabilities : NO
Mailbox Admin Capabilities : NO
Language : C
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
Recovery Folder visible : NO
User Class : Full
SIS URL : sxidx://subir-rhel4.scalix.co.in/083000 ... 01.861.291
[root@subir-rhel4 config]#


Thanks,
Subir

gordon
Posts: 21
Joined: Wed Jul 19, 2006 5:35 pm

Postby gordon » Tue Jan 16, 2007 1:24 pm

Thanks Subir, that was very helpful. I was able to create the new mail address but still have a couple of questions. The first is that I would like the email address to be all lower case, lastnamef@example.com. I do not see a way to do this. Ideally I would like this mail address to show in the Mail Address Rule dropdown box. Where are these templates located? I also removed the default Mail Address rule and replaced it with my System Generated one. When I make a new user their email address shows correctly (with the exception of the capitalization) but there is nothing showing in the Display Name field. When I send an email with this account the recipient does see the proper display name in the from field. Will there be any consequences with removing the default Mail Address rule? One last issue is with the Authentication ID. How would I get these to match my new mail address rule, lastnamef? Thanks for your patience.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Wed Jan 17, 2007 5:42 am

Hi Gordon,

You are always welcome! :)

I would like the email address to be all lower case, lastnamef@example.com. I do
not see a way to do this. Ideally I would like this mail address to show in the Mail
Address Rule dropdown box. Where are these templates located?


The mail address generation rule are X.400 standard based. As far as I know, the
attributes that are used by Scalix do not provide a way to make them all small case, if
you have some ready sugessions mentioned in flast.example.29 do point to me, we can
try further. For now lets stick to, Lastnamef@domain.

I personally feel, until this is the only mail address generation rule, it hardly makes a
difference whether the rule is in the drop-down list or not. I checked my resources and
could not find a way to add this rule to the drop down. I think, this change needs to be
done in the source code itself.

I also removed the default Mail Address rule and replaced it with my System
Generated one. When I make a new user their email address shows correctly (with the
exception of the capitalization) but there is nothing showing in the Display Name field.
When I send an email with this account the recipient does see the proper display name
in the from field. Will there be any consequences with removing the default Mail Address
rule?


That does not make a difference until there is at least one mail address creation rule
before you try to add user(s). So now you have a rule (Server Generated one), no
worries at all. The disply name could be edited in SAC.

One last issue is with the Authentication ID. How would I get these to match my
new mail address rule, lastnamef?


The Authentication ID generated for each user is of the format you have selected in
SAC, under Settings tab -> Mail Server: <domain> -> under User Name Settings, you
would see the entry for Authentication ID rule to be "First.Last", you can manually modify
the Authentication ID, using the command:

Code: Select all

ommodu -n "<username>/<mailnode>" --authid <authid>

When you type the custom authentication id in the command above, make it similar to the
mail address.

Thanks,
Subir

gordon
Posts: 21
Joined: Wed Jul 19, 2006 5:35 pm

Postby gordon » Wed Jan 17, 2007 9:51 am

Is there not a way to set the AutID system wide to be Lastnamef so that when I create a new user through SAC it will have the requested format? I understand that if I use omaddu to create a user then I can specify their AuthID.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jan 18, 2007 2:56 am

Hi Gordon,

I am not aware of how to make authid pick the server generated mail address rule.

Thanks,
Subir

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Fri Mar 30, 2007 4:11 am

Hi Gordon!

So here is how you can every new user creation to pick the rule "Lastnamef", remember
this would be for new users and not the existing ones.

To see the current rule for AuthID generation use the command:

Code: Select all

sxconfig --get -t general.usrl_authid_rule


To reset that you need to remove the current one and add a new rule, here we go,
remove the current rule using the commad:

Code: Select all

sxconfig --remove -t general.usrl_authid_rule

Add the new rule using the command:

Code: Select all

sxconfig --set -t general.usrl_authid_rule='Sg@'

I hope this helps you, I know its been a long time since we last interacted on this issue. :oops:

Thanks,
Subir


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 12 guests

cron