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.

how can i restrict send mail without username and password

Discussion in 'E-mail Discussions' started by serversetup, May 6, 2013.

  1. serversetup

    serversetup Registered

    Joined:
    May 6, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello

    i have a server for hosting and i want restrict all user

    they cant send mail without username and password since i want restrict php script for send mail on the server

    i hope someone can help me.

    taq
     
  2. serversetup

    serversetup Registered

    Joined:
    May 6, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    post updated please study my post and then help me
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,456
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Please expand on this question if you would.
     
  4. serversetup

    serversetup Registered

    Joined:
    May 6, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    hello



    please let me to define more my problem



    I have a server for webhosting



    I want restricted email send my server with my users hosting



    I want don't send email without filed from on the server to each email receiver



    please help me
     
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,456
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Spacing isn't helping here.

    Please expand on this part:

     
  6. Veeble-Adam

    Veeble-Adam Active Member

    Joined:
    May 7, 2013
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Do you want to disable "mailing via PHP scripts without authentication"?
     
  7. serversetup

    serversetup Registered

    Joined:
    May 6, 2013
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    yes

    Exactly
     
  8. Veeble-Adam

    Veeble-Adam Active Member

    Joined:
    May 7, 2013
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    There is a function available in PHP to send a mail via PHP script. The function is mail(). You can disable PHP mail() function to prevent spamming from the server and allow only SMTP authentication to send the emails via PHP script. You can disable PHP mail() function from WHM.

    To disable mail() function, you may add "mail" to the "disable_functions" in the php configuration. You may do it via WHM as given below:

    [1] Login to your WHM.
    [2] Go to "PHP Configuration Editor" under "Service Configuration" and select "Advanced mode".
    [3] Add "mail" to the list of disable_functions and save it!

    This should help.
     
Loading...

Share This Page