MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: labpros on 2015-04-14, 12:10:44

Title: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 12:10:44
Hi, aftter Update,
mail server is not working. The mail client can not connect to the server. This is the message of the thunderbird
"Sending of message failed.
The message could not be sent because the connection to SMTP server mail......com timed out. Try again or contact your network administrator."

Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 12:24:06
Better inform 'sh /script/sysinfo' before asking.

Did you run 'sh /script/cleanup' after update?.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 12:28:26
Hi Mustafa, thanks for your answer.
This is the reply

Quote
[root@vps ]# sh /script/sysinfo

A. Kloxo-MR: 6.5.0.f-2014013001

B. OS: CentOS release 6.5 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.34-1.el6.x86_64
   2. PHP: php53u-5.3.29-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.29-1.mr.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.7.7-1.el6.ngx.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.38.mr.el6.x86_64
      - with: courier-imap-toaster-4.1.2-1.3.17.mr.el6.x86_64
   7. Dns: bind-9.9.5-1.el6.x86_64

D. Php-type (for Httpd/proxy): suphp_worker

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          2048        598       1449          0          0        242
   -/+ buffers/cache:        356       1691
   Swap:         2048          0       2048
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 12:38:05
Try 'sh /script/fixmail-all; sh /script/restart-mail'. Inform here if you found error.

What's last update before the latest one.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 12:51:36
there are no errors

the last update was probably " Kloxo-MR: 6.5.0.f-2014051901"
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 12:55:55
Inform here what's you see if running 'telnet localhost 21'?
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 12:57:36
Quote
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 5000 allowed.
220-Local time is now 13:57. Server port: 21.
220 You will be disconnected after 15 minutes of inactivity.
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 13:03:17
Sorry, I mean port 25, 587 and 465. So, change 21 to 25 or 587 or 465. Better test all this ports (25, 587 and 465).
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 13:17:16
Quote
[root@vps ]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail - Welcome to Qmail ESMTP
^Cquit
quit
Connection closed by foreign host.
[root@vps ]# telnet localhost 587
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail - Welcome to Qmail ESMTP
quit
221 mail - Welcome to Qmail
Connection closed by foreign host.
[root@vps ]# telnet localhost 465
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
quit



Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 13:21:13
Try reboot and then try again telnet.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 13:27:44
After reboot

Quote
[root@vps ]# telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail - Welcome to Qmail ESMTP
quit
221 mail - Welcome to Qmail
Connection closed by foreign host.
[root@vps ]# telnet localhost 587
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail - Welcome to Qmail ESMTP
quit
221 mail - Welcome to Qmail
Connection closed by foreign host.
[root@vps ]# telnet localhost 465
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
quit
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 13:48:54
anything more????
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 13:56:20
Using/enable iptables/firewall/csf?.

Inform here 'yum list *-toaster'.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 14:08:08
i have setup the firewall as the standard kloxo propose
/etc/init.d/firewall
http://oldwiki.lxcenter.org/How+to+secure+your+Kloxo+with+IPTABLES (http://oldwiki.lxcenter.org/How+to+secure+your+Kloxo+with+IPTABLES)


Quote
[root@vps ]# yum list *-toaster
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.prolocation.net
 * extras: mirror.prolocation.net
 * mratwork-epel: epel.mirror.nucleus.be
 * mratwork-ius-stable: mirror.amsiohosting.net
 * updates: mirrors.supportex.net
0 packages excluded due to repository protections
Installed Packages
autorespond-toaster.x86_64   2.0.5-1.4.0.mr.el6   @mratwork-release-version-arch
courier-authlib-toaster.x86_64
                             0.59.2-1.3.12.mr.el6 @mratwork-release-version-arch
courier-imap-toaster.x86_64  4.1.2-1.3.17.mr.el6  @mratwork-release-version-arch
daemontools-toaster.x86_64   0.76-1.3.6.mr.el6    @mratwork-release-version-arch
ezmlm-toaster.x86_64         0.53.324-1.3.8.mr.el6
                                                  @mratwork-release-version-arch
libdomainkeys-toaster.x86_64 0.68-1.3.6.mr.el6    @mratwork-release-version-arch
libsrs2-toaster.x86_64       1.0.18-1.3.6.mr.el6  @mratwork-release-version-arch
maildrop-toaster.x86_64      2.0.3-1.3.8.mr.el6   @mratwork-release-version-arch
qmail-pop3d-toaster.x86_64   1.03-1.3.38.mr.el6   @mratwork-release-version-arch
qmail-toaster.x86_64         1.03-1.3.38.mr.el6   @mratwork-release-version-arch
ucspi-tcp-toaster.x86_64     0.88-1.3.10.mr.el6   @mratwork-release-version-arch
vpopmail-toaster.x86_64      5.4.33-1.4.3.mr.el6  @mratwork-release-version-arch
Available Packages
autorespond-toaster.x86_64   2.0.5-1.4.2.mr.el6   mratwork-release-version-arch
control-panel-toaster.noarch 0.5-1.4.1.mr         mratwork-release-neutral-noarc                                          h
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.50.mr.el6   mratwork-release-version-arch
qmail-toaster.x86_64         1.03-1.3.50.mr.el6   mratwork-release-version-arch
send-emails-toaster.noarch   0.5-1.4.1.mr         mratwork-release-neutral-noarc                                          h
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-noarc                                          h
ucspi-tcp-toaster.x86_64     0.88-1.3.11.mr.el6   mratwork-release-version-arch
vpopmail-toaster.x86_64      5.4.33-1.4.4.mr.el6  mratwork-release-version-arch


Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 14:10:35
Try disable first with 'chkconfig iptables off; service iptables stop'. Next times, you can enable with 'chkconfig iptables on; service iptables start'
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 14:31:37
I have stopped the firewall service but the problem still exissts, it looks that the 25 port is blocked somehow, but i can send a message by changing the port from 25 to 587.

Any thoughts??
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 14:34:21
Check for open port with 'netstat -lnt'.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 14:37:41
it is listening

Quote
[root@vps ]# netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State
tcp        0      0 0.0.0.0:443                 0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:7776              0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:30080               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:993                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:3266                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:7779                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:995                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:30443               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:587                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:110                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:143                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:17777               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:465                 0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:17778               0.0.0.0:*                   LISTEN
tcp        0      0 176.56.235.116:53           0.0.0.0:*                   LISTEN
tcp        0      0 176.56.235.115:53           0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:53                0.0.0.0:*                   LISTEN
tcp        0      0 127.0.0.1:953               0.0.0.0:*                   LISTEN
tcp        0      0 0.0.0.0:25                  0.0.0.0:*                   LISTEN
tcp        0      0 :::443                      :::*                        LISTEN
tcp        0      0 :::3266                     :::*                        LISTEN
tcp        0      0 :::80                       :::*                        LISTEN
tcp        0      0 :::21                       :::*                        LISTEN
tcp        0      0 ::1:953                     :::*                        LISTEN
Title: Re: Aftter Update, mail server is not working
Post by: MRatWork on 2015-04-14, 14:46:44
Another possible is your provider block certain ports.
Title: Re: Aftter Update, mail server is not working
Post by: labpros on 2015-04-14, 19:00:30
Finally it was that, the provider had close the port 25 trying to reduce spams

Thanks Mustafa, i give a small donate