Cannot send emails to contacts with AWS SES plugin

Your software
My Mautic version is: 5.2.1
My PHP version is: 8.1.31

Your problem
My problem is:
I installed mautic using the example docker-compose from the repository: docker-mautic/examples/fpm-nginx at mautic5 · mautic/docker-mautic · GitHub .

After installing it correctly, I added the plugin to use AWS-SES , following the directions on the repository: GitHub - pabloveintimilla/mautic-amazon-ses: Mautic 5 plugin, provides Amazon SES as an email transport and callback to process bounces (I had to install composer, nodejs and npm ).

I have the required symfony/amazon-mailer installed.

I configured Email DSN and clicked Send test email, I received the test email correctly. I tried to send an email to a contact saved in ‘Contacts’ and in the log file ‘prod-2025-02-11.php’ I got this error :

messenger.CRITICAL: Error thrown while handling message Symfony\Component\Mailer\Messenger\SendEmailMessage. Removing from transport after 3 retries. Error: “Handling “Symfony\Component\Mailer\Messenger\SendEmailMessage” failed: Connection could not be established with host “localhost:25”: stream_socket_client(): Unable to connect to localhost:25 (Connection refused)”

These errors are showing in the log:
messenger.CRITICAL: Error thrown while handling message Symfony\Component\Mailer\Messenger\SendEmailMessage. Removing from transport after 3 retries. Error: “Handling “Symfony\Component\Mailer\Messenger\SendEmailMessage” failed: Connection could not be established with host “localhost:25”: stream_socket_client(): Unable to connect to localhost:25 (Connection refused)” {“class”:“Symfony\Component\Mailer\Messenger\SendEmailMessage”,“retryCount”:3,“error”:“Handling "Symfony\Component\Mailer\Messenger\SendEmailMessage" failed: Connection could not be established with host "localhost:25": stream_socket_client(): Unable to connect to localhost:25 (Connection refused)”,“exception”:“[object] (Symfony\Component\Messenger\Exception\HandlerFailedException(code: 0): Handling "Symfony\Component\Mailer\Messenger\SendEmailMessage" failed: Connection could not be established with host "localhost:25": stream_socket_client(): Unable to connect to localhost:25 (Connection refused) at /var/www/html/vendor/symfony/messenger/Middleware/HandleMessageMiddleware.php:130)\n[previous exception] [object] (Symfony\Component\Mailer\Exception\TransportException(code: 0): Connection could not be established with host "localhost:25": stream_socket_client(): Unable to connect to localhost:25 (Connection refused) at /var/www/html/vendor/symfony/mailer/Transport/Smtp/Stream/SocketStream.php:154)”} {“hostname”:“afe006cfb306”,“pid”:56}

Steps I have tried to fix the problem:
I also tried another plugin but with the same result. It would seem that Mautic does not read the properties saved in the local.php file. Why does it try to contact http://localhost:25 and not read the configurations set in the DSN email? It sends test mails from the configuration page correctly. Even when trying with an SMTP server, the result is the same. Is there a problem with the official Docker image? Is there no solution?