cpanel

cPanel exporting of settings

I have quite inexpensive 10GB shared hosting used for all my day to day needs. I bought it from a small company that offered it for a very cheap price (edullinenwebhotelli.fi). Just after I bought it, the company got acquired by a bigger hosting service provider (webhotelli.fi). The customer service went down, they didn’t answer on emails aso. However, I still had the cheapest web hosting in the market that had cPanel and open shell access, so I didn’t complain. (The plan pricing went up, too, but they kept my original prices)

However, recently the speed of the servers started to decline, so I started to get worried. First thing I wanted to do is to back up all my current settings from the cPanel. Here’s what I did:

Basic file backup

This is the basic stuff, just transferring all the valuable files with SFTP to your computer. No big deal.

Email forwarder & db backup

This is really easy task to do. Just open the Backups -section in cPanel and download the DB backups, email forwarders and global filters.

Email filters for email accounts

Along the years I developed quite many email filters to get rid of all the spam. However, backing them up wasn’t that easy, and with a bit of googling, I couldn’t find any solution. I started searching clues from the terminal and I found one: ~/etc/<your-domain>/<email-account-name>/filter.yaml

Basically, that’s the file that holds all your account specific email settings in exportable format. Perfect!

Our Knowledgebase Has Been Updated!

Today, we will be adding over 100 articles to the Knowledgebase in order to provide better support and offer educational material to those who wish to learn more about web hosting. We will be continuously adding more articles and keeping the old ones updated, since the world wide web is always evolving. If you want an article that we do not have yet, simply submit a support ticket with “Low” priority asking for it. We will do our best to add every article that is requested.

Please choose wether the article was helpful to you after reading it. This helps us keep track of which articles need to be rewritten or have more information added. We are focused on providing quality service and support, which start with the community.

How to Block Email From a Specific Address on a Cpanel/WHM or Other Web Server Using Exim

While working on a client project that had a mass member email function, I needed a way to test the system exactly as it would run in production.  This meant, when it ran, it would send emails to all of the members in the directory instead of a test email address.  The only problem was I didn’t want to send test emails out to the thousands of members in the directory. So I wanted a way have PHP still send the email out as it normally would but have the mail server (EXIM) kill it before it left the server. Luckily this is very easy to do.  With EXIM, you can setup filters that can perform a large number of tasks, like blocking message, or blind copying messages to other email addresses.  In this case, I’m going to create a filter to cause an email coming from a specific sender to fail (the email address I use to send the email in PHP). What you’ll want to do is find your System Filter File for EXIM.  In WHM, you can find this file listed in your EXIM Configuration Editor about half way down the page. Once you’ve located the file, log into SSH and edit the file.

pico /path/to/your/file Then enter the following filter into the file and save it:
if first_delivery
and ( ("$h_from:" contains "emailtoblock@mydomain.com")
)
then fail
endif
If you’d like a copy of the email sent to you after the message fails so you can make sure it is correctly formatted, just add one line:
if first_delivery
and ( ("$h_from:" contains "emailtoblock@mydomain.com")
)
then
unseen deliver "youremail@yourdomain.com"
fail
endif
I suggest you read up more about EXIM filtering for more advanced functions. Where I Learned This: I found the solution the Imthiaz Blog and the Exim Documentation.
recensione.biz
Siteground: il miglior hosting sul mercato
Siteground è uno dei provider hosting più affermati e affidabili. Per Wordpress è decisamente il massimo: veloce, sicuro, affidabile e con un gran supporto!

Siteground è uno dei provider hosting più affermati e affidabili. Per Wordpress è decisamente il massimo: veloce, sicuro, affidabile e con un gran supporto!

WHM/cPanel error: Missing HOST Config Line in /etc/wwwacct.conf, please reconfigure with Edit Setup.

This can be solved by editing /etc/wwwacct.conf file.

Just type the following commands in ssh:

nano /etc/wwwacct.conf

Enter the server’s hostname in HOST field.

Then save and exit.