Prevent no reply loop
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user