Posts Tagged ‘cPanel/WHM’

You will get following error after running /scripts/fixquotas and showing unlimited disk space in WHM >> Main >> List account.

root@server [/]# /scripts/fixquotas –force
Installing Default Quota Databases……Done
Linux Quota Support
Quotas are now on
Resetting quota for user23 to 1000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Resetting quota for user2 to 1000 M
edquota: Quota file not found or has wrong format.
No filesystems with quota detected.
Resetting quota for dates to 1000 M
Resetting quota for userq to 1000 M
edquota: Quota file not found or has wrong format.

Just follow the following steps top fix the issue

root@server [/]#touch /home/quota.user
root@server [/]#touch /home/quota.group
root@server [/]#chmod 600 /home/quota.user
root@server [/]#chmod 600 /home/quota.group

Run Following command now

root@server [/]#quotacheck -acugv

It may give you following error then run following command

Error is:

root@server [/]# quotacheck -acugv
quotacheck: Cannot remount filesystem mounted on / read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.

Command is:

root@server [/]# quotacheck -acugvm
quotacheck: Scanning /dev/simfs [/] quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
quotacheck: Cannot stat old user quota file: No such file or directory
quotacheck: Cannot stat old group quota file: No such file or directory
done
quotacheck: Checked 33478 directories and 368211 files
quotacheck: Old file not found.
quotacheck: Old file not found.

Now run

root@server [/]#/scripts/fixquotas –force

Enjoy. Errors gone now.

You can set the mail filter from your cPanel.Please refer the following steps to set the filter.

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option

This option is also very useful when your clients domain marked as Spam in your mail box.For example if email came from example.com marked as Spam email then you can set the filter in following manner to avoid Spam mail problem for your domain example.com

1] Go to cPanel
2] Go to Mail >> email filtering
3] Click on Add filter option
4] Then as per your email headers you can set the filter here
5] Destination should be allow
6] Click on activate option.

So that all the emails from example.com not be treated as spam.

The message-IDs that Exim uses to refer to messages in its queue are mixed-case alpha-numeric, and take the form of: xXX-YYYY-ZZ. Most commands related to managing the queue and logging use these message-ids.
There are three — count ’em, THREE — files for each message in the spool directory. If you’re working in these files by hand, instead of using he appropriate exim commands as detailed below, make sure you get them all, and don’t leave Exim with long list of messages in the queue.

Files in /var/spool/exim/msglog contain logging information for each message and are named the same as the message-id.

Files in /var/spool/exim/input are named after the message-id, plus a suffix denoting whether it is the envelope header (-H) or message data (-D).

These directories may contain further hashed subdirectories to deal with larger mail queues, so don’t expect everything to always appear directly on the top /var/spool/exim/input or /var/spool/exim/msglog directories; any searches or greps will need to be recursive. See if there is a proper way to do what you’re doing before working directly on the spool files.

Below are some useful commands for managing an Exim server::

1) Print a count of the messages in the queue:

root@localhost# exim -bpc

2) Print a listing of the messages in the queue (time queued, size, message-id, sender, recipient):

root@localhost# exim -bp

3) Print a summary of messages in the queue (count, volume, oldest, newest, domain, and totals):

root@localhost# exim -bp | exiqsumm

4) Generate and display Exim stats from a logfile:

root@localhost# eximstats /path/to/exim_mainlog

5) Generate and display Exim stats from a logfile, with less verbose output:

root@localhost# eximstats -ne -nr -nt /path/to/exim_mainlog

6) Generate and display Exim stats from a logfile, for one particular day:

root@localhost# fgrep 2007-02-16 /path/to/exim_mainlog | eximstats

7) Print what Exim is doing right now:

root@localhost# exiwhat

8 ) To delete frozen emails

exim -bp | awk ‘$6~”frozen” { print $3 }’ | xargs exim -Mrm

9) To deliver emails forcefully

exim -qff -v -C /etc/exim.conf &

10) To check the port and exim status

#exiwhat

Receving emails syslogd failed every 5 minutes

syslogd failed @ Fri Dec 25 09:12:32 2009. A restart was attempted automagically.

Check logs

-bash-3.2# tail -f /usr/local/cpanel/logs/tailwatchd_log
Notification => test@gmail.com via EMAIL [level => 1]
Notification => test@gmail.com via EMAIL [level => 1]
Notification => test@gmail.com via EMAIL [level => 1]

Check if syslogd is installed or not
-bash-3.2# /etc/init.d/syslog restart
-bash: /etc/init.d/syslog: No such file or directory

Install sysklogd

-bash-3.2# yum install sysklogd

Once done check by restarting the service.

-bash-3.2# /etc/init.d/syslog restart
Shutting down kernel logger: [FAILED]
Shutting down system logger: [FAILED]
Starting system logger: [ OK ]
Starting kernel logger: [ OK ]

Check the logs again

-bash-3.2# tail -f /usr/local/cpanel/logs/tailwatchd_log

This should resolve the issue.

Login to the server through ssh and run this cmd

/usr/local/cpanel/cpkeyclt

This cmd will update the cPanel license.