db-sync
db-sync copied to clipboard
Email notification using AWS SES
Email notifications fail when using AWS SES SMTP server. The smtp_functions.py script does not log the actual error message.
Commenting out lines 45 and 46 allows mail to be sent through SES Modifying the except on line 53 and 54 with the following led me to the issue
except Exception as err:
logging.debug(f"Failed to send notification email with error: {err}")
As a work around I am including the below in my docker run command to use the modified version of the script
-v /path/to/host/smtp_functions.py:/mergin-db-sync/smtp_functions.py