Send mail from other address than webmaster

Discussion in 'Installation/Configuration' started by etragardh, Apr 21, 2015.

  1. etragardh

    etragardh New Member

    Hi.
    Every time I send an email from a site with php mail function the email is sent from [email protected] no matter what I specify in the from header. I have also tried setting the ServerAdmin directive in apaches config file from command line as well as in the apache directives box in ispconfig admin interface.

    Nothing seems to help me send email from an alternative email. Where is this handled and how do I change it?

    My current environment is debian wheezy with ispconfig 3.0.5.4p5
    I use a smtp relay provided by my ISP for sending emails.

    Thanks in advance.
    /e
     
  2. florian030

    florian030 Well-Known Member HowtoForge Supporter

    You can add
    sendmail_path = "/usr/sbin/sendmail -t -i [email protected]"
    to the custom php-settings
     
  3. calbasi

    calbasi Member

    Hi @Florian051 ,

    I've tried your "sendmail_path = "/usr/sbin/sendmail -t -i -f [email protected]" (with and without space after the "-f" in "Custom php.ini settings" field of my website's Options tab but it is not changing the outgoing messages smtp.mailfrom parameter.

    But maybe the point is that now Ispconfig is using postfix and not sendmail to send email messages, isn't it?

    I wonder if I can use other parameter in my "Custom php.ini" field or I should try another way, like: https://unix.stackexchange.com/a/726317
     

Share This Page