bad mail to outbound
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.
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
rem
echo Clean Mail Enable Bad Mail Folder Utility
echo February 12, 2004
rem
echo off
IF EXIST "C:\Program Files\Mail Enable\Bad Mail\*.mai" goto clean
IF ERRORLEVEL 0 goto nobad
:clean
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
:merestart
net stop "MailEnable SMTP Connector"
net start "MailEnable SMTP Connector"
sleep 15
goto clearbad
:clearbad
del "C:\Program Files\Mail Enable\Bad Mail\*.mai"
del "C:\Program Files\Mail Enable\Bad Mail\messages\*.mai"
goto dns
:nobad
net stop "MailEnable SMTP Connector"
net start "MailEnable SMTP Connector"
goto dns
:dns
net stop "DNS Server"
net start "DNS Server"
goto end
:end
echo task completed successfully
Bad Mail delete or move
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 http://larmib.com/index.asp?Site=Programs
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 http://larmib.com/index.asp?Site=Programs
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.
-
- Site Admin
- Posts: 4441
- Joined: Tue Jun 25, 2002 3:03 am
- Location: Melbourne, Victoria Australia
Re: bad mail to outbound
yeah what's that problem ? why i didn't get any notification or message report ? where is messages folder
Last edited by jimmy45 on Mon May 09, 2016 6:45 pm, edited 2 times in total.
Go Green
Re: bad mail to outbound
Hi,
look here: http://www.mailenable.com/addons_Management.asp
or direkt download here: http://www.mailenable.com/utilities/add ... tbound.zip
Best regards
look here: http://www.mailenable.com/addons_Management.asp
or direkt download here: http://www.mailenable.com/utilities/add ... tbound.zip
Best regards
-
- Posts: 6
- Joined: Tue Nov 20, 2012 11:43 am
Re: bad mail to outbound
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. http://ezasseenontv.com/