Changing Your Sites MX Record Published: Oct 12, 2005
  • Rating

    4/5

There are few simple steps you can follow to minimize the amount of spam you receive to your inbox with Cpanel. We cover email filtering, spamassasin, default address and more tools.

There are few simple steps you can follow to minimize the amount of spam you receive to your inbox.

Don't Accept Mail to Users Mailboxes That Don't Exist! - Default Address
By default all unrouted email will be directed to your main mailbox, where it will use disk space and resources of your account. This means that someone can send to anything@yourcompany.com and you'll still receive it to inbox@yourcompany.com (where inbox is your Cpanel username). This is how spammers send out mass messages as well as viruses. A common practice between worms, viruses and spammers is to generate or create a false email address they think you'll receive.

Login to your Cpanel, click on Mail, Default Address, at the bottom click  Set Default Address

Select the domain in the drop down menu, I recommend repeating this for all domains listed.
In the to: field - enter
:fail: no such address here

Click on Change to save your changes.

 

Filter Your Mail Automatically - Cpanel E-mail Filtering
Cpanel also has the ability to use Mail Filters - a nice little addon that will examine all your messages, sort them, do the action you tell it ad delivery you the results. This is an excellent method and often unused tool that can save you hours and hours of browsing spam. For example the Sober viruses sends out a series of messages that all have common subjects, you can completely delete anything that meets those exact subjects, preventing your inbox building up with spam and protecting you from viruses.

Login to your Cpanel, click on Mail, E-mail Filtering, at the bottom top click  Add Filter.
In the Filter section you have two drop downs, the first is what you are filtering.
Subject, From, To, Body, Any Header, SpamAssasin Spam Header.

The next drop down is how you are filtering it.
contains, equals, matches regex, and begins with.

The input box is the filter. Enter the text you want to filter here.

For example, I keep getting spam messages with the same subject and I want to filter them. The spam messages have the subject line: Ultimate Online Pharmaceutical

I'd create a filter as follows:

What? Subject
How? Equals
Filter? Ultimate Online Pharmaceutical
Destination? Discard

This now automatically deletes any messages that I receive with the subject: Ultimate Online Pharmaceutical
so they never even get to my inbox, perfect!

Once you've added a filter you can test it, enter a message that you think you want to filter in the test window, with subject, from address and body to make sure the filter works the way you want.

WARNING - setting up filters incorrectly can reslt in mail never received and the sender will never know. If you setup filters wrong then valid email can be deleted as well so be careful.

 

Accept from Trusted Senders Only
BoxTrapper Spam Trap is a tool that can help reduce spam significantly. Someone emails you, if they're not on your white list then they must reply to a message they receive after emailing you. After replying they are put on a white list so they don't have to respond every time they send you a message to validate the email. Basically you give them the big OK that the sender is a person and not a virus or spammer - they usually never respond so this cuts down spam a lot.

 

Flag Mail As Spam using SpamAssasin
SpamAssasin is another tool you can use which helps score or rate messages as potential spam. We'll come back and cover SpamAssasin more at a later date.

  • Rating

    4/5

Related Articles

Comments (8)

  • Gravatar - abubin
    abubin 06:36, October 26, 2005
    Do I need to be running own DNS server for this to work?<br />
    <br />
    What if I am using DNS server from my webhost?
  • Gravatar - joel
    joel 06:14, February 6, 2006
    what daemon will handle the mail if not exim? I still want to see the message queue in WHM
  • Gravatar - joel
    joel 07:06, February 6, 2006
    Will this not work if exim is allowed to continue to handle email? Steps 8 and 9 are too risky for me - and step 10 is already correct. Help?
  • Gravatar - JC John SESE Cuneta
    JC John SESE Cuneta 09:25, August 11, 2006
    @joel, I'm not an expert in this, but as far as I'm concerned, my server setting is working properly without doing Steps #8 and 9.<br />
    <br />
    If I understood it correctly, doing those two steps will keep your server from reprocessing your old local mail.yourdomain.tld setup. So next time for example, EXIM rechecks itself, it won't run again for the domain mail you changed.<br />
    <br />
    ^^<br />
    <br />
  • Gravatar - Alex
    Alex 08:24, May 2, 2007
    I changed MX record to rs511.securehostserver.com. now when sending test email it bounces back? Technical details of permanent failure: 553 sorry, mailbox unavailable (#4.7.1) ** Please confirm if this is normal?
  • Gravatar - pritpal singh
    pritpal singh 11:32, March 13, 2009
    sir,<br />
    Very much thanks.... for your help to me in changing mx record properly..... thanks for your service to the community...<br />
    you done a great job<br />
    pritpal...
  • Gravatar - RealGroup
    RealGroup 14:46, March 21, 2009
    Good, Really good information. The screen shots takes to the perfect steps. <br />
    Thank You Very Much.<br />
    :)
  • Gravatar - theh1982
    theh1982 11:23, August 6, 2009
    This video tutorial helped me a lot <br />
    http://www.youtube.com/watch?v=HZfehwUAROU<br />
    <br />
    <br />

Add Your Thoughts

WebHostGear.com is a hosting directory, not a web host.

Copyright © 1998-2017 WebHostGear.com