How to Block Spam Using Plesk

June 29th, 2009 · 1 Comment

plesk-antispamA few months ago, I’ve made a post about SpamAssassin, a great free antispam tool. In fact, cPanel uses SpamAssassin to block unwanted mails.

This time around, we’ll see how to block spam using Plesk. While its spam filter management interface is different than cPanel, it’s still quite easy to use.

For this tutorial, I’ll be using my FatCow account so your Plesk control panel may differ a little bit from mine.

  1. Log in to your Plesk control panel.
  2. In the E-Mail section, click the Manage Spam Filter icon.
    fatcow-blocking-spam-1
  3. Enable spam filtering by clicking the Yes radio button.
    fatcow-blocking-spam-2
  4. Select the Handling Option best suited to your needs.
    fatcow-blocking-spam-3
  5. Click the Save Spam Management Settings button.
    fatcow-blocking-spam-4

Greylisting and Auto Whitelisting

Greylisting is an email blocking mechanism where messages are first rejected with a “temporary rejection” message. If the message is resent within a specified amount of time, the email is accepted.

Greylisting works because most spammers do not resend rejected messages (or check to see if messages are rejected, for that matter) and legitimate (i.e., non-spam) email servers will try to resend the message.

If the message is retried, it is successfully delivered and is automatically added to the user’s whitelist and does not have to go through the greylisting process again.

To enable greylisting and auto whitelisting:

  1. Select a domain to enable greylisting or auto whitelisting. Click the Go button if you changed the default selection.
    fatcow-blocking-spam-5
  2. Select Yes on each option to enable greylisting and auto whitelisting.
    fatcow-blocking-spam-6
  3. Click the Save Greylist Settings button to save your changes.
    fatcow-blocking-spam-7

Whitelist and Blacklist Email

Whitelisted email addresses are always accepted. Blacklisted email addresses are always rejected. Simple as that.

Plesk allows you to set up whitelist and blacklist addresses, entire domains, or by Class C IP addresses.

To add whitelist or blacklist entries :

  1. Select a domain.
    fatcow-blocking-spam-8
  2. Select whitelist or blacklist.
    fatcow-blocking-spam-9
  3. Select a recipient from the drop-down list:
    fatcow-blocking-spam-10
  4. Enter a sender’s email address or domain in the Sender text box. Entering * will cause ALL messages to be filtered.
    fatcow-blocking-spam-11
  5. Add a specific IP address. *.*.*.* will cause messages from the Sender at any IP address to be filtered.
    fatcow-blocking-spam-12
  6. Click the Save Entry to List button.
    fatcow-blocking-spam-13
  7. The page will refresh and provide an Entry Added notification if the entry was successful.
    fatcow-blocking-spam-14
  8. At the bottom of the page, your new entry will be displayed in a table. Click the Delete link to delete the filter.
    fatcow-blocking-spam-15

So as you can see, using Plesk’s Spam Filter isn’t that complicated, but remember to be careful not lose some legitimate emails in the process.

1 response so far ↓

1. Response by : Daryl Lafferty on Oct 6, 2009 at 5:33 pm

“Blacklisted email addresses are always rejected. Simple as that.”

I wish it worked like that. Unfortunately SpamAssassin doesn’t inspect messages above a set size, typically about 256K. Examining larger messages takes too much CPU and would slow the system too much. But this means it doesn’t even compare the address to the blacklist.

I’ve got one spammer that frequently sends out 2-6 MB spam emails that SpamAssassin ignores. I wish there was a way to stop them.

Leave a Comment




 
 
 

Tutorials by Category

 
 
 
 

Recent Comments