Disable function phpmail for specific domain

Discussion in 'Installation/Configuration' started by pecka33, Jul 3, 2023.

  1. pecka33

    pecka33 Member

    Hello,

    is here any way how can i disable function phpmail or smtp for hosted domain via ispconfig and latest debian?

    I have a lot of domain in my ispconfig and need to disable this function for specific domain.

    Thank you :)
     
  2. pecka33

    pecka33 Member

    I found maybe i need to use disable_functions = mail in php ini?
     
  3. pyte

    pyte Well-Known Member HowtoForge Supporter

    Thats right. This will disable the mail() function in php. You can do this for single webspaces or the whole server(e.g per PHP version)
     
    ahrasis likes this.
  4. recin

    recin Active Member

    For specific domain you have to:
    • go to sites
    • select desired domain
    • Options tab
    • Under Custom php.ini settings paste this:
      Code:
      disable_functions = mail
    • Save changes
     
    ahrasis and till like this.

Share This Page