Issue after installing PHP 7.4

Discussion in 'Installation/Configuration' started by nushara, Apr 9, 2020.

  1. nushara

    nushara New Member

    Ah yeah, that's how I did it last time. But I am not able to send mails trough my WordPress or by mail client for example. It looks like it is only allowing to send mails locally.
    I can remember editing postfix config on some point but it is quite a while ago and I can't remember what I did there to get it to work. Any idea?
     
  2. nushara

    nushara New Member

    I've just noticed I am not even able to send a mail with Roundcube. Which is very strange. I've then installed LE4ISPC again but no change.
     
  3. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Then you must did something wrong while following the guide. WordPress link. sending emails from Wordpress works perfectly with this, I use it on several servers.

    There are no edits in postfix config required besides of what's described in the perfect server tutorial. Follow it to the letter and you are ready to go.

    post thepostfix master.cf file and the messages that you get in mail.log when sending an email.

    That's ok and can be ignored.
     
  5. till

    till Super Moderator Staff Member ISPConfig Developer

    There you have the reasons for your issues, compare your master.cf with the guide, then you will see the mistakes you made:

    1) You missed removing # in front of the submission line.
    2) You missed removing # in front of the smtps line.
    3) You twice added the code ^M which should not be there.
     
  6. nushara

    nushara New Member

  7. till

    till Super Moderator Staff Member ISPConfig Developer

    I suggested to use the official installation instructions for the reinstall plus I suggested to compare your setup after it failed with the official installation instructions, which you apparently have not done.

    For Apache: https://www.howtoforge.com/tutorial...l-pureftpd-bind-postfix-doveot-and-ispconfig/
    For Nginx: https://www.howtoforge.com/tutorial/perfect-server-ubuntu-18-04-nginx-bind-dovecot-and-ispconfig-3/

    The script you used is a third party script and not from ISPConfig, I can't say if it will install ISPConfig correctly.
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    There are several issues, first, you used a wrong hostname. the server hostname must be a subdomain as shown in perfect server tutorials, but you used a full domain which makes that domain unusable for email.

    Change:

    nushara.com

    to:

    server.nushara.com

    in the files:

    /etc/hostname
    /etc/mailname/
    /etc/postfix/main.cf
    /etc/hosts

    and then reboot the server. In addition to that, you must create a dns a-record in the dns server that is responsible for that domain plus you have to set a reverse record for the IPv4 and IPv6 address of the server that point to server.nushara.com.
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Then there must be a different error in the /var/log/mail.log from what you posted until now. Send an email with Wordpress and post ALL lines that got added for that in the mail.log file.
     
  10. till

    till Super Moderator Staff Member ISPConfig Developer

    As far as I can see, WordPress did not attempt to send an email. Check the settings in Wordpress, Wordpress should either use the PHP mail function or make an SMTP connect to localhost (which is IP 127.0.0.1)
     
  11. nushara

    nushara New Member

    Looks like I got everything working again. Sorry for all the questions. Thank you so much for helping me out!
     

Share This Page