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!

how to block all outgoing mail to a certain domain

Discussion in 'E-mail Discussion' started by SoftDux, Nov 3, 2011.

  1. SoftDux

    SoftDux Well-Known Member

    Joined:
    May 27, 2006
    Messages:
    993
    Likes Received:
    2
    Trophy Points:
    168
    Location:
    Johannesburg, South Africa
    cPanel Access Level:
    Root Administrator
    Hi all,

    Does anyone know if it's possible, on a shared cPanel server, to block all emails from all local domains to a specified remote domain?

    I want to block all outgoing mail to Yahoo on our servers, and it would be nice / ideal if I could somehow send the users a bounce message back stating why it's blocked and what alternative action to take in order to send mail to Yahoo recipients.
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The best discussion I could find so far on this is the following:

    Block outgoing emails | exim | users

    I'd suggest posting on the exim mailing list at exim.org to get their take on the best type of router or filter to use for this type of capability.

    For some reason, I was almost certain this had been discussed here before where I found some working example 6 or more months ago, but I wasn't able to locate any thread of that nature in search (possibly either memory or search failure on my part).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,366
    Likes Received:
    5
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Only thing I've seen a while back is here: http://forums.cpanel.net/f43/block-forwarding-111609.html

    Doesn't exactly address your requirements but I did try Sparek's implementation in the past (which worked as described) and it might be a staring point for you.

    DavidG's input while quite detailed was certainly over my head.

    Would still like to see this capability included in WHM/cPanel.
     
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