Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-05-15, 21:24:50

Author Topic: Sending mail error Sorry,_I_wasn't_able_to_establish_an_SMTP_connection  (Read 4753 times)

0 Members and 1 Guest are viewing this topic.

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Hi ,

Clean install kloxo 7 on Centos . None of the remote mail goes off from server (local works):

WHEN SENDING TO LOCAL - ALL GOES WELL :
Code: [Select]
Jun 15 12:04:43 kampanj send: new msg 795860
Jun 15 12:04:43 kampanj send: info msg 795860: bytes 4229 from [not showing on forum - mail goes here] qp 25197 uid 7798
Jun 15 12:04:43 kampanj send: starting delivery 116: msg 795860 to local [not showing on forum - local mail goes here]
Jun 15 12:04:43 kampanj send: status: local 1/10 remote 0/60
Jun 15 12:04:43 kampanj send: delivery 116: success: did_0+0+1/
Jun 15 12:04:43 kampanj send: status: local 0/10 remote 0/60
Jun 15 12:04:43 kampanj send: end msg 795860

WHEN SENDING REMOTE:

Code: [Select]
Jun 15 12:05:24 kampanj send: new msg 795860
Jun 15 12:05:24 kampanj send: info msg 795860: bytes 4228 from [not showing on forum - mail goes here] qp 25225 uid 7798
Jun 15 12:05:24 kampanj send: starting delivery 117: msg 795860 to remote [my gmail addres]@gmail.com
Jun 15 12:05:24 kampanj send: status: local 0/10 remote 1/60
Jun 15 12:10:25 kampanj send: delivery 117: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Jun 15 12:10:25 kampanj send: status: local 0/10 remote 0/60

IPTABLES - switched off
TELNET works fine (telnet smtp.gmail.com 25)

Tried :
1. Updating all to final version
2. yum reinstall *-toaster -y; sh /script/fixmail-all; sh /script/restart-mail -y
3. sh /script/cleanup
4. reboot

Nothing helps :( Please help.
« Last Edit: 2016-06-15, 16:13:09 by BigWeb.EU »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Inform your 'sh /script/sysinfo'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Code: [Select]
[root@kampanj log]# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016061502
   - Web: hiawatha-10.3.0-f.1.mr.el6.x86_64
   - PHP: php54s-5.4.45-1.ius.el6 (fpm mode)
B. Plateform:
   - OS: CentOS release 6.8 (Final) x86_64
   - Hostname: kampanj.mydomain.xx
C. Services:
   1. MySQL: MariaDB-server-10.0.25-1.el6.x86_64
   2. PHP:
      - Installed:
        - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
        - Multiple:
          * php53m-5.3.29-1.ius.el6
          * php56m-5.6.21-1.ius.el6
      - Used: php56m-fpm
      - Multiple: disable
   3. Web Used: apache
     - Hiawatha: hiawatha-10.3.0-f.1.mr.el6.x86_64
     - Lighttpd: lighttpd-1.4.39-3.el6.x86_64
     - Nginx: nginx-1.11.1-1.el6.ngx.x86_64
     - Apache: httpd-2.2.31-1.mr.el6.x86_64
       - PHP Type: php-fpm_event
       - Secondary PHP: Off
   4. WebCache: none
     - ATS: --uninstalled--
     - Squid: --uninstalled--
     - Varnish: --uninstalled--
   5. Dns: bind
     - Bind: bind-9.9.7-1.mr.el6.x86_64
     - DJBDns: --uninstalled--
     - NSD: --uninstalled--
     - PowerDNS: --uninstalled--
     - Yadifa: --uninstalled--
   6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - pop3/imap4: courier-imap-toaster-4.1.2-1.3.19.mr.el6.x86_64
      - spam: bogofilter-1.2.4-1.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:           996        799        197          0         53        404
   -/+ buffers/cache:        341        655
   Swap:            0          0          0
E. Disk Space:
   Filesystem      Size  Used Avail Use% Mounted on
   /dev/vda1        15G  3.6G   11G  26% /


*** Process Time: 00:00:00:01.1622 (dd:hh:mm:ss:xxxxxx) ***

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)
« Last Edit: 2016-06-15, 20:19:01 by BigWeb.EU »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Read this already, it doesnt seem there a DNS or relove issue - all works from telnet , thus resolved fine (also mial is not sending from both php mail() and roundcube to ANY adress except locally hosted ...

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Just in case - as this is a VPS , and it got floating IP , i have TWO eth on system :
Code: [Select]
eth0      Link encap:Ethernet  HWaddr FA:16:3E:28:CF:D5
          inet addr:10.2.0.4  Bcast:10.2.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f816:3eff:fe28:cfd5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:139383 errors:0 dropped:0 overruns:0 frame:0
          TX packets:141512 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:40979689 (39.0 MiB)  TX bytes:148464877 (141.5 MiB)

eth0:1    Link encap:Ethernet  HWaddr FA:16:3E:28:CF:D5
          inet addr:[MY PROPER EXTERNAL IP HERE xx.xx.xx.xx]  Bcast:[cast IP here xx.xx.xx.xx]  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

could this be an issue ?

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Another thing i found - when trying to flush the cache - i see with netstat :

Code: [Select]
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      1 [myipxx.xx.xx.xx]:39995         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:58465         lh-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:33079         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:55779         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:50432         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:41499         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:47799         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:47798         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:51807         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:51327         lh-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:41375         pa-in-f26.1e100.net:smtp    SYN_SENT
tcp        0      1 [myipxx.xx.xx.xx]:48109         pa-in-f26.1e100.net:smtp    SYN_SENT

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Find out maillog in 'file manager'
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
yes, i posted it in first message :

Code: [Select]
Jun 15 19:31:12 kampanj smtp: 30986 > 221 kampanj.myhost.xx - Welcome to Qmail?
Jun 15 19:31:12 kampanj smtp: 30986 > [EOF]
Jun 15 19:36:02 kampanj smtp: tcpserver: status: 1/100
Jun 15 19:36:02 kampanj smtp: tcpserver: pid 31015 from 127.0.0.1
Jun 15 19:36:02 kampanj smtp: tcpserver: ok 31015 kampanj.myhost.xx:::ffff:127.0.0.1:25 :::ffff:127.0.0.1::39108
Jun 15 19:36:02 kampanj smtp: 31015 < [EOF]
Jun 15 19:36:02 kampanj smtp: 31015 > 220 kampanj.myhost.xx - Welcome to Qmail ESMTP?
Jun 15 19:36:02 kampanj smtp: 31015 > [EOF]
Jun 15 19:36:02 kampanj smtp: tcpserver: end 31015 status 256
Jun 15 19:36:02 kampanj smtp: tcpserver: status: 0/100
Jun 15 19:38:27 kampanj send: starting delivery 88: msg 797172 to remote someemail@gmail.com
Jun 15 19:38:27 kampanj send: status: local 0/10 remote 1/60
Jun 15 19:38:27 kampanj send: delivery 88: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Jun 15 19:38:27 kampanj send: status: local 0/10 remote 0/60
Jun 15 19:41:03 kampanj smtp: tcpserver: status: 1/100
Jun 15 19:41:03 kampanj smtp: tcpserver: pid 31101 from 127.0.0.1
Jun 15 19:41:03 kampanj smtp: tcpserver: ok 31101 kampanj.myhost.xx:::ffff:127.0.0.1:25 :::ffff:127.0.0.1::39118
Jun 15 19:41:03 kampanj smtp: 31101 < [EOF]
Jun 15 19:41:03 kampanj smtp: 31101 > 220 kampanj.myhost.xx - Welcome to Qmail ESMTP?
Jun 15 19:41:03 kampanj smtp: 31101 > [EOF]
Jun 15 19:41:03 kampanj smtp: tcpserver: end 31101 status 256
Jun 15 19:41:03 kampanj smtp: tcpserver: status: 0/100
Jun 15 19:41:08 kampanj send: starting delivery 89: msg 797092 to remote otheremail@gmail.com
Jun 15 19:41:08 kampanj send: status: local 0/10 remote 1/60
Jun 15 19:41:08 kampanj send: delivery 89: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Jun 15 19:41:08 kampanj send: status: local 0/10 remote 0/60

No other messages :(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
The problem is you want send to remote but qmail think it's as local.

Some questions:
1. Your hostname is 'kampanj.viasat.se'. Is 'viasat.se' your owned and already exists in current server?
2. Are all domains using primary IP (10.x) as mail IP in DNS?
3. Did you send via webmail?
« Last Edit: 2016-06-15, 20:11:59 by MRatWork »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
Mustafa could you please remove the real domain name (change it to mydomain.xx) - i dont want it to be seen here :) Thanks

1. Your hostname is 'kampanj.mydomain.xx'.
YES

2. Is 'mydomain.xx' your owned and already exists in current server?
NO (this is just a subproject with own VPS)

3. Are all domains using primary IP (10.x) as mail IP in DNS?
NO - Are you talking about MX record?

4. Did you send via webmail?
NO PHP mail() sender

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
I am just taken hostname from sysinfo.

Try create website for kampanj.mydomain.xx in current server where add A record for 'kampanj.mydomain.xx', 'ns1.kampanj.mydomain.xx' and 'ns2.kampanj.mydomain.xx' also NS record for 'kampanj.mydomain.xx' in dns setting of 'mydomain.xx' (purpose: dns delegate kampanj.mydomain.xx to current server).

Try using primary IP as 'MX record' for all domains in current server.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline BigWeb.EU

  • Valuable Member
  • *
  • Posts: 114
  • Karma: +0/-0
    • View Profile
This didnt work :( Another IP is a local IP, so its not external , and thus cant be used :( Maybe any other thoughts ?

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.037 seconds with 19 queries.

web stats analysis