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.

Block incoming emails from PHP

Discussion in 'E-mail Discussions' started by mirfan, Nov 24, 2011.

  1. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    I configured mailing list on exim. and it's working as anticipated.
    Now i want to block emails from PHP scripts i.e. from php mail() function to the list only.

    And for regular email addresses it should work. How to block emails from PHP mail() to lists only ?

    Thank you.
     
  2. storminternet

    storminternet Well-Known Member

    Joined:
    Nov 2, 2011
    Messages:
    462
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi,

    I don't think that you can disable emails from php mail() to lists only. But if you use smtp authentication for php scripts rather than php mail() then it would enhance email security.
     
  3. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Thank you for your quick reply.
    Is there any way to block emails to differenetiate on headers to lists only from php mail() ?
    Also can we disable php mail() on entire mail server ?
     
  4. NixTree

    NixTree Well-Known Member

    Joined:
    Aug 19, 2010
    Messages:
    386
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Gods Own Country
    cPanel Access Level:
    Root Administrator
  5. mirfan

    mirfan Active Member

    Joined:
    Nov 24, 2008
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    Hello,

    But i want no one can send email from PHP mail() from outside.
    How to block incoming mails from outside world for mail() function ?
     
Loading...

Share This Page