A great linux stuff website

Monthly Archives: July 2013

Below URL receiving to recipient while sending emails to:
=================
From: MAILER-DAEMON@yahoo.comSubject: Failure NoticeDate: 19 July 2013 19:09:48 BSTTo: algosys@ymail.com Sorry, we were unable to deliver your message to the following address.:Remote host said: 530 5.7.1 Authentication required [MAIL_FROM]
=================

Solution:

Above error properly received to recipient end while sending emails to the server email address, few things need to verify.
1. Verify if client using Both MX record (external & local)
# root@server# host -t mx mydomain.com
mydomain.com mail is handled by 0 external.4004it.co.uk.
mydomain.com mail is handled by 5 mydomain.com.

2. In above situation emails are routed (send-receive) from external host first then route to local server.
3. check the few files for correction. The domain entry correct on all below 3 files.
# /etc/locadomain
# /etc/remotedomain
# /etc/secondarymx
4. Restart exim and csf…!!

Fixed 🙂


Error:
‘Temporary problem please try again later’

1. Check mailogs to trace the exact caused of the issue using ssh
# tail -f /var/log/maillog

Once found the error_logs like:
imapd-ssl: authentication error: Input/output error

# edit
vi /etc/authlib/authdaemonrc
Check for daemons=5 in the above configuration file and make it to 7
# Save and quit the file and restart the courier-imap service
/etc/init.d/courier-imap restart

The Authentication Daemons can also increased through WHM, login to WHM and then go to Main >> Service Configuration >> Mailserver Configuration>>Number of Authentication Daemons and increase the value from 2 to 7.

Try again to send emails and you will see you are all done and the error will be vanished.

=========
So I try some comands:
/scripts/upcp
/scripts/courierup
/scripts/imapup
/scripts/eximup
=========

# ChkServd TCP check failure threshold
Main >> Server Configuration >> Tweak Settings

The number of times a ChkServd TCP check must fail before notification is sent and the service is restarted. On heavily loaded systems these types of service checks fail occasionally, producing erroneous indications that services are down. A setting of 0 will disable all notifications and restarts due to TCP checks.

A value of 3 or higher is recommended for most systems.
==================


Getting below error message in plesk web-mail during receiving the email :-

Delivery to the following recipient failed permanently: test@domain.com Technical details of permanent failure:Google tried to deliver your message, but it was rejected by the server for the recipient domain test@domain.com by mail.domain.com . [192.X.X.X].The error that the other server returned was:553 sorry, that domain isn’t in my list of allowed rcpthosts; no valid cert for gatewaying (#5.7.1)

Error Code : 5.7.1
Permissions problem::
For some reason the sender is not allowed to email this account.

kindly check domain’s domain.com entry were missing under the file “rcpthosts”.
add the domain in above file :-

[root@myserver ]# cd /var/qmail/control
[root@myserver control]# vi rcpthosts

and restart the qmail service and check emails are working fine.
# /etc/init.d/psa restart


CageFS is a virtualized file system and a set of tools to contain each user in its own private virtual space. Each customer will have its own fully functional CageFS, with all the system files, tools, etc. With regards to server security, CageFS which works with cloud Linux is an option.

Value of CageFS :

1. Only safe binaries are available to user
2. User will not see any other users, and would have no way to detect presence of other users & their user names on the server
3. User will not be able to see server configuration files, such as Apache config files
4. User’s will have limited view of /proc file system, and will not be able to see other’ users processes
5. CageFS becomes part of CloudLinux OS and there is no additional charge for it
6. Easy to install and configure CageFS

CageFS detect and configure automatically for all necessary:

• cPanel
• Plesk
• DirectAdmin
• Interworx
• MySQL
• PostgreSQL
• LiteSpeed

Web interface to manage CageFS is available for cPanel, Plesk 10+, DirectAdmin & Interworx. Command line tool would need to be used for other control panels.

CageFS provides for two modes of operations:

1. Enabled for all, except those that are disabled
This is convenient for production operation, where you want all new users to automatically be added to CageFS.
2. Disabled for all, except those that are enabled
This is convenient when you test CageFS, as it allows you to enable it on one by one for your customers.

To start using CageFS you have to select one of the mode of operations.

# /usr/sbin/cagefsctl –enable-all
or
# /usr/sbin/cagefsctl –disable-all
or
# /usr/sbin/cagefsctl –toggle-mode (That will switch the operation mode, preserving current disabled/enabled users)

To enable individual user do:
# /usr/sbin/cagefsctl –enable [username]

To disable individual user:
# /usr/sbin/cagefsctl –disable [username]

To see current mode of operation:
# /usr/sbin/cagefsctl –display-user-mode

CageFS as it Security of server accounts as well as flexibility for own private area.


Sometimes you may encounter with the following error(s) while checking Email Trace option in cPanel:

=============================
Could not connect to mysql: Access denied for user ‘eximstats’@’localhost’ (using password: YES)
==============================
Starting eximstats: DBI connect(‘eximstats:localhost’,’eximstats’,…) failed: Access denied for user: ‘eximstats@localhost’
(Using password: YES) at /usr/local/cpanel/bin/eximstats line 258
=============================

Possible Solution for above error message

The reason of this error, is an inaccuracy between the eximstats password for cPanel and the real password for the MySQL database. To resolve this, you will need to update the password

for the eximstats user in MySQL using the following steps:

1. Initially check if eximstats is enabled at /var/cpanel/cpanel.config.

2. If yes, you need to get the eximstats password from the file /usr/local/cpanel/etc/eximstats.sql. At the top of the file, u will see like that:

REPLACE INTO user (host, user, password)
VALUES (
‘localhost’,
‘eximstats’,
— IMPORTANT: Change this password!
password(‘XXXXXXXXX’)
);

Here, XXXXXXXXXX is the passowrd. Copy that password.

3. Login to mysql through root password and run the following queries:

mysql > update mysql.user set password=password(“XXXXXXXXX”) where user=”eximstats”;
mysql> flush privileges;
msyql> quit



Make sure the MySQL password of Roundcube is correct as follows:

root@myhost[~]$ grep db_dsnw /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php
$rcmail_config[‘db_dsnw’] = ‘mysql://roundcube:xyz@localhost/roundcube’;

The password in this case is set in the config as: “xyz”. See if the hash matches what is set for the user:

Backup the roundcube DataBase
root@myhost[~]$ mysqldump roundcube > /path/to/backup.sql

root@myhost[~]$ mysql

mysql> use mysql;

mysql> select PASSWORD(‘xyz’);

mysql> select * from user where User = ’roundcube’;

mysql> update user set Password = PASSWORD(‘xyz’) where User = ’roundcube’;

* If the above did not fix it, try to update. Update RoundCube.*

GRANT ALL PRIVILEGES on roundcubemail.* TO roundcube@localhost IDENTIFIED BY ‘XEa9LDUEgNE5r4ki’; >> the password should be the same as availabe in > rep roundcube /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.ph

Enter
Bye..

root@myhost[~]$ mysqldump roundcube > /path/to/backup.sql

root@myhost[~]$ /usr/local/cpanel/bin/update-roundcube –force

root@myhost[~]$ mysql roundcube < /path/to/backup.sql


If you’re on a Mac, you could download Gas Mask, a simple and free hosts file manager for Mac OS X Leopard and Snow Leopard.

Apple OS X Snow Leopard & Leopard.

1. Open Terminal
2. Type the following code into Terminal
sudo vi /etc/hosts
3. Press Enter and continue to enter your password
4. Scroll to the end of the file. Type i to insert.
4. Insert your Create Hosting designated IP Address and domain name (also enter the www. domain on a new line). See typical example below.
5. Press esc to exit out of insert, then :wq! and Enter to save.
6. Restart your browser and type in your domain to view your site.

Example HOSTS file

# Host Database
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##

255.255.255.255 broadcasthost
60.234.72.71 example.com
60.234.72.71 http://www.example.com

Apple OSX 10.4.X Tiger

1. Open Terminal
2. In Terminal type, ‘sudo vi /etc/hosts‘, press Enter.
3. Scroll to the end of the file. Type i to insert.
4. Insert your Create Hosting designated IP Address and domain name (also enter the www. domain on a new line). See typical example above.
5. Press esc to exit out of insert, then :wq! and Enter to save.
6. Type ’sudo niload -v -m hosts . All Programs > Accessories.
7. Type ‘lookupd -flushcache’, press Enter.
8. Restart your browser and type in your domain to view your site.

Microsoft Windows 7 & Windows Vista

1. Click Start > All Programs > Accessories.
2. Right click Notepad and select Run as administrator
3. Click Yes if prompted by UAC.
4. Click File > Open.
5. Change the file filter drop down box from Text Documents (*.txt) to All Files (*.*).
6. Browse to C:\Windows\System32\Drivers\etc.
7. Select hosts and click Open.
8. Insert your Create Hosting designated IP Address and domain name (also enter the www. domain on a new line). See typical example above.
9. Close Notepad. Click Save when prompted.
10. Restart your browser and type in your domain to view your site.

Microsoft XP/2003/2000

1. Browse to Start > Programs > Accessories > Notepad.
2. Click File > Open.
3. Browse to C:\Windows\System32\Drivers\etc.
4. Select All Files (*.*) from the Files of Type drop-down menu.
5. Select hosts and click Open.
6. Insert your Create Hosting designated IP Address and domain name (also enter the www. domain on a new line). See typical example above.
7. Close Notepad. Save when prompted.
8. Restart your browser and type in your domain to view your site.