Is it possible to enhance the SMTP connector...

Discussion for developers using MailEnable.
AbsolutelyFreeWeb
Posts: 89
Joined: Sun Nov 21, 2004 11:44 am

Post by AbsolutelyFreeWeb »

I can confirm that the smtp connextor is faulty and needs to be restarted every day. Do not use.

EDIT: looking at the logs, it perhaps never worked, once the script was in function, it couldnt handle the data:

Code: Select all

06/27/08 23:40:14	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146			220 xxx.com ESMTP MailEnable Service, Version: 1.986-- ready at 06/27/08 23:40:14	0	0	
06/27/08 23:40:15	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	EHLO	EHLO A-BCA36E1907BE4	250-xxx.com [61.54.216.146], this server offers 4 extensions	125	22	
06/27/08 23:40:16	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	MAIL	MAIL FROM:<roadsterou2@inelysium.com>	250 Requested mail action okay, completed	43	39	
06/27/08 23:40:17	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	RCPT	RCPT TO: <xxx@xxx.com>	250 My Response: xxx@xxx.com OK	50	41	
06/27/08 23:40:18	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	DATA	DATA	354 OK	8	6	
06/27/08 23:40:19	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	UNKN	Received: from [61.54.216.146] by mx0.123-reg.co.uk; Sat, 28 Jun 2008 12:40:19 +0800	503 Bad sequence of commands	30	669	
06/27/08 23:40:19	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	UNKN	Message-ID: <01c8d91c$1f72fb80$92d8363d@roadsterou2>	503 Bad sequence of commands	30	0	
06/27/08 23:40:19	SMTP-IN	E09F56AF2CFA4B199488A8E83613AD8F.MAI	416	61.54.216.146	UNKN	From: "Gail Bliss" <roadsterou2@inelysium.com>	503 Bad sequence of commands	30	0	

It would be great if ME would reply about this, and provide a fault free functionality in both standard and pro version..[/code]
Cheap domains com/net/org/info $6.99 including dns manager/forwarding
Quality Hosting from $1.99/mo
Hire IT staff When quality matters

RickH
Posts: 49
Joined: Tue Feb 08, 2005 4:23 pm

Post by RickH »

Considering I used this almost a year ago, it is possible your results are much different than what I had. I ran this for over a month and the scripts I had created worked great. Of course the constant faulting and restarting made this unusable the SMTP scripts did appear to be executing correctly. At one point I even added database logging to a mySQL server in the script text and it also worked fine but that was the first thing I removed when I noticed the faulting and restarting.

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

Post by MailEnable »

The cause of the fault/lockup has been identified and patched. The fix is only available for the 3.5 release and can be downloaded here:
http://www.mailenable.com/beta/SMTPSCR_35.zip

It can be run on versions prior to 3.5, but you would need to ensure that you have installed the VC 9 runtime.

The issue in question related to the fact that the SMTP Connectors main thread not coinitializing - which was leading to com environment initializers and destructors firing as scripts were being processed.
Regards, Andrew

polarisie
Posts: 696
Joined: Mon Mar 27, 2006 2:58 pm

Post by polarisie »

MailEnable wrote:The cause of the fault/lockup has been identified and patched. The fix is only available for the 3.5 release and can be downloaded here:
http://www.mailenable.com/beta/SMTPSCR_35.zip

It can be run on versions prior to 3.5, but you would need to ensure that you have installed the VC 9 runtime.

The issue in question related to the fact that the SMTP Connectors main thread not coinitializing - which was leading to com environment initializers and destructors firing as scripts were being processed.
Ben:

Will this functionality be offcially supported in the 3.5 release? From a developers view point the functionality would be very useful. Being able to drop during the SMTP session would improve the overall performance of filtering agents
MXSCAN :: AntiSpam & AntiVirus for MailEnable (now with Spamtrap/Honeypot!)
Built-in SpamAssassin, Clam, MessageSniffer, DNSBL, URLBL, DCC, Senderbase, SpamTrap, ShortCircuit, Content Filters, Disclamers, Archiving and more.
Visit www.mxuptime.com

polarisie
Posts: 696
Joined: Mon Mar 27, 2006 2:58 pm

works ..

Post by polarisie »

i have been testing the new beta release and so far it works quite well. However, with the default script provided you have to disable the DATA Script Status=0 in the registry or it will throw an error 503

However, both the "RCPT Script Status" and "MAIL Script Status" appears to work.

Ben: My question here is there a way to specify an alternate script to call instead of SMTP-Inbound.VBS. Can we call something else instead?

Thanks
MXSCAN :: AntiSpam & AntiVirus for MailEnable (now with Spamtrap/Honeypot!)
Built-in SpamAssassin, Clam, MessageSniffer, DNSBL, URLBL, DCC, Senderbase, SpamTrap, ShortCircuit, Content Filters, Disclamers, Archiving and more.
Visit www.mxuptime.com

CFelipe
Posts: 3
Joined: Wed Apr 15, 2009 2:54 am

Post by CFelipe »

Hi,

Are there news about SMTPSCR?

Scripting to reject emails before DATA command is a great feature, but I can't understand why this is beta yet.

Thanks.

polarisie
Posts: 696
Joined: Mon Mar 27, 2006 2:58 pm

Post by polarisie »

CFelipe wrote:Hi,

Are there news about SMTPSCR?

Scripting to reject emails before DATA command is a great feature, but I can't understand why this is beta yet.

Thanks.
I second this. I believe this is already included in the latest versions 3.6x however there is not much documentation on the subject
MXSCAN :: AntiSpam & AntiVirus for MailEnable (now with Spamtrap/Honeypot!)
Built-in SpamAssassin, Clam, MessageSniffer, DNSBL, URLBL, DCC, Senderbase, SpamTrap, ShortCircuit, Content Filters, Disclamers, Archiving and more.
Visit www.mxuptime.com

polarisie
Posts: 696
Joined: Mon Mar 27, 2006 2:58 pm

Post by polarisie »

CFelipe wrote:Hi,

Are there news about SMTPSCR?

Scripting to reject emails before DATA command is a great feature, but I can't understand why this is beta yet.

Thanks.
I tried this with the latest Standard 3.62 and it does NOT work

Cheers
MXSCAN :: AntiSpam & AntiVirus for MailEnable (now with Spamtrap/Honeypot!)
Built-in SpamAssassin, Clam, MessageSniffer, DNSBL, URLBL, DCC, Senderbase, SpamTrap, ShortCircuit, Content Filters, Disclamers, Archiving and more.
Visit www.mxuptime.com

Rockingly
Posts: 2
Joined: Thu Sep 03, 2009 4:12 am

Can not get it to work

Post by Rockingly »

I tried this with the 3.63 Enterprise eval and it does NOT work with it either. I have put the script in several places and can not get any event to fire, not RCPT, MAIL, or DATA!

At this point I would be happy if I could get "RCPT Script Status" and/or "MAIL Script Status" to work like polarisie mentioned.

Is this not supported in eval mode? Anyone have any thoughts?

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

Post by MailEnable »

I know that the scripts will not run on 64 bit windows in current version 3 releases (Version 4 beta has the fixes).

Perhaps run filemon and monitor the smtp connector and see where it is looking for thr script and whether it is finding it. This should also allow you to see whether there is a permissions problem accessing the script.
Regards, Andrew

Rockingly
Posts: 2
Joined: Thu Sep 03, 2009 4:12 am

Found the location

Post by Rockingly »

MailEnable wrote:I know that the scripts will not run on 64 bit windows in current version 3 releases (Version 4 beta has the fixes).

Perhaps run filemon and monitor the smtp connector and see where it is looking for thr script and whether it is finding it. This should also allow you to see whether there is a permissions problem accessing the script.
I found the location with Procmon.exe filtered on MESMTPC.EXE. Once I had that and moved the VBS file, "RCPT Script Status" and "MAIL Script Status" started working as expected.

The "DATA Script Status" still does not work, but two outta three ain't bad...

Thanx for your help Andrew!

Cheers

Post Reply