How to configure the AWS SES in mautic 5.1
Closed this issue · 3 comments
Hello,
I installed the plugin on my Mautic instance, the plugin is successfully installed. Now I am trying to configure the AWS SES under the "Email Settings", but getting the error
Unable to send an email: The security token included in the request is invalid. (code UnrecognizedClientException). I configured it as follows
Scheme : ses+api
Host: default
Port:465
User: AWS login user id
Password: Access key (which is created under the IAM user)
Region(added under options): Current region of my AWS account
So could you please check and let me know if there anything wrong in my configuration.
Thanks
Hi, please check AWS user permissions and SES configuration
The Username you enter needs to be the Access Key you created, not the AWS login user id.
The Password needs to be the Secret Key generated for that Access Key.
the word region needs to be lower case in the label, or will default to EU-WEST-1 and if you're not setup in that region, the test email (and production emails) will fail.
Is it working with Mautic 5.1.1?
The send test email is working, but creating an email on Mautic and sending an example does not work. It still uses localhost:25 instead of the configured DSN.
[2024-10-12T13:52:06.326887+00:00] 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":"c2ba205128a5","pid":44}