how to change server wide php sendmail_path, when it is coded into each vhost

Discussion in 'Installation/Configuration' started by finn, Dec 3, 2010.

  1. finn

    finn New Member

    Hi guys!

    I am trying to create a sendmail wrapper as detailed here:
    http://www.howtoforge.com/how-to-log-emails-sent-with-phps-mail-function-to-detect-form-spam

    But changing the server wide sendmail_path in php.ini has no effect, as in each vhost definition, there is a local override like so:

    Code:
    php_admin_value sendmail_path "/usr/sbin/sendmail -t -i [email protected]"
    I guess this is created by ISPConfig, so how to I get ISPConfig to reconfigure all vhosts with a custom sendmail_path ?

    I'm running ISPConfig 3.0.3, Ubuntu 2.6.31-22-server
     
  2. falko

    falko Super Moderator Howtoforge Staff

    You could make a backup copy of /usr/sbin/sendmail and then create a symlink from /usr/sbin/sendmail to your sendmail wrapper.
     
  3. finn

    finn New Member

    Thanks for that Falko, I guess that's the best way to proceed.
    I was hoping that there might be a 'reconfigure vhosts' script which would pick up changes from the php.ini and propagate them to the vhost definitions.
    Any plans for that sort of functionality in future?
     
  4. falko

    falko Super Moderator Howtoforge Staff

    AFAIK, such a function is not planned.
     

Share This Page