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!

Prevent email from being send from server domain

Discussion in 'E-mail Discussion' started by Mugoma, Apr 22, 2017.

  1. Mugoma

    Mugoma Well-Known Member

    Joined:
    Aug 1, 2016
    Messages:
    74
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Nairobi
    cPanel Access Level:
    Root Administrator
    Hello,

    We have seen many emails send from server domain (e.g. user@example.server.com), majority of which are spam from exploits.

    We would like to block any message from server name. Every user should use their own domain to send email.
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,440
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you visit this location:
    WebHost Manager »Service Configuration »Exim Configuration Manager, Basic Editor tab, and then ACL Options tab just below that, enable this option:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Mugoma

    Mugoma Well-Known Member

    Joined:
    Aug 1, 2016
    Messages:
    74
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Nairobi
    cPanel Access Level:
    Root Administrator
    If I understand well the option `Reject remote mail sent to the server's hostname` means any mail send to the server hostname is rejected. What we want is the reverse: `Reject mail sent FROM the server's hostname`.

    Am I missing something?
     
  4. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,440
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Mugoma

    Mugoma Well-Known Member

    Joined:
    Aug 1, 2016
    Messages:
    74
    Likes Received:
    4
    Trophy Points:
    8
    Location:
    Nairobi
    cPanel Access Level:
    Root Administrator
    The link you provide doesn't say anything about how to prevent a user from sending from server hostname.

    We also enabled "Reject remote mail sent to the server's hostname" as suggested earlier but it doesn't prevent email from being send from server hosname.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    16,440
    Likes Received:
    416
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Sure it does. If the email is not coming from an actual email, it's coming from nobody.

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. postcd

    postcd Well-Known Member

    Joined:
    Oct 22, 2010
    Messages:
    694
    Likes Received:
    15
    Trophy Points:
    68
    The pitfall of enabling "Reject remote mail sent to the server's hostname" is that your outgoing e-mail may be in higher risk of being marked as a SPAM in my oppinion. Why? Because your FROM/sender mailbox (cpanelusername@server.host.name) can not accept e-mail. It seems to be considered bad practice by some SPAM filters, i faced issue where all my e-mails were denied because of this. PHP scripts using mail() function are sending on behalf of that internal (hostname) mailbox.
     
    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