|
Hi Andrew
Here you go, Mike Delp (of this list) was
very helpful with this as well as Jason Bogart at Rodopi.
See Mike I remembered this time
Kevin Childers
Mail Administrator [EMAIL PROTECTED] The Carolina's Fastest Internet Service Provider www.NetQuick.net (910) 486-7845 Ext. 23 (888) 228-0312 >>
The original scripts we received were modified a little but I can repost the message that covers that. >> Please repost. Andrew P. Kaplan, CNE, MCSE+Internet, MCT, CCNA, CCDA CyberShore, Inc. -- Premium Internet Services -- http://www.cshore.com "Experience is a harsh teacher. It first gives you the test then the lesson." |
This event script file is for configuration of IMAIL 6.0
Edited and abridged from Text produced by Jason Bogart
<[EMAIL PROTECTED]><[EMAIL PROTECTED]>
at Rodopi by Mike Delp Database Computer Group, Inc. <[EMAIL PROTECTED]>
Customization from this text file is as follows
Variables used
rodopiftp username that rodopi ftps into the imail box
thepassword password for the ftp username
yourftpdomain.com name of the ftp server that is your imail box
yourdomain.com name of the mail domain used by imail
d:\imail location of the Imail program
First order of business is to do a search and replace through this document to make
the process easier
A. change the working directory of Imail from D:\IMAIL to your directory
B. Change the ftp username that you wll use from rodoftp to your choice
C. change the password and the ftp location below
1. change thepassword to your chioce of password for rodopiftp
2. change yourftpdomain.com to your ftp location on the Imail server
ftp://rodopiftp:[EMAIL PROTECTED] with your information
D. change the information to your mail domain below
yourdomain.com with your information
You can then save this file, and use copy and paste to insert the event script commands
Test Stage: This is so you know how the Event Scripts Operate
1.Save the following files to the root ftp location of the Imail server
2. http://www.rodopi.com/eventscripts/rodopi.cmd
3. http://www.rodopi.com/eventscripts/process.cmd
4. http://www.rodopi.com/eventscripts/sleep.exe
to access the correct location, do the following from WindowsNT Explorer
5. Run Rodopi.cmd ( Have it showing the Black screen on the desktop so you
can see what is happening )
- When this is frst run, rodopi.cmd creates a directory called \logdir
6. (on the right side window of the ftp root location ) Right-Mouse-Click | New | New
Text Document
7. Simply Name this file _insert_
- What happens is: the Rodopi.cmd file runs every 10 seconds
- Any file that starts with _insert_ _suspended_ _released_ _update_ or
_delete_ is actioned
- Get renamed to a .BAT file
- The file is executed
- The file is copied to the \logdir
- The file is deleted from this directory
- So If a file exists in the working directory, it is run through this
procedure
there should be a new file in the \logdir directory called _insert_.bat
Now that you can see this works and you know how this works.
Setup the FTP connection
On the server with IMAIL installed, You should also have an FTP server
First make sure you have the ftp user that has Read & Write access level to the
IMAIL Virtual Directory
Start the program: User Manager For Domains: START | Programs |
Administrative Tools | User Manager for Domains
Create a user called rodopiftp with password thepassword{you choose}| Add | Close
Start the program: Internet Service Manager: START | Programs | Windows NT
4.0 Option Pack | Microsoft Internet Information Server | Internet Service
Manager
Click onto the 'Default FTP Site' | Right Mouse Click | New | Virtual
Directory
Alias To Be Used... | IMAIL | <NEXT> | D:\IMAIL (Browse to get yours, if
different) | <NEXT> | Add: Allow Write Access | <FINISH>
To gain access to this directory remotely use this syntax
ftp://rodopiftp:[EMAIL PROTECTED]/imail
****** Important ************
You should be able to open internet explorer on the rodopi machine, and type in or
copy the above ftp line
and see the location. If you can't, then there is a security issue to be resolved
before moving on.
This is what you enter as the file URL for all your IMAIL scripts
Enter your Scripts into Rodopi
Start the program: RODOPI Administration Menu: START | Programs | Rodopi |
Rodopi Administration Menu
Click on Event Scripts: we have 5 event scripts to add
In Select script filter
Script type: File Script
Event Type: Inserted
Account type: Dial-in
Then Click on NEW File | Order Enter 10
ftp://rodopiftp:[EMAIL PROTECTED]/imail/_insert_email_ as the File URL
--
D:\IMAIL\adduser -u @New_UserName@ -h yourdomain.com -n "@New_RealName@" -p
@New_Password@
--
*****this is the original code
*****C:\IMAIL\adduser -u @New_PopName@ -h mail.yourhost.net -n "@New_RealName@" -p
@New_Password@
*****this is the original code
Save
Script type: File Script
Event Type: Deleted
Account type: Dial-in
Then Click on NEW File | Order Enter 40
ftp://rodopiftp:[EMAIL PROTECTED]/imail/_delete_email_ as the File URL
--
D:\IMAIL\adduser -k -u @Old_UserName@ -h yourdomain.com
--
Save
Script type: File Script
Event Type: Updated
Account type: Dial-in
Then Click on NEW File | Order Enter 30
ftp://rodopiftp:[EMAIL PROTECTED]/imail/_update_email_ as the File URL
--
D:\IMAIL\adduser -m @Old_UserName@ -p @New_Password@
--
Save
Script type: File Script
Event Type: Suspended
Account type: Dial-in
Then Click on NEW File | Order Enter 30
ftp://rodopiftp:[EMAIL PROTECTED]/imail/_suspended_email_ as the File URL
--
D:\IMAIL\adduser -m @Old_UserName@ -active
--
Save
Script type: File Script
Event Type: Released
Account type: Dial-in
Then Click on NEW File | Order Enter 30
ftp://rodopiftp:[EMAIL PROTECTED]/imail/_released_email_ as the File URL
--
D:\IMAIL\adduser -m @Old_UserName@ -p @Old_Password@ +active
--
Save
Start your event scripts service
Goto Rodopi | Main Menu | Filter Search | By Criteria | Procedures | Search
Click on the Radio button next to Send Event Scripts | Run
"The Send Events Scripts task will be executed in the next 15 seconds | OK
Note the Last activity time on the Event Scripts | Click on the SEARCH
button - the time should change
Syntax for the iMAIL 6.0 COMMAND LINE ADDUSER IS
adduser -u userid [-h hostname] [-n "full name"] [-p password] [-q] [options]
adduser -mod -u userid [-h hostname] [-n "full name"] [-p password] [options]
adduser -kill -u userid [-h hostname]
options: -chgpass -info -web -active
+chgpass +info +web +active
-q = override alias check
