Archive for May, 2010

info [rebuildhttpdconf] User ‘username’ data set has no ‘main_domain’ key.

May 3rd, 2010

Error:

info [rebuildhttpdconf] User 'noothna' data set has no 'main_domain' key.

Check /var/cpanel/userdata/username/main and main.cache to verify it has the necessary content. Check another domain’s main and main.cache accounts to verify what you should be seeing there.

Share

Fatal! Write Failure to /etc/valiases

May 3rd, 2010

Fatal! Write Failure: /etc/valiases/yourdomain.tld. Ignore any messages of success this can only result in failure!

First, verify that your domain exists (as a file) in /etc/valiases, and that it has “username:mail” permissions.

# touch /etc/valiases/yourdomain.tld
# chown username:mail /etc/valiases/yourdomain.tld

Share

Exim Guide

May 3rd, 2010

I could write up a post on exim commands, but it would take some time, and “Bradthemad” has already done it. With that, the exim cheatsheet.

Share

Where are the Mail Filters Located?

May 3rd, 2010

Account level filters:
/home/user/.filter

User Level Filters:
/home/user/.cpanel/filter.yaml

Share

How to Restart Mailman

May 3rd, 2010

Currently, cPanel does not include a restartsrv_mailman script in /scripts. Until they do, you can use the following:

cpanel# /usr/local/cpanel/3rdparty/mailman/bin/mailmanctl -s restart

Or you can restart the cpanel service, but that’s overkill.

Share

How to Install rkhunter

May 3rd, 2010

Change directories and download the source

# cd /usr/src/
# wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.6/rkhunter-1.3.6.tar.gz?use_mirror=cdnetworks-us-1

Extract the source
# tar -xvzf rkhunter-1.3.6.tar.gz

Change into the directory and do a default install
# cd rkhunter-1.3.6
# sh installer.sh --install --layout default

If you want to do a custom install, run the installer to see usage:
# sh installer.sh

Share

cPanel Web Site Hosting by IntraHost