Mail tracking for Mailgun
This module integrates mail_tracking events with Mailgun webhooks.
Mailgun is a service that provides an e-mail sending infrastructure through an SMTP server or via API. You can also query that API for seeing statistics of your sent e-mails, or provide hooks that processes the status changes in real time, which is the function used here.
Table of contents
Installation
If you’re using a multi-database installation (with or without dbfilter option) where /web/databse/selector returns a list of more than one database, then you need to add mail_tracking_mailgun addon to wide load addons list (by default, only web addon), setting --load option.
Example: --load=web,mail_tracking,mail_tracking_mailgun
Configuration
To configure this module, you need to:
Go to Mailgun, create an account and validate your sending domain.
Go back to Odoo.
Go to Settings > General Settings > Discuss > Enable mail tracking with Mailgun.
Fill all the values. The only one required is the API key.
Optionally click Unregister Mailgun webhooks and accept.
Click Register Mailgun webhooks.
You can also config timeout for mailgun with this system parameter:
mailgun.timeout: Set it to a number of seconds.
Usage
In your mail tracking status screens (explained on module mail_tracking), you will see a more accurate information, like the ‘Received’ or ‘Bounced’ status, which are not usually detected by normal SMTP servers.
It’s also possible to make some checks to the partner’s email addresses against the Mailgun API:
Check if the partner’s email is in Mailgun’s bounced list.
Check the validity of the partner’s mailbox.
Force the partner’s email into Mailgun’s bounced list or delete from it.
It’s also possible to manually check a message mailgun tracking when the webhook couldn’t be captured. For that, go to that message tracking form, press the button Check Mailgun. It’s important to note that tracking events have quite a short lifespan, so after 24h they won’t be recoverable.
Known issues / Roadmap
There’s no support for more than one Mailgun mail server.
Automate more webhook registration. It would be nice to not have to click the “Unregister Mailgun webhooks” and “Register Mailgun webhooks” when setting up Mailgun in Odoo. However, it doesn’t come without its conceptual complexities.
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
-
Antonio Espinosa
Carlos Dauden
Pedro M. Baeza
David Vidal
Rafael Blasco
Ernesto Tejeda
Jairo Llopis
Carlos Roca
Other credits
Images
Mailgun logo: SVG Icon.
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/mail project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Metadata
Release files for odoo-addon-mail-tracking-mailgun 19.0.1.0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_mail_tracking_mailgun-19.0.1.0.1.1-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_mail_tracking_mailgun-19.0.1.0.1.1-py3-none-any.whl |
Release files / odoo_addon_mail_tracking_mailgun-19.0.1.0.1.1-py3-none-any.whl
| Download URL | odoo_addon_mail_tracking_mailgun-19.0.1.0.1.1-py3-none-any.whl |
|---|---|
| Size | 150.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ab629a56563121b930beb2c601a610e4effab9b7050dbc2472b113bb666ad418
|
|
BLAKE2b-256 checksum How to use checksums |
c9dc0d1e22778c94b9edced847db85d2932124752b9e6b0eaacbffcd0012b6bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for odoo-addon-mail-tracking-mailgun 19.0.1.0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.