Archive for December 12th, 2011

Quit from shell without saving into history

There are many instances when we want to quit from shell without saving any command in history. We might have run by mistake some rookie command and you dont want to disclose it to others. kill -9 $$ will do the needful as $$ will provide the PID of the current shell.    

Local port range sysctl tuning for high bandwidth Linux servers

Most of the Linux distributions specify local port range from 16384 to 65536 and this may be too low for very high bandwidth and busy boxes, let’s say SMTP, Hosting, POP3/Imap and Proxy servers. You can adjust this setting by editing /etc/sysctl.conf file and replacing the default: net.ipv4.ip_local_port_range = 16384 65536 with net.ipv4.ip_local_port_range = 1024 65536 […]

Squirrelmail error – cannot sending mails

If you are getting an error while sending mails using the webmail client ‘Squirrel mail’; Server replied: 451 Temporary local problem – please try later. SOLUTION  This error is due to the missing entry of the recipient domain in ‘/etc/localdomains’. $ vi   /etc/localdomains ( Add the domain name in this file) Then restart the Exim […]

Upgrading the SquirrelMail

1.  Backup old install: Make a backup of your current SquirrelMail directory. For example the httpd document directory is /home/httpd/html, that your SquirrelMail install is located at /home/httpd/html/squirrelmail-1.2.6, and that your new SM version is 1.4.0. Substitute version numbers and names as required. $ cd /home/httpd/html $ cp -Rp squirrelmail-1.2.6 squirrelmail-1.2.6.bak 2.  Unarchive new SquirrelMail: […]

DB Error: connect failed

While login through horde, you may sometimes get the following error. ERROR “A fatal error has occurred: DB Error: connect failed [line 411 of /usr/local/cpanel/base/horde/kronolith/lib/Driver/sql.php] Details have been logged for the administrator.” One of the reason for this error is due to missing horde DB from Mysql. RESOLUTION $> mysql < /usr/local/cpanel/base/horde/scripts/sql/create.mysql.sql Then run $> […]

Horde Error, Could not connect to database for SQL SessionHandler

1) Open the horde configuration file. cd /usr/local/cpanel/base/horde/config vi conf.php 2) Change the following two lines from: $conf[’sql’][’hostspec’] = ‘localhost’; $conf[’sessionhandler’][’params’][’hostspec’] = ‘localhost’; To: $conf[’sql’][’hostspec’] = ‘localhost:/var/lib/mysql/mysql.sock’; $conf[’sessionhandler’][’params’][’hostspec’] = ‘localhost:/var/lib/mysql/mysql.sock’;  

IMAP Login Errors in Horde

When we login to Horde we get IMAP Authentication errors as below Notice: (null)(): Retrying LOGIN authentication after AUTHENTICATE LOGIN failed (errflg=1) in Unknown on line 0 Notice: (null)(): Retrying LOGIN authentication after AUTHENTICATE LOGIN failed (errflg=1) in Unknown on line 0 Notice: (null)(): Can not authenticate to IMAP server: AUTHENTICATE LOGIN failed (errflg=2) in […]

Horde login error

If you are getting Horde login error in Cpanel like : Warning: Unknown: write failed: Disk quota exceeded (122) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/cpanel/userhomes/cpanelhorde/sessions) in Unknown on line 0 Then try this Cpanel script : /scripts/autorepair phpapps_owner_fix The […]

IMAP Error (inbox.lock)

To troubleshoot the IMAP error(Inbox lock errors) while accessing mailbox via any webmail clients(Horde, SquirrelMail, NeoMail, Round Cube etc.): The error will be shown as below, Connection dropped by IMAP server ERROR: Connection dropped by IMAP server. Query: SELECT “INBOX” Reason Given: Unable to open this mailbox. The error usually occurs when there is inbox.lock […]

Spamd failing

If you find the “spamd” failing error  on an exim restart. root@server [~]# /etc/init.d/exim restart Shutting down exim: [ OK ] Shutting down antirelayd: [ OK ] Shutting down spamd: [ FAILED ] Starting exim-26: [ OK ] Starting exim: [ OK ] Starting exim-smtps: [ OK ] Starting antirelayd: [ OK ] Solution When […]