Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: Peasant on August 06, 2014, 11:39:41 AM

Title: Changing default pseudonyms
Post by: Peasant on August 06, 2014, 11:39:41 AM
Is there a simple way to change or add to the default pseudonyms that are created when a new user is added please? I've a company who's email addresses are all of the format firstnamelastname@mycompany.local and would like to add this format if possible.

Thanks in anticipation.
Title: Re: Changing default pseudonyms
Post by: mmccarn on August 06, 2014, 02:21:43 PM
You might be able to customize the makePseudonyms function in /etc/e-smith/events/actions/update-user-pseudonyms, plus any changes in the main body of the program if you want to avoid creation of two pseudonyms for every user.

I don't think there's any official way to modify this file, so you'll be moving "off the reservation": your changes will evaporate with each update to e-smith-email (e-smith-email-5.2.0-25.el5.sme.noarch on my SME 8.1 server)


[edit]
The smallest change you could make would be to replace the underbar_pseudonym with your desired value in line 59:

Current line 59:
Code: [Select]
$underbar_pseudonym =~ s/\./_/g;    # Change dots to underbars
Possible alternative:
Code: [Select]
$underbar_pseudonym =~ s/\.//g;    # Change dots to nothing
Title: Re: Changing default pseudonyms
Post by: Peasant on August 06, 2014, 03:20:41 PM
OK, thanks. It's not major, as there are only half a dozen or so users to be set up.
Title: Re: Changing default pseudonyms
Post by: janet on August 07, 2014, 02:35:38 AM
Peasant

For 6 users it would have been quicker to add the pseudonyms manually than the time it took to write this post.
After all that's what the pseudonyms panel is for.
Remember you can also use domain style pseudonyms too
eg
name@domain1.com = user
Title: Re: Changing default pseudonyms
Post by: Peasant on August 07, 2014, 09:20:57 AM
Peasant

For 6 users it would have been quicker to add the pseudonyms manually than the time it took to write this post.
After all that's what the pseudonyms panel is for.

That's fair enough. It was as much curiosity as anything else. Given that the system automagically creates some pseudonyms I just wondered if these were easily configurable or not :-)
Title: Re: Changing default pseudonyms
Post by: mmccarn on August 07, 2014, 12:52:38 PM
...I just wondered if these were easily configurable or not :-)
Same here - I intermittently wish I could disable or change the default pseudonyms (but not strongly enough to create - and follow up on - a New Feature Request).
Title: Re: Changing default pseudonyms
Post by: janet on August 07, 2014, 03:18:25 PM
mmccarn

Quote
I intermittently wish I could disable or change the default pseudonyms (but not strongly enough to create - and follow up on - a New Feature Request).

IIRC there was something in these forums a long time ago, maybe Charlie Brady answered it.
It was not that simple to fix & maybe not that complicated either, I cannot exactly remember, maybe some custom templates or changing the skel files , a search would be needed to retrieve this info.