php fifth argument

Discussion in 'Installation/Configuration' started by Steffan, Apr 6, 2021.

  1. Steffan

    Steffan Member


    I think i asked it before but i cant find it.
    Websites like wordpress uses the fifth argument when sending e-mails.
    This is not working. It only works when i remove the fifth argument that is added by ispconfig to the php.ini file
    Is there any option to fix this without manualy removing these lines?
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Allowing sites to send from arbitrary addresses doesn't seem like an obviously good idea (I have never needed that for a single worpress site), but I think you should be able to do so by setting sendmail_path in the site's custom php directives to just '/usr/sbin/sendmail' or so, then php can add whatever additional_params it likes. Changing the site to send via smtp is another (a better?) solution which of course doesn't require this setup, and has other advantages (better mail deliver, dkim signing, availability of rate control, etc.).
  3. Steffan

    Steffan Member

    So Wordpress and joomla will not work out of the box without manualy edditing or with help of a third party module
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    WordPress and Joomla work out of the box. ISPConfig just enforces a sender address of this website to prevent spam. Using a different email address is easy though as @Jesse Norell pointed out, just send via SMTP.
  5. Steffan

    Steffan Member

    well that is strange after the update it is only works when you remove the fifth argument
    I persenaly tested it on a Wordpress site
    Tested it with a simple contact form, it says sent but nothing in the log.
    Also used a check & Log plugin for email testing.
    only works when the -f is removed from the php.ini

    So what makes my server different then that from others?
    Standard centos 8 php 7.3/4
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    We'll check what might cause this.

Share This Page