Completely Removing BoxTrapper In cPanel

This is one of those things I just didn’t want to lose in case I need it again, but basically, if you have a cPanel server and you’re not using BoxTrapper (which you really shouldn’t, as it can cause your server to get blacklisted unnecessarily), follow these directions to get rid of it:

The first step is to modify /etc/exim.conf to remove the boxtrapper sections (there’s around 4 or 5 IIRC), and then run:

rm -rf /var/cpanel/version/boxtrapper

/scripts/eximup –force

/scripts/mailscannerupdate

rm -rfv /home/*/etc/.boxtrapp*

rm -rfv /home/*/etc/.boxtrapp*

rm -rfv /home/*/etc/*/.boxtrapp*

rm -rfv /home/*/etc/*/*/boxtrapp*

Also of note, I didn’t delete the boxtrapper sections out of exim.conf. Commenting them out seems to do the trick.

I was having trouble with some e-mail getting sent via my SMTP server, so I’m hoping that fixes the issue (it didn’t get bounced this time at least).

Comments

Richy C. says:

Whooow! I got onto Jake’s blog (admittedly indirectly!)

Jake says:

Hehe…small world, Richy — thanks for your post, otherwise I’d be beating this server up even more than usual 🙂

Random cPanel Link Dump

As I’ve mentioned before, I use cPanel on my Web server. I’ve posted links before for using clamavmodule in Mailscanner, completely removing boxtrapper, among a few other things. So here…