Sends Dyn email bounces and complaints to Logentries
- Log in to your Logentries account
- Add a new token based log
Requires Logentries Python library and Python Flask to be installed.
pip install logentries
pip install Flask
- Replace the
PORT
value with an open port in your environment - Set an ENV VAR
LOGENTRIES_TOKEN=your-le-token
- Run
dyn-listener.py
- Log into your Dyn account
- Open the the Integration view
- Scroll to the Postback URLs section of the Integration view
- Enter the Postback URLs for your email.
- This script supports Bounce and Complaint types
When an email you send through Email Delivery bounces, Email Delivery will record the bounce. If a bounce postback URL is set in your preferences, it will also post the requested information back to you automatically via that URL.
Enter the bounce postback URL in the following format:
http://SCRIPT_HOST_IP:PORT/bounce?e=@email&r=@bouncerule&t=@bouncetype&dc=@diagnostic&s=@status
When a recipient clicks “Report Spam” in their email client for a message you sent them, their email provider sends a message back to Email Delivery notifying them of this. Email Delivery records the complaint, and if the spam complaint postback URL is set, it also posts the information back to you via the specified URL.
Enter the complaint postback URL in the following format:
http://SCRIPT_HOST_IP:PORT/complaint?e=@email