Plesk

Swiftmailer/Symfonymailer or Prestashop messages stopped working after upgrading Plesk to version 18.0.45

Symptoms

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

Cause

Product issue:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Replace "sendmail -bs" with "sendmail -t" in the website's code.

For example:

  1. Connect to the server via SSH.

  2. 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.

Exit mobile version