Page 1 of 1

underscore alias for PDL

Posted: Tue Nov 07, 2006 1:38 pm
by milanm
Hello all,

We have a pdl called "support@ourCompany.com". We'd like to create an alias for this one called "client1_support@ourCompany.com". The idea was that now the outside world would see two addresses, but they'd deliver to the same underlying pdl ("support").


I have tried to do this via ommodpdl utility, but I ran into some problems:


Attempt 1:
----------
ommodpdl -o "support" -a "client1_support@ourCompany.com"

ommodpdl : [OM 8013] The name/mailnode contains invalid characters


Attempt 2 (after going through forums):
---------------------------------------
ommodpdl -o "support" -a "IA=client1_support@ourCompany.com"

ommodpdl : [OM 30001] Invalid rule or insufficient data to generate the Common name or Surname.


Attempt 3:
----------
ommodpdl -o "support" -a "/IA=client1_support@ourCompany.com"

ommodpdl : [OM 30001] Invalid rule or insufficient data to generate the Common name or Surname.


Attempt 4 (after reading on omattribs):
---------------------------------------
ommodpdl -o "support" -a "IA-FORMAL=client1_support@ourCompany.com"

ommodpdl : [OM 4634] An attribute tag specified in the name/address is unknown or not allowed.


Attempt 5:
----------
ommodpdl -o "support" -a "/IA-FORMAL=client1_support@ourCompany.com"

ommodpdl : [OM 4634] An attribute tag specified in the name/address is unknown or not allowed.

(Hm... could've swore I saw "IA-FORMAL" attribute in "man omattribs")


Attempt 6:
----------
ommodpdl -o "support" -a "INTERNET-ADDR=client1_support@ourCompany.com"

ommodpdl : [OM 30001] Invalid rule or insufficient data to generate the Common name or Surname.


Attempt 7:
----------
ommodpdl -o "support" -a "/INTERNET-ADDR=client1_support@ourCompany.com"

ommodpdl : [OM 30001] Invalid rule or insufficient data to generate the Common name or Surname.



Any help appreciated.

Anyone?

Posted: Tue Nov 14, 2006 7:32 pm
by milanm
Bump.

I am betting that this is something easy, if you know what you're doing.

Posted: Tue Nov 14, 2006 7:48 pm
by florian
Well, the easiest thing to do is to use the Admin Console as you can then simply set SMTP aliases from the Web UI.

The main point if you want to do it using the command line is not to use the -a option as this does not introcuce an SMTP alias, but rather an X.400 alias. Their use is not recommended at all for current Scalix versions.

What you need is:

Code: Select all

[root@sting ~]# omaddpdl -l "mypdl/us,adv"
The public distribution list was added successfully
[root@sting ~]# omsearch -e S=mypdl
S=mypdl/OU1=us/OU2=adv/CN=mypdl/ENTRY-TYPE=4/DL-POLICY=0/INTERNET-ADDR=mypdl@sting.scalix.local
[root@sting ~]# ommodpdl -o mypdl/us,adv -l mypdl/us,adv/IA=mypdl@sting.scalix.local=my_alias@sting.scalix.local
The public distribution list was modified successfully
[root@sting ~]# omsearch -e S=mypdlS=mypdl/OU1=us/OU2=adv/CN=mypdl/ENTRY-TYPE=4/DL-POLICY=0/INTERNET-ADDR=mypdl@sting.scalix.local=my_alias@sting.scalix.local



Guess you got the point?

Cheers,
Florian.

Cool beans

Posted: Wed Nov 15, 2006 1:28 pm
by milanm
Beautiful! Worked off the bat.

I felt a bit bad about not figuring this out, so I went to re-read man page of ommodpdl. I still think there would've been no chance in hell to figure out that one should _not_ use the -a switch (especially if it says "alias" in the man page ;) ).

At any rate, I hope that people who are looking for "underscore" and pdl in the future will be able to find this thread.