Skip to main content
License: AGPL-3

Mail tracking for Mailgun

This module integrates mail_tracking events with Mailgun webhooks.

Mailgun (https://www.mailgun.com/) 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.

Configuration

You must configure Mailgun webhooks in order to receive mail events:

  1. Got a Mailgun account and validate your sending domain.

  2. Go to Webhook tab and configure the below URL for each event:

https://<your_domain>/mail/tracking/all/<your_database>

Replace ‘<your_domain>’ with your Odoo install domain name and ‘<your_database>’ with your database name.

In order to validate Mailgun webhooks you have to configure the following system parameters:

  • mailgun.apikey: You can find Mailgun api_key in your validated sending domain.

  • mailgun.api_url: It should be fine as it is, but it could change in the future.

  • mailgun.domain: In case your sending domain is different from the one configured in mail.catchall.domain.

  • mailgun.validation_key: If you want to be able to check mail address validity you must config this parameter with your account Public Validation Key.

You can also config partner email autocheck with this system parameter:

  • mailgun.auto_check_partner_email: Set it to True.

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.

Try me on Runbot

Known issues / Roadmap

  • There’s no support for more than one Mailgun mail server.

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 smashing it by providing a detailed and welcomed feedback.

Credits

Images

Contributors

Maintainer

Odoo Community Association

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.

To contribute to this module, please visit https://odoo-community.org.

Metadata

Release files for odoo10-addon-mail-tracking-mailgun 10.0.1.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo10-addon-mail-tracking-mailgun 10.0.1.2.2
File Interpreter ABI Platform Actions
odoo10_addon_mail_tracking_mailgun-10.0.1.2.2-py2-none-any.whl Python 2 none any Details for odoo10_addon_mail_tracking_mailgun-10.0.1.2.2-py2-none-any.whl

Release files / odoo10_addon_mail_tracking_mailgun-10.0.1.2.2-py2-none-any.whl

Download URL odoo10_addon_mail_tracking_mailgun-10.0.1.2.2-py2-none-any.whl
Size 96.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d5e0e2e3cf0726ed1c04fbe227cf5f3cd06f5053e083c87ae5c61861162f0ca1
BLAKE2b-256 checksum
How to use checksums
d2072380db4c7ada059a176f9a0aa20363fdf3d753163fe4babd4b644c66b886
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.5

Security for odoo10-addon-mail-tracking-mailgun 10.0.1.2.2

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.

Release history Release notifications | RSS feed

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page