WHM Exim Block a Domain from Sending

If you have a WHM server and need to disable mail for a particular CPanel account (for instance, if got hacked and it’s sending out hordes of spam email).

First, in root SSH, run these commands:


touch /etc/blockeddomains
echo "domain.com" >> /etc/blockeddomains

Please replace domain.com with the domain name. Do not replace the “” part as that’s required, only the domain.com part with the right domain name.

In WHM > Exim Configuration Editor > Advanced Editor, put the following in the topmost box:


domainlist blocked_domains = lsearch;/etc/blockeddomains

Locate the “ROUTERS CONFIGURATION” section, and right below these lines:

driver = redirect
require_files = "+/etc/demouids"
condition = "${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}"
data = :fail: demo accounts are not permitted to relay email

Put the following lines:



driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.


List All Fonts by Layer in a PSD (Photoshop File)


When converting a PSD to HTML/CSS, it’s necessary to get a list of all of the fonts used. There are many tools that help in analyzing the layers of a PSD and Creative Suite has great tools for exporting the information for each of the layers.

However, one problem I’ve run into is finding a list of all of the fonts used in a PSD. Sometimes, I’ll open up a PSD and find that my system doesn’t have a particular font that’s used in the PSD. I then have to go through each layer individually to find the particular text layer with that font.

Another problem I’ve run into is the when preparing a photoshop file for coders to code out, I want to make sure we have the licenses for each of the fonts we’re going to embed. Again, we either have to open up each text layer to inspect the fonts or hope for the best. (A solution to this is to use Character & Paragraph Styles – this helps standardize the look of all of the text in the PSD and I highly recommend it. )

Anyway, I’ve finally found a great Photoshop Script that will loop through each text layer and export the name, content, font name, etc, into a text file. Hooray!

Here’s the direct link to GitHub. I’ve also modified the script slightly to include the name of each layer and PX instead of REM.