Hi there, I'm not able to send or receive emails from ISPConfig at the moment, and I suspect this is an issue of my own doing. I'm using Ubuntu 22.04 on an EC2 AWS instance. I wasn't receiving any mail() emails from my PHP installation, I did some searches and a few people said "easy fixed, install sendmail!". So this is what I did (rather hastily), but after more research I suspect this may have messed with the mail on ISPConfig. I apologize for my stupidity. If this is indeed the case, can anyone please advise how I can reverse this mistake? When trying to send an email with RoundCube, I get an error: Code: SMTP Error (535): Authentication failed The RoundCube logs show: Code: [28-Dec-2023 04:32:21 +0000]: <v8d4jisv> PHP Error: Invalid response code received from server (POST /webmail/?_task=mail&_unlock=loading1703737941398&_framed=1&_action=send) [28-Dec-2023 04:32:21 +0000]: <v8d4jisv> SMTP Error: Authentication failure: Invalid response code received from server (Code: 535) in /usr/share/roundcube/program/lib/Roundcube/rcube.php on line 1774 (POST /webmail/?_task=mail&_unlock=loading1703737941398&_framed=1&_action=send) If I try and setup a mail client on my computer to send email to the SMTP server, I get an error stating: Code: Mail was unable to connect to server “mysitedomain.com.au” using SSL on port 587. SMTP, POP and IMAP ports are open in the AWS security settings, and the ISPConfig firewall. Please let me know if there are any other logs that might be of assistance. Thanks, Bruce
This indeed destroyed your whole mail server setup and was completely wrong advice. There is no additional software needed to use php mail() function as it works out of the box on an ISPConfig setup and postfix comes always with a sendmail wrapper, which gets used by PHP. The reason for your original issue was most likely that you have chosen AWS as host which always blocks outgoing emails by default and you must use a mail relay service then if you want to send out emails. You have two options now, either reinstall the server to get a clean and working setup again, or you can try to fix the setup by uninstalling sendmail, reinstalling postfix and postfix-mysql packages and then do an ISPConfig update: ispconfig_update.sh --force with reconfigure services = yes and hope that ispconfig updater can fix the damage in the config.
Thanks for the reply. I ended up doing: Code: sudo apt install postfix-mysql and things seem to be working much better. I need to assess things a bit further but it seems to be doing what it's supposed to do now. I'll be more cautious about the advice I follow in the future. Thanks again, Bruce