The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restrict email only from listed domains

Discussion in 'E-mail Discussions' started by ReiJu, Nov 23, 2010.

  1. ReiJu

    ReiJu Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    6
    I want to know is there a way to restrict email, sent through sendmail (php), to have from-header (envelope, RFC From, Return-path) only from a domain listed in their hosting accounts.

    I mean, when a hosting account with domain example.com can only send emails, via php script (phpmailer, newsletter, etc), only if they use a header from someone@[b]example.com[/b]. So when they use other domain (eg. someone@[i]gmail.co.uk[/i]) in the FROM field, then the php script failed.

    Is it possible in cPanel?

    Thank you.
     
  2. ReiJu

    ReiJu Well-Known Member

    Joined:
    Mar 14, 2008
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    6
    This is not possible, I guess.
     
Loading...

Share This Page