Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Block Receiving E-Mail Address

Discussion in 'E-mail Discussion' started by Mike_Jumbling, Jan 29, 2017.

  1. Mike_Jumbling

    Mike_Jumbling Registered

    Joined:
    Jan 29, 2017
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    France
    cPanel Access Level:
    Website Owner
    Hello All,

    I want to block incoming mail to one address only. This address does not have an e-mail account, e-mail sent to it is received by the default account. I do not want to block the default account entirely.

    I do not have root access.

    cPanel Version 60.0 (build 35)
    Theme x3
    Apache Version 2.4.18
    PHP Version 5.5.36
    MySQL Version 5.6.34
    Architecture x86_64
    Operating System linux
    Path to sendmail /usr/sbin/sendmail
    Path to Perl /usr/bin/perl
    Perl Version 5.10.1
    Kernel Version 2.6.32-673.8.1.lve1.4.3.1.el6.x86_64
    cPanel Pro 1.0 (RC1)

    (I have replaced the name of my domain with domain.com).

    The Set Default Address is set to forward to a real e-mail account on the same domain, unrouted@domain.com. My e-mail client then downloads from unrouted@domain.com.

    I then, when registering for websites etc., register with adresses such as amazon.com@domain.com. This stops my personal account being flooded by adverts etc.

    One of those adresses is now receiving masses of spam and I want to block it, imcoming messages to be auto-deleted.

    I have set up the same rule in Account Level Filtering and also in User Level Filtering (in the unrouted@domain.com account).

    To = spam.com@domain.com; Action = Discard

    A test :

    ---> To: spam.com@domain.com
    ---> From: test@localhost
    ---> Subject: test
    --->
    ---> This is a test message.


    Gives this result :
    Code:
        ---> The Filter has matched the following condition(s):
        ---> $header_to: is spam.com@domain.com
        ---> Return-path copied from sender
        ---> Sender = default@ukdc1-www41.example.co.uk
        ---> Recipient = default@ukdc1-www41.example.co.uk
        ---> Testing Exim filter file "/home/default/etc/domain.com/unrouted/filter"
        --->
        ---> Save message to: /dev/null 0660
        ---> Filtering set up at least one significant delivery or other action.
        ---> No other deliveries will occur.
    
    
    However I am still receiving e-mail to spam.com@domain.com in my e-mail client.

    Anyone got any ideas?

    Thanks,
    Mike
     
    #1 Mike_Jumbling, Jan 29, 2017
    Last edited by a moderator: Jan 29, 2017
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    You should.
    example.com@domain.com is received by the default account, sure. But joe@, sue@, youtube@ and any other word you can think of can be as well.

    You should create a forwarder for that instead of using the default account this way.

    If that forward (amazon.com@) is found out by a spammer and you're getting pounded with spam, change the forwarder to a new one and kill the old one getting spammed. After all, its not a valid email anyone uses.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Mike_Jumbling likes this.
  3. Mike_Jumbling

    Mike_Jumbling Registered

    Joined:
    Jan 29, 2017
    Messages:
    2
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    France
    cPanel Access Level:
    Website Owner
    That worked, thanks.
     
    Infopro likes this.
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,309
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Happy to help. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice