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!

Block an email domain using BoxTrapper?

Discussion in 'E-mail Discussion' started by Selgovae, Oct 28, 2018.

Tags:
  1. Selgovae

    Selgovae Registered

    Joined:
    Oct 28, 2018
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Blackpool
    cPanel Access Level:
    Website Owner
    I am trying to block these TLDs but I'm not sure how to use Perl.
    Are these correct?

    @biz.ua = from .+\@biz\.ua
    @com.ua = from .+\@com\.ua
    @co.ua = from .+\@co\.ua

    All help and guidance will be gratefully received.
    Best regards,
    Selgovae
     
    #1 Selgovae, Oct 28, 2018
    Last edited by a moderator: Oct 29, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Selgovae,

    Yes, the following examples should work based on the information you provided:

    Code:
    from .+\@biz\.ua
    from .+\@com\.ua
    from .+\@co\.ua
    Let us know if it doesn't work as intended.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Selgovae

    Selgovae Registered

    Joined:
    Oct 28, 2018
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Blackpool
    cPanel Access Level:
    Website Owner
    Thanks Michael but I have just got emails from
    amxiwvd@removed.biz.ua

    Ideally I want to block all from biz.ua but can't seem to do that with BoxTrapper using from .+\@biz\.ua

    Can you help me please?
    Best regards
    Selgovae
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Selgovae,

    There are some user-submitted regular expression examples on the following thread that you may find helpful:

    Need to filter ALL email

    For instance, one you could try is:

    Code:
    from .+@.+\\\\.biz.ua[^.a-zA-Z0-9_]
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Selgovae

    Selgovae Registered

    Joined:
    Oct 28, 2018
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Blackpool
    cPanel Access Level:
    Website Owner
    Thank you I will give it a try.
     
    cPanelMichael likes this.
  6. Selgovae

    Selgovae Registered

    Joined:
    Oct 28, 2018
    Messages:
    4
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Blackpool
    cPanel Access Level:
    Website Owner
    Michael I understand the first part, but what does this part do?
    [^.a-zA-Z0-9_]
     
  7. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,009
    Likes Received:
    2,123
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,

    That's explained by the user on the following post:

    Need to filter ALL email

    Thank you.
     
    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