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 or redirect local mail delivery?

Discussion in 'E-mail Discussion' started by carverrn, Aug 4, 2009.

  1. carverrn

    carverrn Member

    Jan 7, 2003
    Likes Received:
    Trophy Points:
    Is there a way to block/redirect local mail delivery?

    We provide web hosting but not email services from our server. We provide email service through a different server and we automatically setup the MX Record to go to the other server.

    On the web server we would like all local email references to an account to be blocked or redirected to the users email account on our other server.

    For example, if our web hosting server is "" and the web hosting account username is "anyuser" then an email sent to "" is being sent to the default "mail/new" folder for the users web hosting account.

    Since we do not allow them email access on that server these messages can build up consuming their web space.

    This tends to happen if they have CRON jobs generating errors and they didn't specify a different email address for CRON jobs. Or if they have web applications sending out emails that get bounced backed.

    Deleting the "mail/new" folder doesn't work. It just creates a new one on the first email delivery. Removing all the permissions on "mail/new" kind of works but the messages build up in the mail delivery queue and I would prefer they be rejected immediately or redirected to the users actually email address.

    Is there a way to do this?

    And if possible, is there a way to do this automatically when new accounts are created?


  2. alex_funky_dj

    alex_funky_dj Member

    Oct 30, 2004
    Likes Received:
    Trophy Points:
    Alexandria, Egypt.
    I've the same question !
    #2 alex_funky_dj, Oct 1, 2009
    Last edited: Oct 1, 2009

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