OK, here's an update on what I have done and the problem I am now receiving.
I have aliases2ldap set up to run on my primary host, using the suggestions
Sandy provided for using the results of domlist.exe to automatically loop
through all the domains on the server. The domlist results file is copied
to a web server so that the backup can use the same list.
I then set up ldap2aliases on the backup to wget the domlist and loop
through all the domains and get the aliases entered.
Here are some problems I encountered during the setup:
1) of course, this was the DN syntax error, as I don't know LDAP, and didn't
know the proper format for the DN.
2) All users (including root, if you want the backup mailer to spool the
messages for root) must have the "Hide from information services" UNCHECKED.
That's pretty obvious, but it took me a long time to do it manually for all
users on the box.
3) The username and password for the LDAP Administrator must be the same for
all domains.
4) Routing the email: this was a big problem for me to figure out, but I
did figure it out.
a)On the primary server, for each domain, I added a host alias of
dlv.example.com, where example.com is the actual host name for the domain.
Note that the actual host names stayed the same, and they are the same on
the backup server as well.
b)I added an A record for dlv to each domain's DNS pointing to the
Primary server's IP address.
c)Each alias on the backup server forwards to [EMAIL PROTECTED]
With that it worked splendiferously, except for the errors below:
The aliases2ldap script will process the first 31 domains just fine, but
when it gets to #32 it chokes. The output of the script when it works looks
like this:
-------------------
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.
Local IMail virtual host: keelfinancial.com
LDAP administrator DN: cn=root,o=example.com
LDAP administrator password: *******
IMail virtual host key:
SOFTWARE\Ipswitch\IMail\Domains\keelfinancial.com\users\_aliases
---Export Started---
---Begin Aliases---
postmaster: [EMAIL PROTECTED]
abuse: [EMAIL PROTECTED]
---End Aliases---
---Export Finished---
--------------------
When it gets to number 32 it stops at the "---Export Started---" line and I
get this error:
M:\Imail\ScheduledTasks\aliases2ldap.vbs(74, 1) (null): A device attached to
the system is not functioning.
This error repeats for each of the remaining domains (~60 total). Sandy,
any suggestions?
The batch file I use to run the thing is pasted below, but it is pretty much
what you said:
--Batch File---
@echo off
M:
cd \imail\scheduledtasks
del /q domlist_*.txt
domlist -list > domlist_step1.txt
find "Domain:" domlist_step1.txt> domlist_step2.txt
for /f "tokens=2 skip=2" %%i in (domlist_step2.txt) do @echo
%%i>>domlist_final.txt
for /f %%i in (domlist_final.txt) do cscript aliases2ldap.vbs -lv %%i -d
cn=root,o=%%i -w ******
net use w: \\wh3\websites
copy domlist_final.txt W:\Wilcox\taisweb\downloads
net use w: /delete
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/