Implementing nolisting in cPanel using exim

by brian on October 31, 2011

Nolisting is a spam-avoidance scheme which tricks the spammers into giving up when trying to send us spam.  It can result in 50-60% spam reduction on heavily spammed domains and does not use any server load as the spammers don’t even get to connect. [ The 60% figure was measured in 2008 but the technique is expected to be less effective these days (2011).]

More specifically, nolisting tricks the spammers into talking to IPs that ignore traffic, whereas normal mailers go on to talk to the real mail system. [click to continue…]

{ 0 comments }

If you’re using WHMCS to manage your cPanel shared servers, this is probably a request that you’ve received a few times. You have clients that are set up to pay invoices automatically from their credit cards, and they’d rather not receive the “Invoice Created” or “Invoice Payment Reminder” emails every month.

Normally WHMCS only allows you to disable these emails globally but, by making use of the EmailPreSend action hook, we can set up a list of clients not to receive these.

To get started just download the following script, change the file extension to .php, edit it to set up the $client_ids and place it in your WHMCS /includes/hooks/ directory

Please note, this script doesn’t disable only the automatically sent invoice notification emails, but also blocks manual sending of these for the selected clients.

Download disable_invoice_notification.php txt

{ 2 comments }

Cloning File Permissions and Ownership Between Machines

September 17, 2010

Alternate Title: Help, I chown-ed my server! Ever recursively screwed file system permissions?

Read the full article →

rebootnotify – email alert and log for reboot and shutdown

September 17, 2010

Ever wondered how long your system was down for while the techs were working on it? Whether your system crashed or was actually shut down? Or just want to make sure you’re aware of reboots?

Read the full article →

cpmr – full server cpanel rsync backup script

August 21, 2010

cpmr produces a full file-based backup of a cPanel server and is lightning fast and puts little load on the system.  It is based on a number of forum posts from WHT and cPanel forums and about 2 years of live use.

Read the full article →

cprevert – easy cpbackup file level restores

August 14, 2010

Ever struggled to restore a file from a cpbackup backup tarball? Did it take 10 commands and 20 lines of typing and fiddling? How would it be if you could restore any client file in only one short command?

Read the full article →

Welcome to whmscripts.net!

July 31, 2010

Welcome to whmscripts.net! This is our little site for distributing our favourite cpanel tips and scripts, replacing a horrible little scripts page written in handcrafted HTML!

Read the full article →

rblcheck.sh – check local IPs for RBL listing

July 30, 2010

First release of rblcheck.sh, a multi-IP, multi-DNSBL checker. This is used to alert you when your server is listed on a blacklist; otherwise you can be unaware until users start to complain that their emails are bouncing.

Read the full article →

prekillacct – backup cpanel accounts on termination

February 2, 2010

Ever terminate a cPanel account by mistake? This script backs up a cPanel account as it is terminated.

Read the full article →

postcpbackup – auto cpbackup rotation

January 31, 2010

This script that rotates cpanel backups after they are completed. You can set it to keep N copies of your daily, weekly and monthly backups. It has been in production use since Sept 2008 on multiple servers, and has been in use around the net since it was published early in 2009.

Read the full article →