Bobby,
I set up the rule in our primary domain, test it, when it looks good I copy
it to the root Imail directory renaming it globrules.ima then while at an NT
command prompt, and in the root Imail directory (which is not pathed just to
protect me from my own stupidity) I have a batch file named globrules.cmd
that I run. It is not perfect, it tries and copies the rules file to a
couple of not needed places but it doesn't blow the system up or anything
and is bloody quick when you are at risk for some security threat or new
virus out there and have LOTS of domains.
But it does seem that each virtual domain (when using multiple IP's, one for
each domain) needs its own rules file.
The batch file is simply:
@echo off
for /f %%d in ('dir /a:d /b') do copy \imail\globrules.ima
\imail\%%d\rules.ima
It basically says for every sub-directory it finds in the current directory,
copy (and rename at the same time) the globrules.ima file to each of those
sub-directories.
If you run it *not* inside a batch file but by just typing it at the command
prompt, use single % signs instead of double.
Randy E. Reinhardt
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
System Administrator
Microsoft: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Bobby Cannon
Sent: Friday, May 19, 2000 1:48 PM
To: '[EMAIL PROTECTED]'
Subject: [IMail Forum] Attachment rules
Hello,
I know we've beaten this death, but this should quite simple.
I have the following rule set up which forwards all mail w/v*b*s attachment
to
a virus mailbox at [EMAIL PROTECTED] B~attachment;
filename=".*\.v*b*s":virus I initially set this up to test it by putting the
rules.ima file in the root directory of domain A, which is a virtual domain.
It worked great, so now I want to apply it to all 50 of my virtual domains.
I tried copying it to \imail directory and nothing. I stopped and started
services, nothing. I put the rules.ima file in each domains root directly
and it works fine. I can live with that, until I want to change a rule,
then it's copy and paste hell. Did I miss something? I was under the
impression that placing the rules.ima file in the imail root directory would
affect all domains. Please help. Thank you.
Sincerely,
Bobby Cannon
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.