Update Antivirus definitions when MDaemon starts

If you want to have MDaemon automatically update your SecurityPlus (or MDAV) virus definitions automatically when MDaemon starts up, it’s actually very simple to do.

Open notepad, edit the C:\MDaemon\App\startup.bat file.  If it doesn’t exist, create it.

Add the line “echo. > C:\MDaemon\app\updateav.sem” to the file (I’d suggest adding it to the very top or very bottom)

That’s it!  From now on, MDaemon will perform an antivirus update shortly after restarting.  You can’t get much easier then that.

Forgot your MDaemon GUI lock password?

This is an easy one, but it comes up just often enough to be worth the post.

You can “lock” the MDaemon console by using the option available in the right click menu of MDaemon’s tray icon. Once locked, you cannot access any of MDaemon’s controls without entering the password.

So what happens if you lost the password?

Shut down MDaemon (services.msc –> Stop the service, or create a “Exitnow.sem” file in the \MDaemon\App\ directory), then go to the [Special] section of MDaemon.INI, delete the LockPassword= line entirely.

Doesn’t this totally defeat the purpose of the password? — Well, not really. MDaemon is only as secure as the operating system running it, if an attacker is already logged in with administrative access, and can read/write anywhere on the drive they desire, they’ve already won.

Create a mailing list of Outlook Connector users

I once had a request to populate a mailing list with Outlook Connector users.  Below is the script that was born.

The script assumes a hardcoded listname of “[email protected]”, use Notepad to search and replace [email protected] with the correct list name.

Also, you need to manually create the list in MDaemon first, otherwise the script will fail.  Lastly, be aware that you cannot manually add users to the list, the entire membership list is wiped and replaced each time the script runs.  The intention is to run the script automatically on a schedule to keep the list up to date.

@ECHO OFF
CD C:\MDaemon\App
IF NOT EXIST GroupWareUsers.dat goto ERROR
IF NOT EXIST [email protected] goto ERROR
COPY [email protected] [email protected]
FIND “;” < [email protected] > [email protected]
FIND “@” < GroupWareUsers.Dat >> [email protected]
GOTO END
:ERROR
ECHO Could not find needed file, check and make sure GroupWareUsers.dat and [email protected] exist
:END