chrooted ISPConfig with suPHP & Joomla phpmail settings.

Discussion in 'Installation/Configuration' started by SamTzu, May 3, 2007.

  1. SamTzu

    SamTzu Member HowtoForge Supporter

    I have now tried to solve this on my own for several days but It's clearly time to ask for help.

    My setup;
    ISPConfig Virtual Machine with chroot, suPHP.
    Works nicely.

    I have a friend whose Joomla site I started hosting but have been unable to figure out how to get the /usr/sbin/postfix to work in my server.

    I tried to use the "real" path, no luck.
    I tried to copy that to the users folder, no luck.
    I tried to define the whole path /var/www/web16/usr/sbin/postfix, no luck.

    Whats next? Anyone?

    Sam
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    What do you want to do with the postfix binary?
     
  3. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla sendmail

    Send mail from Joomla.

    Sam
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Doesn't Joomla use PHP's mail() function?
    What are the settings that Joomla asks for (regarding email)?
     
  5. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla mail

    It used to be /usr/sbin/sendmail
    Now I'm not sure what to use.


    Sam
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    sendmail is the correct binary name to send emails with postfix too.
     
  7. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla

    So should it work if I just copy the binary to the specified folder?
    Remember I have chrooted environment with suPHP.

    Sam
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    It might work, but I'am not sure. Why dont you use a smtp connection on localhost instead?
     
  9. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla mail

    How do I configure that?
    What shall I enter in to the Joomla Sendmail Path?

    Sam
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    SMTP connections do not work trough thes endmail path. Does joomla has no settings to use either the php mail function or a real smtp server?
     
  11. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla

    There are 3 ways to do it in Joomla.

    PHP mail function
    Sendmail
    SMTP server

    If I choose PHP mail what should I put in the...
    Sendmail Path?


    Sam
     
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    The PHP mail function does not use the sendmail path. But you might have to setup SMTP in the php.ini.

    As Joomla supports SMTP Server too, I recommend to use this and not the php mail function.
     
  13. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla mail

    But wouldn't you have to set up a relay settings in the smtp mail server settings then?

    Sam
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    That depends on your mailserver setup. If you use localhost as smtp server, you normally do not need to authenticate.
     
  15. SamTzu

    SamTzu Member HowtoForge Supporter

    Joomla mail

    Got it to work with SMTP server setting.
    There was no need to set relay settings in the real mail server.
    Just had to define the usual SMTP settings and user authentication settings.

    Sam
     

Share This Page