I have a working solution now.  Instead of one user with multiple mail
attributes, I went back to your original script and simply made the mail
attribute static for every alias.  I did have to add my port in as well
since I run Imail on a server with active directory and had to change
openLDAP.  I then configured my mail gateway to use mail as the unifying
attribute instead of uid.  This ensured that all my aliases could be
grouped.

If you know how to add duplicate mail attributes using VBS, I would like
to know.  I have only been able to accomplish this with perl and I'm not
sure if that is even proper.

Thanks!

Will



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Will
Sent: Thursday, November 16, 2006 10:51 AM
To: [email protected]
Subject: RE: Re[3]: [IMail Forum] LDAP content

I am attempting to modify your script to create multiple mail and cn
attributes, each with a different value, which is the alias.  However,
with VBS it replaces the value instead of adding a new one.  Do you know
how I can modify this to add multiple mail attributes?

In your script, I am attempting to change the following:

        Set oUser = oDomain.Create("inetOrgPerson", "uid=aliases")

        oUser.Put "uid", "aliases"
        oUser.Put "sn", "aliases"

        For i=0 To UBound(arrValueNames)
                sEMail = arrValueNames(i)
                If sEMail = "nobody" Then
                        StdOut("Skipping 'nobody'")
                Else

                        sDstEmail = sEMail & "@" & sAliasTargetDomain
                        oUser.Put "cn", sEMail
                        oUser.Put "mail", sDstEMail
                        oUser.SetInfo
                        StdOut(sEMail & ": " & sDstEMail)               
                End If
        Next

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Sanford
Whiteman
Sent: Wednesday, November 15, 2006 10:44 PM
To: Sanford Whiteman
Subject: Re[3]: [IMail Forum] LDAP content

> and the mailNickname attribute is a tiny part of that.

^H^H^H^H^H^proxyAddresses

--Sandy

------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.
e-mail: [EMAIL PROTECTED]
------------------------------------

To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/

Reply via email to