we have a VB script looking for domain folders in imail and listing them in
a .txt file (like dir > list.txt), just replacing _ per .
this script is executed twice per day (12 AM and 12 PM)
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(Server.MapPath("imail/"))
For Each objItem In objFolder.SubFolders
lines = lines & LCase(Replace(objItem.Name,"_",".")) &
vbCRlf
Next
set objFolder = Nothing
set objFSO = Nothing
set oFs = server.createobject("Scripting.FileSystemObject")
set oTextFile =
oFs.OpenTextFile(Server.MapPath("assp/localdomains.txt"),
2, True)
oTextFile.Write lines
oTextFile.Close
set oTextFile = nothing
set oFS = nothing
Maybe this code can help U, just modify paths and test it.
Atentament,
Pere Ginabreda
Servei Tecnic - Microtech Sistemas, S.L.
http://www.microtech.cat
[EMAIL PROTECTED]
-----Mensaje original-----
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] nombre de Nitesh (Ipswitch
Mailing List Member)
Enviado el: martes, 12 de septiembre de 2006 13:06
Para: [email protected]
Asunto: [IMail Forum] Adding new domains in Local Domains list
Hello,
I have a shared server with many of the resellers who themselves host
websites using a control panel. Hence it is tedious for us and the resellers
to add the new domains hosted in the server to be added in the Local domains
list. Is there any way wherein I can set ASSP to automatically add new mail
domains added in the Imail server to be added to the Local domains list in
ASSP?
Warm Regards,
Nitesh Shah
System Admin
Technical Desk
QualiSpace - A QuantumPages Enterprise
===========================
Tel India: +91 (22) 6792 - 1480
Tel US: +1 (614) 827 - 1224
Fax India: +91 (22) 2530 - 3166
URL: http://www.qualispace.com
===========================
For Any Technical Query Please Use: http://helpdesk.qualispace.com
QualiSpace Community Discussion forum: http://forum.qualispace.com
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/