How to change sendmail_path

Discussion in 'Installation/Configuration' started by ian_ms, Apr 9, 2018.

  1. ian_ms

    ian_ms New Member

    Hey everyone,

    I tried to change the sendmail_path using custom php.ini settings into the website options. But it seems that the sendmail_path value does not want to change.
    Here what I have into custom php.ini settings:
    Code:
    sendmail_path = "/etc/sendmail-smtp/sendmail.phar -f /etc/sendmail-smtp/smtp2go.yml"
    I checked with phpinfo() and it returns the default value which is:
    Code:
    /usr/sbin/sendmail -t -i -f [email protected]
    Do you guys know why it does not change?

    By the way, Im using Fast-CGI (PHP 5.6) as its the default. I also tried with PHP-FPM.

    Thank you
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The sendmail path is set in the php-fpm pool file and the fcgi starter (depending on the php mode you use). You might have to modify the master template file in /usr/local/ispconfig/server/conf/ (comment out the line which sets this value), then change the php mode of the site to something else, save, change it back, to get the php config rewritten based on the altered template file.
     
  3. Keen Mouse

    Keen Mouse New Member

    Will those changes be overwritten when upgrading ISPConfig?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Not when you store the modified file in /usr/local/ispconfig/server/conf-custom/ folder.
     

Share This Page