MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: EndErr on 2016-01-19, 07:29:21

Title: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 07:29:21
Installed new v7, but mail not working.
From time to time i get in Maillog:
Code: [Select]
Jan 18 23:40:28 vhsrv send: status: local 0/10 remote 2/60
Jan 18 23:40:28 vhsrv send: delivery 26: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Jan 18 23:40:28 vhsrv send: status: local 0/10 remote 1/60
Jan 18 23:40:28 vhsrv send: delivery 25: deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/
Jan 18 23:40:28 vhsrv send: status: local 0/10 remote 0/60
Jan 18 23:40:34 vhsrv pop3: tcpserver: ok 4266 :::ffff:192.168.1.102:110 :::ffff:36.39.112.172::33367


Code: [Select]
# sh /script/sysinfo; yum list *-toaster; hostname -s; hostname -f;cat /etc/hosts
A. Kloxo-MR: 7.0.0.b-2016011401
   - Web: hiawatha-10.0.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-2.w6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: vhsrv.ioda.eu
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Httpd: --uninstalled--
      - PHP Type: [unknown]
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --used--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          3832       2215       1616          0        182       1313
   -/+ buffers/cache:        720       3111
   Swap:         3967          0       3967
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/mapper/vg_vhsrv-lv_root
                          50G  7.4G   40G  16% /

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

* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
        (importance after Kloxo-MR update)

Installed Packages
autorespond-toaster.x86_64             2.0.5-1.4.2.mr.el6            @mratwork-release-version-arch
courier-authlib-toaster.x86_64         0.59.2-1.3.13.mr.el6          @mratwork-release-version-arch
courier-imap-toaster.x86_64            4.1.2-1.3.18.mr.el6           @mratwork-release-version-arch
daemontools-toaster.x86_64             0.76-1.3.7.mr.el6             @mratwork-release-version-arch
ezmlm-toaster.x86_64                   0.53.324-1.3.9.mr.el6         @mratwork-release-version-arch
libdomainkeys-toaster.x86_64           0.68-1.3.7.mr.el6             @mratwork-release-version-arch
libsrs2-toaster.x86_64                 1.0.18-1.3.7.mr.el6           @mratwork-release-version-arch
maildrop-toaster.x86_64                2.0.3-1.3.9.mr.el6            @mratwork-release-version-arch
qmail-pop3d-toaster.x86_64             1.03-1.3.55.mr.el6            @mratwork-release-version-arch
qmail-toaster.x86_64                   1.03-1.3.55.mr.el6            @mratwork-release-version-arch
ucspi-tcp-toaster.x86_64               0.88-1.3.12.mr.el6            @mratwork-release-version-arch
vpopmail-toaster.x86_64                5.4.33-1.4.4.mr.el6           @mratwork-release-version-arch
Available Packages
control-panel-toaster.noarch           0.5-1.4.1.mr                  mratwork-release-neutral-noarch
send-emails-toaster.noarch             0.5-1.4.1.mr                  mratwork-release-neutral-noarch
simscan-toaster.x86_64                 1.4.0-1.4.8.mr.el6            mratwork-release-version-arch
spamassassin-toaster.x86_64            3.4.0-1.4.6.mr.el6            mratwork-release-version-arch
squirrelmail-toaster.noarch            1.4.20-1.3.18.mr              mratwork-release-neutral-noarch
vhsrv
vhsrv.domain.tld
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
### begin - add by Kloxo-MR
192.168.1.102 vhsrv.domain.tld vhsrv
2X7.X2Y.27Y.X54 vhsrv.domain.tld vhsrv
### end - add by Kloxo-MR
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 07:33:22
Try reinstall 'yum reinstall *-toaster -y; sh /script/fixmail-all; sh /script/restart-mail -y'.

Better add domain first.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 08:21:41
domain is added already
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 08:32:48
Make sure your provider not blocked port smtp. Try 'telnet localhost 25' (also try with change 'localhost' with real public IP).
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 09:09:40
when trying
Code: [Select]
yum reinstall *-toaster -y; sh /script/fixmail-all; sh /script/restart-mail -yit stuck on  'fixmail-all', what's wrong?
Code: [Select]
Change qmail.init
--------------------------
Fix '89' uid to vpopmail:vchkpw ownership
--------------------------
Set '/home/vpopmail/bin/vchkpw' for root:root ownership
--------------------------
Set '/home/vpopmail' for 755 permissions
Set '/home/vpopmail/domains' for 755 permissions
Set '/home/lxadmin' for 755 permissions
Set '/home/lxadmin/mail' for 755 permissions
Set '/home/lxadmin/mail/domains' for 755 permissions
Set '/home/vpopmail/bin/vchkpw' for 4751 permissions
--------------------------
Set '/var/qmail/control/locals' with 'localhost'
Set '/var/qmail/control/me' with 'vhsrv.ioda.eu'
Set '/var/qmail/control/defaultdomain' with 'vhsrv.ioda.eu'
Set '/var/qmail/control/defaulthost' with 'vhsrv.ioda.eu'
--------------------------
 Fix Qmail cdb
Reloaded /etc/tcprules.d/tcp.smtp
Reloaded /var/qmail/control/badmimetypes.cdb
Reloaded /var/qmail/control/badloadertypes.cdb
--------------------------
Using qmail-toaster - fix '/home/vpopmail/etc/vpopmail.mysql'
---- and nothing after for an hour ---
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 10:51:56
Try reinstall KLoxo-MR with 'sh /script/upcp -y'.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 12:16:22
did reinstalling kloxo,
now I get mysql not starting
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 12:40:06
Change 'skip-innodb' to '#skip-innodb' inside '/etc/my.cnf.d/server.cnf' and then restart with 'sh /script/restart-mysql -y'.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 12:42:04
another error on sh cleanup:
Code: [Select]
- Create database interface template (Forced)
ERROR 1045 (28000): Access denied for user 'kloxo'@'localhost' (using password: YES)
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 12:47:11
there is no 'skip-innodb' there, so left as is
now mysql don't show any problems, everything restarts well except that error
Code: [Select]
- Create database interface template (Forced)
ERROR 1045 (28000): Access denied for user 'kloxo'@'localhost' (using password: YES)
and now can't login to panel
and another one (came from fix-all):
Code: [Select]
Fixing FTP User
Unable to open the passwd file: No such file or directory
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 13:07:27
Inform here 'dir -l /etc/my.cnf.d' and 'cat /etc/my.cnf'.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 16:56:08
These are errors that shows on 'sh cleanup':
Code: [Select]
...
Get Kloxo License info
- Get process
- Create database interface template (Forced)
ERROR 1045 (28000): Access denied for user 'kloxo'@'localhost' (using password: YES)
...
Fix services
- Fix dns services
- Fix webcache services
- Fix web services
- Fix php services
- Fix mail-all services
- Fix ftp-all services
Unable to open the passwd file: No such file or directory
Fixing Hiawatha service
...

Code: [Select]
[root@vhsrv script]# dir -l /etc/my.cnf.d/
total 24
-rw-r--r-- 1 root root  295 Dec 16 18:05 client.cnf
-rw-r--r-- 1 root root 3886 Jan 19 13:32 my.cnf
-rw-r--r-- 1 root root  232 Dec 16 18:05 mysql-clients.cnf
-rw-r--r-- 1 root root  834 Jan 19 14:10 server.cnf
-rw-r--r-- 1 root root  833 Jan 19 12:52 server.cnf.rpmsave
-rw-r--r-- 1 root root  285 Dec 16 18:05 tokudb.cnf
Code: [Select]
[root@vhsrv script]# cat /etc/my.cnf
#
# This group is read both both by the client and the server
# use it for options that affect everything
#
[client-server]

#
# include all files from the config directory
#
!includedir /etc/my.cnf.d
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-19, 17:03:43
Didn't found server.cnf file in /etc/my.cnf.d directory ?.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-19, 17:27:44
it is there, take a look again
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-20, 17:40:54
I've gave up so I've reinstalled the system.
No I've got a lot of notifications:
Code: [Select]
Port:21
Action sh /script/restart-ftp --force>/dev/null 2>&1
How to fix that?
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-21, 01:17:35
Go to 'ftp configure' and click update.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-21, 10:15:20
Still coming, did not fix the notifications.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-21, 10:22:11
Did you update Kloxo-MR to 2016011904?.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-21, 11:19:31
it's a fresh install from 2 days, does it needs update?
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-21, 11:20:40
Check version with 'sh /script/sysinfo' or 'sh /script/version-full'.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-21, 11:27:17
Code: [Select]
# sh /script/sysinfo
A. Control Panel:
   - Kloxo-MR: 7.0.0.b-2016011904
   - Web: hiawatha-10.0.0-f.6.mr.el6.x86_64
   - PHP: php54s-5.4.45-2.w6 (cgi mode)
B. Plateform:
   - OS: CentOS release 6.7 (Final) x86_64
   - Hostname: vhsrv0.ioda.eu
C. Services:
   1. MySQL: MariaDB-server-10.0.23-1.el6.x86_64
   2. PHP:
      - Branch: php54-cli-5.4.45-1.ius.el6.x86_64
      - Used: --Use PHP Branch--
   3. Httpd: httpd-2.2.31-1.mr.el6.x86_64
      - PHP Type: suphp
   4. Lighttpd: --uninstalled--
   5. Hiawatha: --unused--
   6. Nginx: --uninstalled--
   7. Cache: --uninstalled--
   8. Dns: bind-9.9.7-1.mr.el6.x86_64
   9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
                total       used       free     shared    buffers     cached
   Mem:          3832       2033       1798          0         81       1592
   -/+ buffers/cache:        360       3472
   Swap:         4975          0       4975
E. Disk Space:
   Filesystem            Size  Used Avail Use% Mounted on
   /dev/mapper/vg_vhsrv0-lv_root
                          50G  7.3G   40G  16% /

Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-21, 12:09:21
For update 2016011904, you can see 'enable SSL/TLS' in 'FTP Configure'. So, disable it and click update.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-21, 19:05:05
still comming
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-22, 02:33:31
still comming
What's you mean?.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-22, 08:00:28
notifications are coming from the server
Code: [Select]
Port: 21
Action: sh /script/restart-ftp --force >/dev/null 2>&1

How to fix?
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-22, 08:10:58
notifications are coming from the server
Code: [Select]
Port: 21
Action: sh /script/restart-ftp --force >/dev/null 2>&1

How to fix?
1. In 'ftp configure', click update
2. In 'watchdog', click 'ftp' and then change '__driver_xinetd' to '__driver_ftp'
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-22, 19:12:04
it already set to __driver_ftp
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-23, 02:19:36
Inform here 'dir -l /etc/xinetd.d'
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-23, 09:58:05
Code: [Select]
]# dir -l /etc/xinetd.d
total 48
-rw-------. 1 root root 1157 Oct  7  2013 chargen-dgram
-rw-------. 1 root root 1159 Oct  7  2013 chargen-stream
-rw-------. 1 root root 1157 Oct  7  2013 daytime-dgram
-rw-------. 1 root root 1159 Oct  7  2013 daytime-stream
-rw-------. 1 root root 1157 Oct  7  2013 discard-dgram
-rw-------. 1 root root 1159 Oct  7  2013 discard-stream
-rw-------. 1 root root 1148 Oct  7  2013 echo-dgram
-rw-------. 1 root root 1150 Oct  7  2013 echo-stream
-rw-r--r--  1 root root  332 Dec 22 20:52 rsync
-rw-------. 1 root root 1212 Oct  7  2013 tcpmux-server
-rw-------. 1 root root 1149 Oct  7  2013 time-dgram
-rw-------. 1 root root 1150 Oct  7  2013 time-stream
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-23, 10:08:41
Hmm. Still receive notification related to ftp?.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-26, 08:01:10
still receiving, no solution to fix yet
any ideea?
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-26, 08:31:21
This issue happen in master or slave?.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-26, 10:18:36
Master, single server
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: MRatWork on 2016-01-26, 10:24:52
Try disable 'status' for ftp in 'watchdog'.
Title: Re: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection
Post by: EndErr on 2016-01-29, 07:47:32
I think that helped, but not sure if it is a good idea for disabling statuses.