The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Importing "Blocked Email Addresses"

Discussion in 'E-mail Discussions' started by neil154, Oct 26, 2013.

  1. neil154

    neil154 Well-Known Member

    Joined:
    Oct 17, 2013
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Website Owner
    I have a list of email address that I would like to have blocked. I know that I can do a copy & paste into BoxTrapper but I do not use BoxTrapper because I do not want my business clients to get a bounce back message that they would need to respond to. So the only solution I know would be to put the addresses in the email filtering but the list is long and I don't want to spend the day to add them one by one, I would like to import them.

    Does anyone have suggestions on how I can accomplish my objective without having to manually add each email address to a filter?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You are limited in the options available to you without root access to the system. Is SpamAssassin enabled for your account? If so, you can manually modify the following file:

    /home/$username/.spamassassin/user_prefs

    You will need to add in a line for each email account you want to block with the following format:

    Code:
    blacklist_from 123@domain.com
    You can then setup a filter to determine what action to take for messages marked as SPAM.

    Thank you.
     
Loading...

Share This Page