MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: ibuxxi on 2013-03-02, 12:34:22

Title: Webmail not work
Post by: ibuxxi on 2013-03-02, 12:34:22
Hi

allways

Code: [Select]
ERROR (2): fsockopen(): unable to connect to xxxxx.com:143 (Connection refused) (inc/class/class.uebimiau_mail.php:81)


Code: [Select]

A. Kloxo-MR: 6.5.0.c.2013030104

B. OS: CentOS release 6.3 (Final) x86_64

C. Apps:
   1. MySQL: mysql-5.5.29-1.el6.x86_64
   2. PHP: php54-5.4.11-1.ius.el6.x86_64
   3. Httpd: httpd-2.2.23-1.el6.x86_64
   4. Lighttpd: --uninstalled--
   5. Nginx: nginx-1.3.13-1.el6.x86_64
   6. Qmail: qmail-toaster-1.03-1.3.22.mr.el6.x86_64
   7. Dns: bind-9.9.2-2.P1.el6.x86_64

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

E. Memory:
                total       used       free     shared    buffers     cached
   Mem:          7860       4986       2873          0        274       3611
   -/+ buffers/cache:       1100       6760
   Swap:         7999          0       7999

Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 13:30:06
and on AfterLogic

Code: [Select]
Can't connect to mail server
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-02, 13:36:21
Look like because your server using MySQL 5.5 but in /etc/my.cnf have 'skip-innodb'.

Mysql 5.5 (also MariaDB) not permit disable innodb.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 13:48:00
hi

i have innodb

my.cnf
Code: [Select]
[mysqld]
default-storage-engine=innodb
# Settings user and group are ignored when systemd is used (fedora >= 15).
# If you need to run mysqld under different user or group,
# customize your systemd unit file for mysqld according to the
# instructions in http://fedoraproject.org/wiki/Systemd
user=mysql

datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0

# Semisynchronous Replication
# http://dev.mysql.com/doc/refman/5.5/en/replication-semisync.html
# uncomment next line on MASTER
;plugin-load=rpl_semi_sync_master=semisync_master.so
# uncomment next line on SLAVE
;plugin-load=rpl_semi_sync_slave=semisync_slave.so

# Others options for Semisynchronous Replication
;rpl_semi_sync_master_enabled=1
;rpl_semi_sync_master_timeout=10
;rpl_semi_sync_slave_enabled=1

# http://dev.mysql.com/doc/refman/5.5/en/performance-schema.html
;performance_schema


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


query_cache_size = 16 M
tmp_table_size =  16M
max_heap_table_size = 16M
thread_cache_size = 4
innodb_buffer_pool_size = 2G

Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 13:56:12
in kloxo-mr

Mysql 5.5 = MariaDB   ?
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-02, 14:49:11
Read viewtopic.php?f=5&t=1722 (http://forum.mratwork.com/viewtopic.php?f=5&t=1722)
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 15:53:49
Quote from: "MRatWork"
Read viewtopic.php?f=5&t=1722 (http://forum.mratwork.com/viewtopic.php?f=5&t=1722)
i have make all works but

on webmail login allways  "Can't connect to mail server"
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 16:00:01
Dovecot is required  ?

Code: [Select]
/etc/init.d/dovecot restart
-bash: /etc/init.d/dovecot: Datei oder Verzeichnis nicht gefunden
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-02, 16:35:34
Dovecot is alternative for courier-imap. No need dovecot.

Try 'sh /script/fixwebmail'.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 16:51:10
I Try 'sh /script/fixwebmail'

not work "Can't connect to mail server"

Code: [Select]
# sh /script/fixwebmail
Preparing Horde database
- Fix MySQL commands in import files of Horde
- Generating password                                                                                              
- Add password to configuration file                                                                                
- Database installed                                                                                                
Preparing RoundCube database                                                                                        
- Fixing MySQL commands in import files                                                                            
- Generating password                                                                                              
- Add Password to configuration file                                                                                
- Database installed                                                                                                
Preparing T-Dah Database                                                                                            
- No need database                                                                                                  
Preparing Afterlogic database                                                                                      
- Fixing MySQL commands in import files                                                                            
- Generating password                                                                                              
- Add Password to configuration file                                                                                
- Database installed                                                                                                
Preparing Squirrelmail Database                                                                                    
- No need database                                                                                                  
Install Webmail chooser                                                                                            
- Install process                                                                                                  
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-02, 17:25:28
Look like something wrong with your server. Inform here 'dir /etc/rc.d/init.d/' and 'dir /etc/xinetd.d/'
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 17:40:22
Code: [Select]
dir /etc/rc.d/init.d/
auditd     httpd      kloxo         named       nginx    restorecond  single     svnserve
crond      ip6tables  lvm2-lvmetad  netconsole  php-fpm  rsyslog      snmpd      udev-post
functions  iptables   lvm2-monitor  netfs       qmail    sandbox      snmptrapd  xinetd
halt       killall    mysqld        network     rdisc    saslauthd    sshd
Code: [Select]
dir /etc/xinetd.d/
chargen-dgram   daytime-dgram   discard-dgram   echo-dgram   pureftp        time-dgram
chargen-stream  daytime-stream  discard-stream  echo-stream  tcpmux-server  time-stream
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-02, 18:33:46
Try 'sh /script/fix-qmail-assign; sh /script/fixvpop; sh /script/fixmail; sh /script/fixwebmail'.

There are look like settings not match between one to others.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-02, 21:05:23
I Try 'sh /script/fix-qmail-assign; sh /script/fixvpop; sh /script/fixmail; sh /script/fixwebmail'.
and reboot


but allways not work Try

Can't connect to mail server
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 00:00:45
how can i fix the webmail issue  ?
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 00:41:20
What username you use when login to webmail. For example to roundcube and afterlogic.

In normal condition, run fixwebmail, fixmail and 'qmailctl restart' make mail server running well.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 00:52:27
user@test.com
password
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 00:54:29
i add new email

error
 Alert: mailaccount_add_failed [Error - no authentication database connection. Initial open.]
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 00:58:28
Look like something wrong with your mail rpms.

Inform here 'yum list *-toaster dovecot'.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 00:59:53
Quote from: "ibuxxi"
i add new email

error
 Alert: mailaccount_add_failed [Error - no authentication database connection. Initial open.]
i resett passwords works
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 01:00:38
Code: [Select]
yum list *-toaster dovecot
Loaded plugins: fastestmirror, presto, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror.cs.vt.edu
 * extras: mirror.cs.vt.edu
 * kloxo-mr-epel: ftp.linux.ncsu.edu
 * kloxo-mr-ius: mirror.symnds.com
 * updates: mirror.cs.vt.edu
0 packages excluded due to repository protections
Installed Packages
autorespond-toaster.i686                      2.0.5-1.4.0.mr.el6                      @kloxo-mr-release-version-arch
courier-authlib-toaster.i686                  0.59.2-1.3.10.mr.el6                    @kloxo-mr-release-version-arch
courier-imap-toaster.i686                     4.1.2-1.3.10.mr.el6                     @kloxo-mr-release-version-arch
daemontools-toaster.i686                      0.76-1.3.6.mr.el6                       @kloxo-mr-release-version-arch
ezmlm-toaster.i686                            0.53.324-1.3.7.mr.el6                   @kloxo-mr-release-version-arch
libdomainkeys-toaster.i686                    0.68-1.3.6.mr.el6                       @kloxo-mr-release-version-arch
libsrs2-toaster.i686                          1.0.18-1.3.6.mr.el6                     @kloxo-mr-release-version-arch
maildrop-toaster.i686                         2.0.3-1.3.8.mr.el6                      @kloxo-mr-release-version-arch
qmail-pop3d-toaster.i686                      1.03-1.3.22.mr.el6                      @kloxo-mr-release-version-arch
qmail-toaster.i686                            1.03-1.3.22.mr.el6                      @kloxo-mr-release-version-arch
ripmime-toaster.i686                          1.4.0.6-1.3.6.mr.el6                    @kloxo-mr-release-version-arch
ucspi-tcp-toaster.i686                        0.88-1.3.9.mr.el6                       @kloxo-mr-release-version-arch
vpopmail-toaster.i686                         5.4.33-1.4.1.mr.el6                     @kloxo-mr-release-version-arch
Available Packages
clamav-toaster.i686                           0.97.6-1.4.2.mr.el6                     kloxo-mr-release-version-arch
dovecot.i686                                  1:2.1.15-1.mr.el6                       kloxo-mr-release-version-arch
simscan-toaster.i686                          1.4.0-1.4.0.mr.el6                      kloxo-mr-release-version-arch
spamassassin-toaster.i686                     3.3.2-1.4.3.mr.el6
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 01:04:36
Try 'yum reinstall *-toaster; sh /script/fixmail; sh /script/fixvpop; sh /script/fix-qmail-assign'
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 01:13:36
i Try 'yum reinstall *-toaster; sh /script/fixmail; sh /script/fixvpop; sh /script/fix-qmail-assign'

but Can't connect to mail server     :o
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 01:19:41
Remove qmail-toaster with 'yum remove *-toaster' and then 'yum install *-qmail-toaster; sh /script/cleanup'. And then reboot.

If still not work, reinstall your centos. Except you pay someone to fix your server.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 03:21:05
Code: [Select]
yum install *-qmail-toaster
Loaded plugins: fastestmirror, priorities, protectbase, replace
Loading mirror speeds from cached hostfile
 * base: mirror01.th.ifl.net
 * extras: mirrors.coreix.net
 * kloxo-mr-epel: mirrors.coreix.net
 * kloxo-mr-ius: mirror.rackspace.co.uk
 * updates: mirrors.coreix.net
0 packages excluded due to repository protections
Setting up Install Process
No package *-qmail-toaster available.

Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 03:23:22
Sorry, I mean 'yum install *-toaster'.
Title: Re: Webmail not work
Post by: ibuxxi on 2013-03-03, 03:30:12
someone offers managed service for server with kloxo
Title: Re: Webmail not work
Post by: MRatWork on 2013-03-03, 03:37:13
Quote from: "ibuxxi"
someone offers managed service for server with kloxo
This is up to you.

Kloxo not always the same with Kloxo-MR.

Also, you can see my hostspectra.com for offering.