After the upgrade to Plesk version 18.0.45, Swiftmailer/Symfonymailer or Prestashop messages stopped working with the following error message:
PHP Fatal error: Uncaught Swift_TransportException: Expected response code 220 but got code "", with message "Unable to init new groups for user 'postfix': Operation not permitted System error 1: Operation not permitted
#PPPM-13584 "It is once again possible to send mail without authentication using the sendmail -bs command."
- Plesk Obsidian 16 August 2022 (Linux)
- Plesk Obsidian 25 July 2022 (Linux)
- Plesk Obsidian 20 July 2022 (Linux)
- Plesk Obsidian 01 June 2022 (Linux)
If update is not possible for some reason you may try the following
"sendmail -bs" with
"sendmail -t" in the website's code.
Connect to the server via SSH.
Use the command below to replace the the option:
# sed -i "s/sendmail -bs/sendmail -t/g" /var/www/vhosts/example.com/httpdocs/vendor/swiftmailer/swiftmailer/lib/classes/Swift/SendmailTransport.php
Note: It might be required to change all the 'sendmail -bs' instances in the website's code. Depending on the application, the code's location will vary from above.