- Plesk for Linux
After the upgrade to Plesk version 18.0.45, Swiftmailer/Symfonymailer or Prestashop messages stopped working with the following error message:
PLESK_ERROR: 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
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.