To create a new-user greeting use the command line:
Where Message must contain a header (with at least a subject line), followed by $$, then the message body. The $ represents a new line.
For example, to enable this parameter, you can set the following configuration variables:
configutil -o gen.newuserforms -v ’Subject: Welcome!! $$ Sesta.com welcomes you to the premier internet experience in Dafandzadgad!
Depending on the shell that you are using, it might be necessary to append a special character before $ to escape the special meaning of $. ($ is often the escape character for the shell.)
Whenever you create a new hosted domain, it is a good idea to create per-domain greeting messages for your supported languages. If this is not done, the generic greeting message set by gen.newuserforms will be sent.
You can set a greeting message for new users in each domain. The message can vary depending on the user’s, the domain’s, or the site’s preferred language. This is done by setting the mailDomainWelcomeMessage attribute in the desired LDAP domain entry. The attribute syntax is as follows:
mailDomainWelcomeMessage;lang-user_prefLang mailDomainWelcomeMessage;lang-domain_prefLang mailDomainWelcomeMessage;lang-gen.sitelanguage
The following example sets the domain welcome message for English:
mailDomainWelcomeMessage;lang-en: Subject: Welcome!! $$Welcome to the mail system.
The following example sets the domain welcome message for French:
mailDomainWelcomeMessage;lang-fr: Subject: Bienvenue!! $$Bienvenue a siroe.com!
Using the above examples, we assume the following:
the domain is siroe.com
a new user belongs to this domain
the user’s preferred language is French as specified by the LDAP attribute preferredlanguage
siroe.com has the above English and French welcome messages available
the site language is en as specified by gen.sitelanguage.
For a list of supported locales and their language value tag, see the (Directory Server Reference Manual).
When the user logs in for the first time, they will receive the French greeting. If the French welcome message isn’t available, they will get the English greeting.
Greeting messages can be set by both the LDAP attribute mailDomainWelcomeMessage and the configutil parameter gen.newuserforms. The order in which a message will get chosen, with the top one having the highest preference, is shown below:
mailDomainWelcomeMessage;lang-user_prefLang mailDomainWelcomeMessage;lang-domain_prefLang mailDomainWelcomeMessage;lang-gen.sitelanguage mailDomainWelcomeMessage gen.newuserforms;lang-"$user-prefLang" gen.newuserforms;lang-"$domain-prefLang" gen.newuserforms;lang-"$gen.sitelanguage" gen.newuserforms
The algorithm works as follows: if there are no domains (or there are, but there is no per domain welcome message provisioned for them), a welcome message is configured with the gen.newuserforms parameter, if specified. If a user has a preferred language (set with the preferredlanguage LDAP attribute) and gen.newuserforms;lang-user_prefLang is set, the user will receive that welcome message at the time of their first log in to the server. If gen.newuserforms;lang-gen.sitelanguage is set, and preferredlanguage is not set, but the site language is set (using gen.sitelanguage parameter), user will receive that message. If no language tag parameter is set and a untagged gen.newuserforms is set, then that message will be sent to the user. If none of the values are set, user will not receive any welcome message.
If the user is in a domain, then similar to the discussion above, the user might receive one of mailDomainWelcomeMessage;lang-xx, depending on which one is available in the list and in the order given.
Example: Domain is siroe.com. The domain preferred language is German (de). But the new user in this domain has preferred language of Turkish (tr). Site language is English. The following values are available (mailDomainWelcomeMessage are attributes of the domain siroe.com):
mailDomainWelcomeMessage;lang-fr mailDomainWelcomeMessage;lang-ja gen.newuserforms;lang-de gen.newuserforms;lang-en gen.newuserforms
According to the algorithm, the message sent to user will be gen.newuserforms;lang-de.