After everyDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/jalmargyyk/ripe-updater/llms.txt
Use this file to discover all available pages before exploring further.
POST, PUT, or DELETE request to the RIPE database — whether it succeeds or fails — RIPE Updater can send you an email report. Each report contains the action taken, the prefix affected, the HTTP response code, any error messages returned by RIPE, a diff of what changed (for updates), the username of the NetBox user who triggered the webhook, and the hostname and IP of the RIPE Updater instance. This makes it straightforward to audit changes, catch failures early, and trace every RIPE DB modification back to the operator who made it in NetBox.
Enabling email reporting
SetMAIL_REPORT=yes and configure your SMTP connection. All four variables below are required when email reporting is enabled.
| Variable | Default | Description |
|---|---|---|
MAIL_REPORT | no | Set to yes to enable email reporting |
SMTP | 127.0.0.1 | Hostname or IP address of your SMTP server |
SMTP_STARTTLS | no | Set to yes to use STARTTLS when connecting |
SENDER_MAIL | — | From address for outgoing reports |
RECIPIENT_MAIL | — | Destination address for all reports |
smtplib. If SMTP_STARTTLS=yes, STARTTLS is negotiated after the connection is established. No authentication is configured beyond STARTTLS — if your SMTP server requires credentials, consider using an authenticated relay.
When emails are sent
An email is sent after every RIPE REST API call —POST, PUT, and DELETE — regardless of whether the call succeeded or failed. The email is dispatched by the notify() function in functions.py, which is called at the end of post_object(), put_object(), and delete_object().
This means you are always notified even when something goes wrong, so failures in RIPE DB do not go unnoticed.
Email content
Each report is a plain-text email structured as follows:| Field | Source |
|---|---|
| Subject | {ACTION} {prefix} has {succeeded|failed} |
| Action | HTTP method: POST, PUT, or DELETE |
| Prefix | The CIDR prefix that was operated on |
| Status | succeeded if response code is 200, otherwise failed |
| Response code | Raw HTTP status code from the RIPE REST API |
| Response codes doc | Link to the RIPE WHOIS REST API documentation for that action |
| RIPE errors | Error messages extracted from the RIPE API response body |
| Object diff | For PUT requests: a unified diff of the old vs. new object |
| Triggered by | The NetBox username from webhook['username'] |
| FQDN | Hostname of the RIPE Updater server |
| RIPE-Service source IP | Resolved IP address of the RIPE Updater server |
ripe_object section contains either the full new object (for POST and DELETE) or a line-by-line diff (for PUT), with + and - prefixes showing what changed.
Example PUT report
The following is a realistic example of what an update email looks like when a prefix’s country attribute is changed fromDE to NL:
Email is sent even when the RIPE API returns an error. If a
POST fails due to an overlap that cannot be automatically resolved, for example, you will still receive a report with the RIPE error messages and the HTTP response code — so you can investigate and act manually.