Koozali.org: home of the SME Server

Cant establish SMTP connection

Offline shoaib

  • 17
  • +0/-0
Cant establish SMTP connection
« on: October 20, 2008, 08:29:46 AM »
Hi all,

My sme has been running fine since July. But since last couple of days I've been noticing mails to yahoo, hotmail, and gmail stopping in the mail queue and finally coming back to local users with this error:

Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.

I'm in contact with my ISP, but in the meanwhile I want to collect as much information as possible, so as to tackle this problem.

All help would be appreciated.

Thanks

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Cant establish SMTP connection
« Reply #1 on: October 20, 2008, 09:21:23 AM »
As a workaround, try using your ISP's mail server to deliver messages, as detailed at http://wiki.contribs.org/SME_Server:Documentation:Administration_Manual:Chapter13#E-mail_Delivery

Does this help?

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #2 on: October 20, 2008, 09:32:31 AM »
Hi David,
thanks for your suggestion. I'll try it and get back.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #3 on: October 23, 2008, 05:34:37 AM »
Hi,
I tried the suggested setting, i.e using my isp's smtp server. And the mail slowly started flowing. Now the queue is all empty. But if I stop the relaying, and try to directly use SME's smtp, mails start stopping in queue. Can't understand the problem. This only happens when i try to send mails to international mail servers. I've tested it with a few local mail servers hosted by different ISPs and there is no problem in at all !!!!

qmail current error

starting delivery 64: msg 5147070 to remote xxx@hotmail.com
status: local 0/10 remote 3/20
delivery 64: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Cant establish SMTP connection
« Reply #4 on: October 23, 2008, 07:07:14 AM »
It's time to file a bug report, I think.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #5 on: October 23, 2008, 07:31:29 AM »
OK I filed a bugg ! Hope its not a bugg but some config problem !

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #6 on: October 23, 2008, 10:53:03 AM »
shoaib

Quote
But since last couple of days I've been noticing mails to yahoo, hotmail, and gmail stopping in the mail queue and finally coming back to local users with this error:
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.

More likely a blocking issue with/by those ISP's.

They are refusing a connection with your server as they suspect you of being a spammer.
They use special algorithms to deduce the likelihood of your servers IP being that of a spammer.

You will need to contact those ISP's tech support people to have your servers IP listed on their exclusion list. Have a look on their support websites.
Part of the problem will be that you do not have reverse DNS (PTR) records set up for your domain, you need to get your ISP to do that for you.
Also you need to implement Sender Policy Framework (SPF) records for your domains. Again your ISP is probably the one to do this for you or whoever maintains your DNS records.

Unless you do the above things, don't expect those large ISP's to accept mail from you anymore.

Using your ISP's smtp server to send mail is an easy answer though.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #7 on: October 23, 2008, 11:56:18 AM »
shoaib

More likely a blocking issue with/by those ISP's.

They are refusing a connection with your server as they suspect you of being a spammer.
They use special algorithms to deduce the likelihood of your servers IP being that of a spammer.

You will need to contact those ISP's tech support people to have your servers IP listed on their exclusion list. Have a look on their support websites.
Part of the problem will be that you do not have reverse DNS (PTR) records set up for your domain, you need to get your ISP to do that for you.
Also you need to implement Sender Policy Framework (SPF) records for your domains. Again your ISP is probably the one to do this for you or whoever maintains your DNS records.

Unless you do the above things, don't expect those large ISP's to accept mail from you anymore.

Using your ISP's smtp server to send mail is an easy answer though.


Hi,
Thanks for the suggestions, but unfortunately your points of concern have been already checked. I've contacted my ISP, to see if my IP or my IP block was in any blacklist, as it often happens. But it was found clean, (checked blacklisting at various sites, including openrbl.org). I have a valid MX record for my IP, a valid reverse DNS, and a valid PTR. Other than that my server strictly denies
relaying. I use webmail or IMAPS for externally accessing mails. MY ISP has given in writing that they are not blocking any ports, neither are they filtering my traffic. So the problem is elsewhere. I hope I can find a solution soon.

Offline mmccarn

  • *
  • 2,627
  • +10/-0
Re: Cant establish SMTP connection
« Reply #8 on: October 23, 2008, 03:11:04 PM »
Quote
unfortunately your points of concern have been already checked. I've contacted my ISP, to see if my IP or my IP block was in any blacklist,

You need to check with each email provider to see if they are blocking you.

For example, in the late 90's, AOL would discard email from servers it didn't like
* without generating any error messages
* without providing any mechanism for the sender to find out what happened
* without admitting that it had accepted, then discarded the email from your server.

In this case, you need to contact yahoo, hotmail and gmail to find out why they are blocking SMTP connections from your IP address.  As you have already found out, your ISP may think your IP is fine, but if these email systems won't accept email from you, you still have a problem.



Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #9 on: October 24, 2008, 04:15:27 AM »
shoaib

Quote
So the problem is elsewhere. I hope I can find a solution soon.

You have totally misunderstood what I was advising you.

The problem is not with your ISP, and as you deduce the problem is elsewhere.
It is with yahoo, hotmail, and gmail.
They are the ones blocking your sme smtp server from connecting to their smtp server.
The error message clearly says that.
ie
Sorry,_I_wasn't_able_to_establish_an_SMTP_connection.

The blocking is NOT as a result of your sme server IP being on any RBL lists, I never even mentioned those.

As I said, yahoo, hotmail & gmail use special algorithms to deduce the likelihood of your servers IP being that of a spammer.
You will need to contact those ISP's tech support people to have your servers IP listed on their exclusion list. Have a look on their support websites.

OK then, if you have Reverse DNS/PTR records setup then that part is OK.

What about Sender Policy Framework (SPF) records for your domains ?
You will get blocked if you don't have that setup.

I have been through all this, and the ultimate answer is to get your server listed on the exclusion lists maintained by yahoo, hotmail & gmail. But they will not list you until you conform to all their requirements and provide (for example) information about the path your server takes to talk to their servers etc etc and verify that you have put in place certain requirements eg PTR & SPF etc. See their tech support websites for details of the information they want from you.

Search for technical support for system administrators for each of those providers.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #10 on: October 24, 2008, 04:49:27 AM »
shoaib

Here's where you start the process going for Hotmail
Look for similar for the other providers

http://postmaster.live.com/

Solutions For:

Senders

Do you send e-mail to Windows Live Hotmail users on a regular basis? Does your organization send e-mail on behalf of other companies (for instance, are you an ISP or ESP)? If you fall into one of these groups and would like to improve the deliverability of your messages to consumers, then read more here.

Here's where you submit your  (detailed) request to Hotmail

https://support.msn.com/eform.aspx?productKey=edfsmsbl&ct=eformts&scrx=1


Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #11 on: October 24, 2008, 09:25:42 AM »
Thanks Mary for all your support. I'll start correspondence with hotmail and see where it goes from there, and I assume its a long walk till my server is whitelisted. I'll keep my progress posted.

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Cant establish SMTP connection
« Reply #12 on: October 24, 2008, 04:42:15 PM »
shoaib,

Do you have a static or dynamic IP address?
In life, you must either "Push, Pull or Get out of the way!"

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #13 on: October 25, 2008, 10:17:42 AM »
shoaib,
Do you have a static or dynamic IP address?

Static, paid extra in the package plan to get that.


Offline akhilmathema

  • **
  • 42
  • +0/-0
Re: Cant establish SMTP connection
« Reply #14 on: October 27, 2008, 01:08:29 PM »
You can check your IP in one of those sites:
http://www.us.sorbs.net/lookup.shtml

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #15 on: October 28, 2008, 04:23:48 AM »
You can check your IP in one of those sites:
http://www.us.sorbs.net/lookup.shtml

Checked, not listed.

Offline F650

  • 2
  • +0/-0
Re: Cant establish SMTP connection
« Reply #16 on: October 29, 2008, 12:11:29 AM »
I have the same problem.
I could send e-mail to yahoo, hotmail, and mynet but could not receive. Every time i received "Cant establish an SMTP connection" message. I checked my static IP for the blacklist but it was clear. I also checked my server with nmap and port 25 is open. My settings is at  "Allow private and public (secure POP3S)". I could send but could not receive from those services. I have not any experiment on the other services. When i receive the my sme servers messages from yahoo and the others, they did not put me on the junk mail folder or like the spam. I could not understand the problem.   :shock: Thanks for your attentions.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #17 on: October 29, 2008, 01:56:45 AM »
F650

Quote
I have the same problem.
I could send e-mail to yahoo, hotmail, and mynet but could not receive.

Your problem is different to the original poster. OP complains of not being able to send.

Please look at this thread as it may provide some clues and troubleshooting tips.

http://forums.contribs.org/index.php?topic=42355.msg199352#msg199352
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline F650

  • 2
  • +0/-0
Re: Cant establish SMTP connection
« Reply #18 on: October 29, 2008, 02:45:58 AM »
Thanks for your guide.

Offline akhilmathema

  • **
  • 42
  • +0/-0
Re: Cant establish SMTP connection
« Reply #19 on: October 31, 2008, 05:32:57 AM »
Checked, not listed.

try to use your ISP's smtp gateway
# config set SMTPSmartHost your.isp.com

even if doesn't work verify qpsmtpd has public access
# config show qpsmtpd

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #20 on: October 31, 2008, 05:51:06 AM »

try to use your ISP's smtp gateway
# config set SMTPSmartHost your.isp.com

even if doesn't work verify qpsmtpd has public access
# config show qpsmtpd

Yeah I'm doing that (using my ISP's smtp), its working, but my company's policy is against that. Therefore its not a permanent solution. I've written to gmail, yahoo and hotmail. So far none of them has replied ! I guess my last option is to get a new ip from a different ip block.

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #21 on: October 31, 2008, 08:31:48 AM »
shoaib

Quote
I guess my last option is to get a new ip from a different ip block.

That won't necessarily resolve the problems.
Your sending patterns are analysed by hotmail etc, and they use algorithms to decide if you are behaving like a spammer. They are quite agressive too.

Simply sending ten messages in quick succession to different hotmail accounts is enough to get you blocked by them (temporarily usually).
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #22 on: October 31, 2008, 08:36:10 AM »
shoaib

That won't necessarily resolve the problems.
Your sending patterns are analysed by hotmail etc, and they use algorithms to decide if you are behaving like a spammer. They are quite agressive too.

Simply sending ten messages in quick succession to different hotmail accounts is enough to get you blocked by them (temporarily usually).

Then what? Should I change my ISP?? (very difficult task if not impossible)!!!

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #23 on: October 31, 2008, 08:47:17 AM »
shoaib

Quote
Then what? Should I change my ISP?? (very difficult task if not impossible)!!!

I don't understand your attitude of confusion.
You have been given good advice in replies 6, 9, 10 etc and yet you still seem to not understand what the issue is.
Those ISP's are blocking you because of the mail sending pattern your server does.

The way to resolve the issues is to fill in the form at hotmail (& other ISP's tech support pages) eg
https://support.msn.com/eform.aspx?productKey=edfsmsbl&ct=eformts&scrx=1
which will eventually get your server/domain/IP whitelisted at hotmail, then they will acecept lots of emails from you without them being in fear that you are a spammer.

As stated before, you will have to provide many (almost confidential) details to them though, which involve running tests on your server, as per the data being requested in the form fields.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline shoaib

  • 17
  • +0/-0
Re: Cant establish SMTP connection
« Reply #24 on: October 31, 2008, 09:36:31 AM »
I've filled and submitted the form which you prescribed earlier, and also wrote a separate email, haven't heard from them yet. No confusion just frustration ! I apologize for my bitter snapping remarks, (no need to bite the helping hand) :(
« Last Edit: October 31, 2008, 09:42:08 AM by shoaib »

Offline pfloor

  • ****
  • 889
  • +1/-0
Re: Cant establish SMTP connection
« Reply #25 on: October 31, 2008, 03:34:12 PM »
I've filled and submitted the form which you prescribed earlier, and also wrote a separate email, haven't heard from them yet. No confusion just frustration ! I apologize for my bitter snapping remarks, (no need to bite the helping hand) :(

I'm not going to read this entire thread so if you haven't already done so, you MUST configure an spf record.  It is easy to do if you use DynDNS (and I assume other DNS providers provide a way for you to add an spf record).  This fixed all my problems with hotmail, msn, etc. a long time ago and I never had to contact hotmail.  See this thread, the OP had similar problems with hotmail.

http://forums.contribs.org/index.php?topic=37898.msg170657#msg170657

In life, you must either "Push, Pull or Get out of the way!"

Offline janet

  • ****
  • 4,812
  • +0/-0
Re: Cant establish SMTP connection
« Reply #26 on: November 01, 2008, 12:54:27 AM »
shoaib & pfloor

Quote
.. you MUST configure an spf record. 

That was advised to do way back in reply #6, but OP only says:

"I have a valid MX record for my IP, a valid reverse DNS, and a valid PTR."

Part of the confirmation process when working through the form at hotmail is to confirm you have a SPF record. Shoaib you must set one up as pfloor says.

Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.