Amazon SES Connector - Send Odoo Email through Amazon SES API or SMTP, SES Bounce and Complaint Handling
by Modvanta https://modvantaapps.tech$ 14.96

Amazon SES integration for Odoo 19
Send Odoo email through Amazon SES and stop mailing addresses that bounce.
Pick the SES API or the SES SMTP endpoint, paste your IAM key, and let SNS tell Odoo about bounces and complaints so the blacklist keeps itself up to date.
What it does
The module adds Amazon SES API as a way to authenticate an outgoing mail server. Odoo still builds the email (attachments, Bcc, its own Message-ID) and then posts the raw message to SendEmail of the SES API v2, signed with Signature Version 4. No AWS SDK is installed and no SMTP connection is opened. You can add a configuration set and a tag with the database name.
Prefer SMTP? One button fills the SES SMTP endpoint of your Region on port 587 with STARTTLS and works out the SMTP password from the IAM secret access key, using the conversion AWS publishes. Test Connection reads your SES account: sending enabled, sandbox or production, and how much of the 24 hour quota you have used.
For feedback, make the SNS endpoint URL in Odoo and subscribe it to the SNS topic that SES sends bounces and complaints to. Odoo only accepts messages from the topics you list, only loads the signing certificate from an https Amazon SNS address, and checks the SNS signature before it reads anything. The subscription is confirmed the same way.
A hard bounce or a complaint puts the address on the Odoo blacklist, so mass mailings skip it. Bounces also raise the bounce counter of the matching contacts and mailing contacts, mark the chatter notification as bounced and set mailing traces to bounced. Soft bounces are only logged. Contacts are matched inside the company you set on the server.
Who it is for
| Companies that already send with Amazon SES and want Odoo on the same account. | |
| Marketing teams that need bounces and complaints out of their lists without exports. | |
| Admins who want the AWS key to stay with system administrators only. |
Key features
Screens from a test database. The SES and SNS answers were simulated, no AWS account was contacted.
Amazon SES on the outgoing mail server
Choose Amazon SES API next to the usual ways to authenticate, then fill in Region and key on the Amazon SES tab.
| Access key and secret are readable by system administrators only |

Account status and SNS endpoint
Sending status and quota from your SES account, your SNS topics, the endpoint URL to subscribe and the confirmed topic.

Every bounce, complaint and delivery
Feedback per recipient with bounce type, subtype and the diagnostic code from the receiving server.

Linked to the email it belongs to
The Message-ID header or the SES message ID finds the Odoo message, so the right notification is marked.

Blacklist kept up to date
Hard bounces and complaints land on the standard Odoo blacklist with the reason.
| Can be switched off per server |

What went out through the API
SES message ID next to the Odoo Message-ID for each email sent through the API.

How it works
| 1 | IAM user. Create an IAM user allowed to call ses:SendRawEmail and ses:GetAccount and make an access key. |
| 2 | Mail server. Settings > Technical > Outgoing Mail Servers > New: choose Amazon SES API, enter the Region and key, press Test Connection. |
| 3 | Verified sender. Verify your domain in SES and set it as FROM Filtering on the server. |
| 4 | Feedback. Press Make SNS endpoint URL, list your topic ARN, and subscribe the URL to that topic (HTTPS). Point SES bounce and complaint notifications at the topic. |
| 5 | Send. Odoo mail goes out through SES; bounces and complaints come back by themselves. |
Settings
| AWS Region (Amazon SES) | For example eu-west-1. |
| Access Key ID / Secret Access Key (Amazon SES) | IAM key of the sending user. |
| Configuration Set (Amazon SES) | Optional configuration set name. |
| Tag With Database (Amazon SES) | Adds the odoo_db email tag. |
| Company (Amazon SES) | Contacts of this company (and shared ones) get the bounce. |
| SNS Topic ARNs (Amazon SES) | Only these topics are accepted. |
| Blacklist Hard Bounces and Complaints (Amazon SES) | On by default. |
FAQ
API or SMTP?
The API needs no open SMTP port and keeps the SES message ID. SMTP works with the SES SMTP endpoint if you prefer it; the password is made from your key for you.
Do I need an AWS SDK?
No. Signing is done in the module with the Python standard library.
How are SNS messages checked?
Topic in your list, signing certificate from an https sns.<region>.amazonaws.com address issued to sns.amazonaws.com, and the SHA1 or SHA256 RSA signature of the documented fields.
What about the SES sandbox?
Test Connection tells you if the account is still in the sandbox. In the sandbox SES only delivers to verified addresses.
Does it need Email Marketing?
No. With Email Marketing installed, bounces also update mailing contacts and traces.
Compatibility and support
Odoo 19 Community and Enterprise. Depends on Discuss (mail); works with Email Marketing. Amazon SES API v2 and Amazon SNS.
Questions before or after you buy: modvantaapps@gmail.com. We answer setup questions and fix bugs.
Buy Now - $15| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 683 |
| Technical Name |
mdv_amazon_ses_connector |
| License | OPL-1 |
| Website | https://modvantaapps.tech |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module