Solved

Software caused connect abort smarteremail

Posted on 2014-12-02
7
700 Views
Last Modified: 2014-12-02
I am geting this when I send an email with my smarteremail server using persits aspemail

Windows 2003

Software caused connect abort



Any ideas
0
Comment
Question by:robrodp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 40476376
I have used aspemail with smartermail on both shared servers and my own so I know this should work.

It is going to be a matter of your smtp settings or your code.   Are you sending one email at a time or sending 1000 emails in the "To:"?    If you send out only one email does it work?  Try the code sample for sending out one email http://www.aspemail.com/manual_02.html.  If you need help determining how you are sending out mail, post your code here.

From the persists help site http://support.persits.com/show.asp?code=PS02030488
1. The size of the message being sent might exceed the maximum message size allowed by your SMTP server. The default limit for the Microsoft SMTP Service is 2048 KB and can be changed via MMC (Windows NT) or Internet Information Services (Windows 2000).

Note that if your message contains a file attachment, the Base64-encoded attachment size is roughly 37% larger that the original file. This means each kilobyte of an attachment increases the size of your message by roughly 1400 bytes.

2. This error message may also occur if the number of email addresses you are specifying for the message exceeds the limit of recipients per message. The Microsoft SMTP service has a default limit of 100 and this can be changed in the same place as above.

3. Open the "Access" tab of the SMTP Server properties and click the "Connection..." button. Make sure that the SMTP service is not configured to deny connections from the machine running AspEmail.

If you are using a different SMTP server other than the Microsoft service, you will probably have to enable logging on it and inspect the logs to find out exactly what the SMTP server is rejecting.

4. Anti-virus software installed on your network may be configured to block port 25 (the default SMTP port) to prevent mass-mailing worms from spreading.
0
 

Author Comment

by:robrodp
ID: 40476440
This is my code belod}w

I send it once and it works. I send it a second time and it gives the error. I wait a while and it works again.

I have used this code many time without issues.

I conclude:

1. The asp code is right, unless I am not closing a connection. Don't know if necessary if so how.

2.There is a timing  issue somewhere in the server or smarteremail. No idea of how to troubleshoot

3. There is an aspemail (persist) issue. No idea of how to troubleshoot

4. There is a hardware problem. Softlayer syas the hardware is ok

Port 25 is ok... I have disabled the firewall and antivirus to no avail.

Where can I see the logs of what id}s going on with the server. Can't find anything in the event viewer

The cpu is at 10% usage max

Any ideas?


<%Set ObjMail = Server.CreateObject("Persits.MailSender")
objMail.Host= "mail.apuntate.com.mx"
objMail.UserName = "UserName"
objMail.Password = "PassWord"
objMail.Port=25

Body = "Hola yo" 
objMail.From = "info@mydomain.com"
objMail.FromName="Roberto Parker"
objMail.AddAddress  "somebody@gmail.com"
objMail.Subject = "test"
objMail.Body=Body

' Send it!
objMail.Send
set ObjMail=Nothing

Open in new window

0
 
LVL 53

Expert Comment

by:Scott Fell, EE MVE
ID: 40476535
Are you on a shared server or dedicated server?  

If on a shared server, can you find out what the alternative port is and try changing the port for that.  Also, does Softlayer have any sending limits set up?

Are you using plesk?

For the code you posted, is that the only thing on the page or is there any looping?  If you have a loop, are you creating the object once or is the set ObjMail inside of the loop?

Set ObjMail = Server.CreateObject("Persits.MailSender")
objMail.Host= "mail.apuntate.com.mx"
objMail.UserName = "UserName"
objMail.Password = "PassWord"
objMail.Port=25

' ----------- start looping 10 times ------------
For x = 1 to 10

Body = "Hola yo" 
objMail.From = "info@mydomain.com"
objMail.FromName="Roberto Parker"
objMail.AddAddress  "somebody@gmail.com"
objMail.Subject = "test"
objMail.Body=Body

' Send it!
objMail.Send

Next
' ----------- end loop------------


set ObjMail=Nothing

Open in new window


If you are saying it has worked before and now errors, it sounds like there must be some type of change in either the shared service or an update that could have automatically occurred in smartermail or plesk if you use that.

Do you have access to the main admin domain admin in smartermail?  Not just the user that is the main admin or admin.  Is smartermail running in the stand alone default webserver or do you have it running on iis?  (the stand alone is the default)
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 

Author Comment

by:robrodp
ID: 40476680
It is on a dedicated server..

I guess I have complete control over smarteremail

The script is as plainas I sent it. No loops. Just one email.

Test it:

http://apuntate.com.mx/sendtest1.asp

You send one and 90% of the times it works,, the other an error,

I also tried mailbee... with the same results.

I have no clue as to what to do. I have made no changes, in limits etc.

It seems to be a smarteremail issue

Any suggestions will be welcome
0
 
LVL 53

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 40476745
It does look like it could be an anti spam issue.  When I tried a test at mxtool box everything was fine
first tryThen on the 2nd try it triggers a possible open relay
2nd try
I think you will need to do this in smarter mail  http://help.smartertools.com/SmarterMail/v12/  (make sure you have the correct version http://help.smartertools.com/SmarterMail

Your log in to the admin panel is going to be on port 9998 so http://yourdomain.com:9998  or IP http://xx.xx.xx.xx:9998

Under the domain admin, I think you will want to white list your own domain or bypass
help
Are you using plesk?  If so, did you install smartermail as  plesk package or did you install outside of plesk?  or not using a control panel?   If you are using plesk and did not install as a package, plesk may be over riding something too.
0
 

Author Comment

by:robrodp
ID: 40476832
Well

I guess that did the trick,

You are the the man...

Thx 1,000,000
0
 

Author Closing Comment

by:robrodp
ID: 40476838
An expert is well... an expert

Thx Scott and Experts Exchange of course.

You are worth every penny
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create a User Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Mailb…
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question