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 Email sending restriction

Discussion in 'E-mail Discussion' started by Tarak Nath, Nov 20, 2018.

Tags:
  1. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    Can we restrict certain mail accounts in my domain so that they can not send email to a forwarder email ID.

    Current situation:
    We have a forwarder email ID all@mydomain.com (without inbox). If any mail sent to all@mydomain.com then the mail is forwarding to multiple users like:
    user1@mydomain.com
    user2@mydomain.com
    user3@mydomain.com
    user4@mydomain.com
    user5@mydomain.com

    What we want:
    user1@mydomain.com, user2@mydomain.com and user3@mydomain.com can be able to send email to all@mydomain.com rest of others users user4@mydomain.com, user5@mydomain.com cannot be able to send mail to all@mydomain.com

    Any information about how to get this done would be greatly appreciated. If possible kindly let me know with sample example.

    Our dedicated cPanel server version: [v74.0.11

    Regards,
    Tarak Nath
     
    #1 Tarak Nath, Nov 20, 2018
    Last edited by a moderator: Nov 20, 2018
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,163
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    As per your screenshot its work for instead of a forwarder when we created mailbox for all@mydomain.com without mailbox is not working.

    Basically we want to apply a filter that only allowed users can be able to send email to all@mydomain.com and the rest of all users [internal users or external users] can not be send mail to all@mydomain.com but they should be able to receive all mails from all@mydomain.com

    Please help, thanks in advance.

    Regards,
    Tarak Nath
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,163
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Tarak Nath,

    You could leave the email account created for the all@ address and add an additional action to the filter to discard the message after redirecting it. Is that a suitable solution?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    We have created a rules called "allowed_users" under the global mail filter to allow the users1-user8@ to send mail to all@ and everyone else sending to all@ will be rejected with fail message. Please see the attachment.

    After that we have set a forwarder, now our requirement is fulfilled.

    But we just need to confirm what is the best option for "equals","contains","or" & "and" that we tried to explain in the attached screenshot.

    Thank you :)

    Regards,
    Tarak Nath
     

    Attached Files:

  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,335
    Likes Received:
    2,163
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Tarak Nath,

    The the rules are working as intended using "AND" and "contains", then I see no problem leaving them enabled. The screenshot suggests the setup is suitable for what you are attempting to do.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael,

    Thank you for you suggestion and support.

    This thread can be closed now.

    Regards,
    Tarak Nath
     
    cPanelMichael likes this.
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

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

    I've marked this thread as solved.

    Thanks!
     
    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