Koozali.org: home of the SME Server

QMail problem: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)

Offline krsty

  • 4
  • +0/-0
This problem struggle me for some days. I can't send any message from my website and get this error : "Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)".
"/var/qmail/bin/qmail-showctl" output follows:
Quote
qmail home directory: /var/qmail.
user-ext delimiter: -.
paternalism (in decimal): 2.
silent concurrency limit: 509.
subdirectory split: 23.
user ids: 200, 201, 202, 0, 203, 204, 205, 206.
group ids: 200, 201.

badhelo: (Default.) Any HELO host name is allowed.

badmailfrom:
.*\ @.* MAIL FROM denied if it matches this pattern.
!.*@.*\..* MAIL FROM denied if it matches this pattern.
.*%.* MAIL FROM denied if it matches this pattern.

badmailfromnorelay: (Default.) Any MAIL FROM is allowed.

badmailto:
[\(\)] RCPT TO denied if it matches this pattern.
[\{\}] RCPT TO denied if it matches this pattern.
@.*@ RCPT TO denied if it matches this pattern.
[\%] RCPT TO denied if it matches this pattern.
[\!] RCPT TO denied if it matches this pattern.

badmailtonorelay: (Default.) No RCPT TO are specifically denied.

badloadertypes:

badloadertypes.cdb: Modified recently enough; hopefully up to date.

badmimetypes:

badmimetypes.cdb: Modified recently enough; hopefully up to date.

bouncefrom: (Default.) Bounce user name is MAILER-DAEMON.

bouncehost: (Default.) Bounce host name is mydomain.com.

concurrencylocal: (Default.) Local concurrency is 10.

concurrencyremote: Remote concurrency is 60.

databytes: SMTP DATA limit is 20971520 bytes.

defaultdomain: Default domain name is mydomain.com.

defaulthost: Default host name is mydomain.com.

doublebouncehost: (Default.) 2B recipient host: mydomain.com.

doublebounceto: (Default.) 2B recipient user: postmaster.

envnoathost: (Default.) Presumed domain name is mydomain.com.

helohost: (Default.) SMTP client HELO host name is mydomain.com.

idhost: (Default.) Message-ID host name is mydomain.com.

localiphost: (Default.) Local IP address becomes mydomain.com.

locals:
Messages for localhost are delivered locally.
Messages for server.mydomain.com are delivered locally.

me: My name is mydomain.com.

percenthack: (Default.) The percent hack is not allowed.

plusdomain: Plus domain name is mydomain.com

qmqpservers: (Default.) No QMQP servers.

queuelifetime: Message lifetime in the queue is 604800 seconds.

rcpthosts:
SMTP clients may send messages to recipients at server.mydomain.com.
SMTP clients may send messages to recipients at mydomain.com.
SMTP clients may send messages to recipients at static.mydomain.com.

morercpthosts: (Default.) No effect.

morercpthosts.cdb: (Default.) No effect.

smtpgreeting: SMTP greeting: 220 mydomain.com - Welcome to Qmail.

smtproutes:

srs_domain: (Default.) SRS domain name is .

srs_secrets: (Default.) No secrets

srs_maxage: (Default.) SRS maxage is 21.

srs_hashlength: (Default.) SRS hashlength is 4.

srs_hashmin: (Default.) SRS hashmin is 4.

spfbehavior: The SPF behavior is 0.

spfexp: (Default.) The SPF default explanation is: 550 See http://spf.pobox.com/why.html?
sender=%{S}&ip=%{I}&receiver=%{xR}.

spfguess: (Default.) The guess SPF rules are: .

spfrules: (Default.) The local SPF rules are: .

timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds.

timeoutremote: (Default.) SMTP client data timeout is 1200 seconds.

timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds.

virtualdomains:
Virtual domain: mydomain.com:mydomain.com
Virtual domain: static.mydomain.com:static.mydomain.com

tlsserverciphers: I have no idea what this file does.

blacklists: I have no idea what this file does.

rsa512.pem: I have no idea what this file does.

tlsclientciphers: I have no idea what this file does.

domainkeys: I have no idea what this file does.

logcount: I have no idea what this file does.

dh512.pem: I have no idea what this file does.

servercert.pem: I have no idea what this file does.

concurrencyincoming: I have no idea what this file does.

virtualdomains.lock: I have no idea what this file does.

simcontrol: I have no idea what this file does.

defaultdelivery: I have no idea what this file does.

locals.lock: I have no idea what this file does.

clientcert.pem: I have no idea what this file does.

dh1024.pem: I have no idea what this file does.

rcpthosts.lock: I have no idea what this file does.

logsize: I have no idea what this file does.

simversions.cdb: I have no idea what this file does.


I have a VPS host and use Kloxo as WHM.

Offline Stefano

  • *
  • 10,894
  • +3/-0
well..

are you using a smart host?
do you get this error with EVERY email? or only to a (few) domain?

the error message is clear enough: your SME is unable to contact the destination mail server correctly

Offline krsty

  • 4
  • +0/-0
Quote
do you get this error with EVERY email? or only to a (few) domain?
I test on Gmail and Yahoo mail , no mail received.
Quote
are you using a smart host?
Sorry, how can I test this ?
Quote
the error message is clear enough: your SME is unable to contact the destination mail server correctly
And now how can I solve this ?
Thanks.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
This problem struggle me for some days. I can't send any message from my website and get this error : "Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)".

The most likely cause of this is that your ISP is blocking port 25 outbound connections. The usual solution to that problem is to use the email configuration panel to direct all outbound mail via the ISP's mail server. Have you read the manual?

Quote
I have a VPS host and use Kloxo as WHM.

SME server is not developed to be deployed on a VPS host. You might have various problems due to that. I don't know what WHM is.

Offline krsty

  • 4
  • +0/-0
I use this command to check if SMTP port 25 is blocked : "telnet mydomain.com 25" and I get this :
Quote
Connected to mydomain.com.
Escape character is '^]'.
220 server.mydomain.com - Welcome to Qmail ESMTP
So , I guess port 25 is not  blocked ?

WHM is "Web Hosting control panel system"

Offline Stefano

  • *
  • 10,894
  • +3/-0
I use this command to check if SMTP port 25 is blocked : "telnet mydomain.com 25" and I get this :So , I guess port 25 is not  blocked ?

mmmhhh.. you should try a REMOTE server, not yours

your ISP may permit incoming connections on 25 (to host mail server) but deny outgoing smtp traffic (to reduce spam)..

ask your ISP if there's a solution (i.e. a smarthost)

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
I use this command to check if SMTP port 25 is blocked : "telnet mydomain.com 25" and I get this :

What you have shown is not an SME server SMTP banner. You either didn't cut and paste (and we know you didn't, because you mislead us using "mydomain.com"), or you are connecting to some other server, or your server is customised.

Quote
So , I guess port 25 is not  blocked ?

As Stefano has said, you need to try to connect to an outside SMTP server *from* your SME server. Some ISPs block port 25 inbound. Some block port 25 outbound. Some block both.

Use, for instance:

telnet mail.centos.org 25

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
I use this command to check if SMTP port 25 is blocked : "telnet mydomain.com 25" and I get this

I'm sure that you didn't - host 'mydomain.com' does not respond on port 25.

If you want us to help, please don't edit the information you provide to us. It just wastes your time and ours.

http://wiki.exim.org/MailingListEtiquette#Don.27t_obfuscate_detail_unless_absolutely_necessary

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
WHM is "Web Hosting control panel system"

That's almost certainly incompatible with SME server, and you will have numerous problems if you attempt to use WHM and SME server together.

Offline krsty

  • 4
  • +0/-0
Sorry  , it's my first topic related at this theme. I'm freelancer , work with wordpress , php , javascript , and now I decided to start my own website (a comercial wordpress blog) and buy a Unmanaged VPS Host (my bad). I read a lot of things about how to manage a VPS host (little, as shown). I have a virtuozzo VPS on CentOS , and I instaled Kloxo to manage easier the host. I had a lot of problema, but this problem struggle me for some days and I decided to find help here.
I contact the host for support , and this is what I received (can be help another person who will meet the same problem):
Quote

your server is listening on both ports 25 and 26:

--------------------------------------------
[root@server /]# netstat -ntap|grep :25
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN      14085/xinetd

[root@server /]# netstat -ntap|grep :26
tcp        0      0 0.0.0.0:26                  0.0.0.0:*                   LISTEN      14085/xinetd
[root@server /]#
--------------------------------------------

To utilize this functionality, you need to setup your mail client on your computer to use the mail address from the server, like test@yourdomain.com  or any of the other addresses belonging to yourdomain.com domain, not example@gmail.com, and to send mails over the server through port 26.

No ISP should be blocking port 25 ever, as it's a port that mandatorily needs to be open as per RFC-standards, and disabling it is a really bad, improper and user-unfriendly (and not very successful) way of attempting to block spam.

I thank you very much for your help, is a great forum and I will definitely come here to ask something or to help others.
Now I can receive email from my server and I'm very glad.


Quote
WHM is "Web Hosting control panel system"
That's almost certainly incompatible with SME server, and you will have numerous problems if you attempt to use WHM and SME server together.
So can I manage the host without a control system , by console is hard.

P.S. Sorry my English , is my 3'rd language .

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
I have a virtuozzo VPS on CentOS , and I instaled Kloxo to manage easier the host.

It sounds like you are not running SME server software, so the advice on this forum will not help you.

SME server software is designed to run on a PC in your own home or office, and isn't designed to run on hosted VPSs.