Archive for the 'cPanel Support' Category

SBDavid

Exim exiqgrep utility

Exim exiqgrep utility

Some Examples

For getting the message id of mails in the queue in which the receiving domain is yahoo.com

exiqgrep -i -r yahoo.com

in which display option is i and selection criteria is r

For getting the message id of frozen messages

exiqgrep -i -z

Try and test with other options you can handle the exim mail queue easily with this utility

Configure exim to listen on additional ports

Exim is a popular Message Transfer Agent (MTA) used on Unix systems. By default Exim will be listening on port 25. To make Exim listening on other additional port, say 26, add the following line to /etc/exim.conf.

daemon_smtp_ports = 25 : 26

After this restart Exim using the following commands.

service exim restart
or
/etc/init.d/exim restart

This will make Exim to listen on ports 25 as well as 26. Make sure you open the port 26 in the server firewall.

SBDavid

Horde login error

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 above script will reset all the quotas for the Cpanel* users.

Mail Error message: Error 550 The recipient cannot be verified

On servers running cPanel, some times it is found that mail sent to valid users is bounced back by the mail server.

The bounce back messages will be similar to the following.

PERM_FAILURE: SMTP Error (state 9): 550-”The recipient cannot be verified.
Please check all recipients of this550 message to verify they are valid.

If the email account does indeed exist, then it is need to run the following commands to correct the issue.

/scripts/updateuserdomains
/scripts/mailperm

Also check the /etc/localdomains file and verify that the domain name is present. Also verify that the DNS line in the /var/cpanel/user/username contains the domain as well.

SBDavid

Pgsql query failed

Pgsql query failed

If you are getting the error as follows.

Warning: pg_query() [function.pg-query]: Query failed: ERROR: permission denied for relation cg_ref_codes in /home/user/public_html/xxx.php on line 48
Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /home/user/public_html/xxxx.php on line 50

Resolution

1. Open the pgsql configuration file.

vi /var/lib/pgsql/data/pg_hba.conf
local all all md5
host all all 127.0.0.1 255.255.255.255 md5

The file need to change as follows
local all all md5
host all all 127.0.0.1 255.255.255.255 password

2. Save the file and restart pgsql.

/etc/init.d/postgresql stop
/etc/init.d/postgresql start

« Prev - Next »