Merged in release/2022-09-23 (pull request #586)

Prevent no reply loop
This commit is contained in:
Patrick Fic
2022-09-24 18:05:24 +00:00

View File

@@ -226,6 +226,11 @@ exports.emailBounce = async function (req, res, next) {
messageId = header.value;
}
});
if (replyTo === "noreply@imex.online") {
res.sendStatus(200);
return;
}
//If it's bounced, log it as bounced in audit log. Send an email to the user.
const result = await client.request(queries.UPDATE_EMAIL_AUDIT, {
sesid: messageId,