Skip to main content

How to prevent email send as remote user

Comments

8 comments

  • 24x7server
    Hi, If you want to use only SMTP authentication in the PHP script, then you have to disable the PHP mail function, so only authentication will be accepted..
    -1
  • hendranata
    I know. I dont talk about mail. But i talk about smtp only. Php mail() function is already disable.. And we use php mailer to send email using smtp. In that case, php mailer give an option whether u want to use smtp auth yes or not. (See my first post above). If we turn off smtp auth.. then we can send email through smtp without authentication.. (which is dangerous since they are known as remote user) If we turn on smtp auth.. yes this is safe to be used..
    0
  • hendranata
    Ok i will specific to my main question. Since i can send email through smtp auth and smtp without auth.. How do we prevent user to send email through smtp without auth..?? Because i my trial.. i can use both smtp with authentication (this is okay) and smtp without authentication (this is need to be blocked). Then How to prevent anybody from sending email through smtp without authentication?
    0
  • hendranata
    i read somebody comment here Preventing sendmail and there is no answer till now.. maybe we can modify the exim but i am not sure how to achieve that.. yes i have read exim documentation but i am not an exim expert then need help about this
    0
  • cPanelMichael
    Hello, Any local cPanel user can use the 127.0.0.1 IP address to send mail without authentication. This can make it difficult for system administrators to determine which cPanel account sent the mail, especially when a malicious user spoofs an email address to disguise the origin of the email. To require cPanel & WHM to put the actual sender in the header, enable the Experimental: Rewrite From: header to match actual sender option in WHM's Once this option is enabled, you can more easily identify any senders using the server to send out SPAM, and then suspend those accounts or change the passwords to prevent further delivery of such messages. Thank you.
    0
  • hendranata
    yes i have already done this Experimental: Rewrite From: header to match actual sender option in WHM's
    0
  • Eduardo Faria Colares
    I"m proceed disabling this feature and have a lot of problems.
    0
  • cPanelMichael
    I"m proceed disabling this feature and have a lot of problems.

    Could you provide more specific details about what feature you disabled and what problems you are having? Thank you.
    0

Please sign in to leave a comment.