I have been using IMail rules for some time now...

Here's a few helpful pointers for you...

Global rules go into your "rules.ima"

If you wish to redirect mail contain a certain phrase, you will also need to put a 
"username.fwd" file in each users mail folder to forward the mail correctly. (I have a 
little batch file to help do this.)

If you wish to have lots of rules, you may wish to store them in a text file, e.g. 
"spam.rul"

I attached 8 files that may be of use...


Let me know if you need any more help.

Andrew Snowden
ICT Co-ordinator
Cheadle Hulme School, UK











(phrase1|phrase2|phrase3)


[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
@echo off
echo.
echo This batch copies the file .\master\rules.ima
echo into all subdirectories. It has to be started from
echo the root of any of your mail domain's directories.
echo.
pause

rem building userlist based on directory only
dir /B /AD users>dirlist.txt
echo.>rulecopy.log
echo Please wait while the file is copied ...

rem copy the source file to each directory
rem Note that this command must all be on one single line:
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log && 
copy .\master\imailabuse.fwd .\users\"%%i" >>rulecopy.log
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log && 
copy .\master\imailvirus.fwd .\users\"%%i" >>rulecopy.log
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log && 
copy .\master\imailspam.fwd .\users\"%%i" >>rulecopy.log
FOR /F "eol= tokens=1,* delims=/" %%i in (dirlist.txt) do echo %%i>>rulecopy.log && 
copy .\master\imailadmin.fwd .\users\"%%i" >>rulecopy.log
type rulecopy.log
echo.
echo Check file rulecopy.log for details.
echo.
:END

B~:abuselist:imailabuse
S~:abuselist:imailabuse
B~:viruslist:imailvirus
S~:viruslist:imailvirus
B~:spamlist:imailspam
S~:spamlist:imailspam
H~:spamlist:imailspam
F~:spamlist:imailspam

(phrase1|phrase2|phrase3)
(phrase1|phrase2|phrase3)

Reply via email to