Scan your whole stack
From OX Research Newsroom
Are you using mailkube-django?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.2.0
mailkube-django was last scanned on 29 Nov 2026 at version 1.2.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.2.0 LATEST | 29 Nov 2026 | No rules fired |
| 1.1.2 | 26 Oct 2026 | No rules fired |
| 1.1.1 | 20 Oct 2026 | No rules fired |
Findings for v1.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.2.0; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Django email backend for mailkube.
Full product and API documentation: docs.mailkube.com/sdks/django.
Two backends ship in one distribution. Pick one with EMAIL_BACKEND.
backends.EmailBackend |
anymail_backend.EmailBackend |
|
|---|---|---|
| Extra dependencies | none beyond Django + the SDK | django-anymail |
send_mail, EmailMessage, EmailMultiAlternatives |
yes | yes |
| Attachments, cc/bcc, reply-to, custom headers | yes | yes |
Tags, scheduled send, templates, esp_extra |
yes | |
pre_send / post_send signals, anymail_status |
yes | |
Delivery and tracking events on Anymail's tracking signal |
yes | |
| Portable across ESPs | yes |
Choose the standalone backend if you just want Django mail to go through mailkube. Choose the Anymail one if you already use Anymail, want its extra message features, or want to keep the option of swapping providers.
Both send through the same SDK, so the wire behaviour is identical.
pip install mailkube-django
# or, for the Anymail backend:
pip install "mailkube-django[anymail]"
# settings.py
EMAIL_BACKEND = "mailkube_django.backends.EmailBackend"
MAILKUBE_API_KEY = "mk_..." # or the MAILKUBE_API_KEY env var
DEFAULT_FROM_EMAIL = "Acme <hello@yourdomain.com>"
from django.core.mail import send_mail
send_mail("Hello world", "It works!", None, ["customer@example.com"])
Optional settings: MAILKUBE_BASE_URL and MAILKUBE_TIMEOUT. Anything left unset falls
through to the SDK, which reads MAILKUBE_API_KEY / MAILKUBE_BASE_URL from the environment.
# settings.py
EMAIL_BACKEND = "mailkube_django.anymail_backend.EmailBackend"
ANYMAIL = {"MAILKUBE_API_KEY": "mk_..."}
from django.core.mail import EmailMultiAlternatives
message = EmailMultiAlternatives("Hello", "It works!", None, ["customer@example.com"])
message.attach_alternative("<p>It works!</p>", "text/html")
message.tags = ["welcome"]
message.send()
message.anymail_status.recipients["customer@example.com"].message_id
Supported Anymail features: tags, send_at, template_id, merge_global_data,
esp_extra, the send signals, and per-recipient anymail_status. Features the API has no
equivalent for (such as metadata and per-recipient merge_data) raise Anymail's usual
unsupported-feature error rather than being silently dropped.
# urls.py
from mailkube_django.webhooks import WebhookView
urlpatterns = [path("webhooks/mailkube/", WebhookView.as_view())]
# settings.py
MAILKUBE_WEBHOOK_SECRET = "whsec_..."
from django.dispatch import receiver
from mailkube import EmailSentEvent
from mailkube_django.webhooks import webhook_received
@receiver(webhook_received)
def handle(sender, event, **kwargs):
if isinstance(event, EmailSentEvent):
print(event.data.email_id, event.data.sent.recipient)
Signatures are verified by the SDK over the raw request body before the signal fires, and
event is one of the SDK's typed WebhookEvent models. An event type your installed SDK
version does not know arrives as UnknownEvent with its raw data intact, so a new
platform event never breaks a receiver. A delivery whose signature does not check out, or
whose body is not a readable event, gets a 400 and no signal.
The view also answers mailkube's registration probe. When you add the URL, mailkube calls
GET <url>?hub.mode=subscribe&hub.challenge=<token> and keeps the URL once the view echoes the
token. The probe works before MAILKUBE_WEBHOOK_SECRET is set, since mailkube shows the secret
only after registration. Register the URL exactly as routed, trailing slash included, because
mailkube follows no redirects.
With the Anymail backend, route mailkube's webhooks to the tracking view and receive them on
Anymail's tracking signal, as for any other ESP.
# urls.py
from mailkube_django.anymail_webhooks import MailkubeTrackingWebhookView
urlpatterns = [
path("anymail/mailkube/tracking/", MailkubeTrackingWebhookView.as_view(), name="mailkube_tracking_webhook"),
]
# settings.py
MAILKUBE_WEBHOOK_SECRET = "whsec_..." # or ANYMAIL = {"MAILKUBE_WEBHOOK_SECRET": "whsec_..."}
Deploy, then register https://<your host>/anymail/mailkube/tracking/ as a webhook endpoint. The
view answers the registration probe the same way WebhookView does, and checks the signature of
every delivery after that.
from anymail.signals import tracking
from django.dispatch import receiver
@receiver(tracking)
def handle(sender, event, esp_name, **kwargs):
if esp_name == "Mailkube" and event.event_type == "complained":
stop_mailing(event.recipient)
event.message_id is the id anymail_status reported for the message at send time, so a
receiver can find the message each event is about.
| mailkube event | event_type |
recipient |
Also set |
|---|---|---|---|
email.scheduled |
queued |
||
email.sent |
sent |
yes | |
email.delivered |
delivered |
yes | |
email.delivery_delayed |
deferred |
yes | mta_response |
email.bounced |
bounced |
yes | reject_reason="bounced", mta_response |
email.suppressed |
rejected, one event per address |
yes | reject_reason="blocked" |
email.failed |
failed |
description |
|
email.opened |
opened |
user_agent |
|
email.clicked |
clicked |
click_url, user_agent |
|
email.complained |
complained |
yes | |
| another type that names a message | unknown |
Every event also carries timestamp (when mailkube recorded the event), event_id (the
delivery's X-Webhook-Id, which stays the same across retries, with :<address> appended for
each address of a suppression), tags (the message's tag names) and esp_event (the whole
payload as JSON).
domain.status and webhook.status describe your account rather than a message, so the
tracking view acknowledges them without sending a signal. To receive them, register a second
endpoint routed to WebhookView and listen on webhook_received.
The view authenticates deliveries by their signature alone. Anymail's shared WEBHOOK_SECRET
basic-auth setting does not apply to it, and mailkube refuses endpoint URLs that carry
credentials, so register the URL without any.
Add "mailkube_django" to INSTALLED_APPS (optional) to have manage.py check warn
about a missing API key or a selected Anymail backend without the extra installed. Sending
works either way; the app registers nothing but those checks, and there are no models or
migrations.
See CONTRIBUTING.md for the development setup and the quality gates every change
must pass. Conventions live in .rules/, indexed by AGENTS.md. Security
issues: see SECURITY.md.
Apache-2.0 © 2026 Mail Tactic Corporation
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.