Image via Wikipedia
If you’re using Plesk on a VPS or dedicated server you may want to configure email filtering.
There are two ways to block spam from reaching you on a Plesk server:
- Spam Assassin
- DNS Blacklists
DNS Blacklists can be very helpful, but bear in mind that you need to check what a blacklist is doing (ie. its criteria) before you implement it. You should also keep an eye out for updates and changes, or you can end up facing issues that affected some people earlier this year.
With a blacklist you can decide to simply drop ALL email from certain places.. This may seem like an extreme measure to take, but if you are constantly being spammed then it may help a lot.
SpamAssassin, however, offers you more options. You can choose how you want to handle emails and set scores etc., which gives you and your users a greater level of control.
Setting up both options is quite easy to do with the “Plesk updater”, which also handled installing extra modules.
Login to your Plesk powered server or VPS. You should see a screen a bit like this one:
That will take you to a screen like this one:
To install them click on the “Updater” icon and then on the Plesk link.
You’ll then be presented with a screen showing you which tools and modules are installed and which ones aren’t. If you’ve already been “playing around” you may have already installed some of these optional modules. In my case the VPS I’m using is a fresh install, so none of the extras have been either installed or configured:
The install can take several minutes, so it’s a good time to go and grab a coffee.
If you now go back into the server section you should see that the Spam Assassin ninja is no longer greyed out and so Spam Assassin is now installed:
So what about the blacklist we mentioned earlier?
It can be configured via the “Mail” icon, which also offers you a bunch of other email settings including checking for SPF records and Domain Keys.
If you have a look at the screenshot below I’ve highlighted 3 of the settings that can be of interest, namely:
- setting email size limits (if you want to block emails based on size)
- SPF settings
- DNS Blackhole (blacklist) settings
DO NOT use Spamcop for blocking email. Seriously. Don’t.
If you have any issues with setting up email filtering in Plesk that I haven’t covered please let us know in the comments.