bad mail to outbound

Discussion, support and announcements for third party applications that work with MailEnable.
Post Reply
Posts: 4
Joined: Sun Aug 29, 2004 2:39 am

bad mail to outbound

Post by jess » Sun Aug 29, 2004 2:40 am

Anyone know how to use it?

Posts: 1071
Joined: Tue Mar 02, 2004 7:33 pm
Location: Atlanta, GA, USA

Post by paarlberg » Fri Sep 03, 2004 9:54 am

I created this little script that works great... It is created to stop and restart both the ME SMTP and MS DNS on the local box.. It moves all "Bad Mail" to the outbound queue and then waits 15 seconds and deletes any new Bad Mail folder contents. You will have some of the mails that are rejected immediately and placed back into the BadMail folder. These are deleted so they are not processed again.

You will need a ultility called sleep.exe which is widely available on the web and in MS Resource kits.

Code: Select all

echo off
echo 		Clean Mail Enable Bad Mail Folder Utility
echo			February 12, 2004

echo off

IF EXIST "C:\Program Files\Mail Enable\Bad Mail\*.mai" goto clean
IF ERRORLEVEL 0 goto nobad

move "C:\Program Files\Mail Enable\Bad Mail\*.mai" "C:\Program Files\Mail Enable\Queues\SMTP\Outgoing"
move "C:\Program Files\Mail Enable\Bad Mail\messages\*.mai" "C:\Program Files\Mail Enable\Queues\SMTP\Outgoing\messages"
goto merestart

net stop "MailEnable SMTP Connector"
net start "MailEnable SMTP Connector"
sleep 15
goto clearbad

del "C:\Program Files\Mail Enable\Bad Mail\*.mai"
del "C:\Program Files\Mail Enable\Bad Mail\messages\*.mai"
goto dns

net stop "MailEnable SMTP Connector"
net start "MailEnable SMTP Connector"
goto dns

net stop "DNS Server"
net start "DNS Server"
goto end

echo task completed successfully

Bad Mail delete or move

Post by » Thu Jan 20, 2005 3:26 am

I wrote two simple vb apps.
1) Delete's bad mail completely
2) moves bad mail to smtp-outbound

The first one is the best because you don't want to move forever looping mail back into your smtp outbound folder to be relooped untl (IF) mail enable catches it.

The second one simply moves it to the smtp-outbond folder. You can download them for free at

Posts: 1
Joined: Fri Feb 24, 2006 3:03 pm
Location: London

Post by RowaN » Fri Feb 24, 2006 3:05 pm

What exactly is bad mail, and why does Mailenable store it? Why do you need to write a seperate program to delete bad mail.. you can just highlight it and press delete. Why would you want to move it to smtp-outbound? Sorry for so many questions, I'm new to Mailenable and just trying to figure out the various ways it handles stuff. Thanks guys.

Posts: 217
Joined: Sun Jan 29, 2006 12:26 am

Post by wisp » Mon Apr 17, 2006 1:31 pm

I have the same questions as RowaN. Could some experts please answer? I have no virus scanner, but I see many MAI in my badmail folder. Thanks.

Site Admin
Posts: 4441
Joined: Tue Jun 25, 2002 3:03 am
Location: Melbourne, Victoria Australia

Post by MailEnable » Mon Apr 17, 2006 2:36 pm

The most common reason for messages ending up in the BadMail folder is through message looping or if a non-delivery report/ delivery status notification message cannot be delivered.

ie: system generated messages that are not able to be delivered go into badmail.
Regards, Andrew

Posts: 1
Joined: Sat Oct 06, 2012 6:56 pm

Re: bad mail to outbound

Post by jimmy45 » Sun Oct 07, 2012 3:11 am

yeah what's that problem ? why i didn't get any notification or message report ? where is messages folder :lol:
Last edited by jimmy45 on Mon May 09, 2016 6:45 pm, edited 2 times in total.
Go Green

Posts: 31
Joined: Thu Apr 12, 2007 9:07 am

Re: bad mail to outbound

Post by Seppy » Tue Oct 09, 2012 5:21 am

Posts: 6
Joined: Tue Nov 20, 2012 11:43 am

Re: bad mail to outbound

Post by blue7floyd » Thu Jul 11, 2013 11:18 am

This is one of the software that serves to be highly useful. Any bad mail can be completely moved into trash without affecting any other part of your mail. It sends the bad mail to the outbound SMTP and helps maintain our clean database.

Post Reply