Solved

Software caused connect abort smarteremail

Posted on 2014-12-02
7
519 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
  • 4
  • 3
7 Comments
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
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
Comment Utility
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 52

Expert Comment

by:Scott Fell, EE MVE
Comment Utility
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
How does your email signature look on mobiles?

Do your employees use mobile devices to reply to emails? With mobile becoming increasingly important to the business world, it is in your best interest to make sure that your email signature looks great across all types of devices.

 

Author Comment

by:robrodp
Comment Utility
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 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
Comment Utility
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
Comment Utility
Well

I guess that did the trick,

You are the the man...

Thx 1,000,000
0
 

Author Closing Comment

by:robrodp
Comment Utility
An expert is well... an expert

Thx Scott and Experts Exchange of course.

You are worth every penny
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This short article will present "How to import ICS Calendar onto Office 365 Calendar". I was searching for free (or not free) tools to convert ICS to CSV without success. The only tools I found & working well were online tools...this was too hard to…
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now