Unnecessary Email Error

Hey,

Guys I need you help in normalizing my Email settings, ERP is generating Hundreds of unsuccessful Emails, that’s why I am not able to get the Emails on time from the ERP system and the OTP which are generated through ERP.
Because of this reason OTP expired and I am not able to login the system again.

image

Have you figured out what DocType in ERPNext is trying to send all those emails?

Your first steps should be to check what’s causing this. Open any of the emails in Email Queue and check from where these are generated and why they aren’t going through. To force send, you can hit the Send Now button and see if it goes through or causes any error. The error message will be captured in the queue itself.

The scheduler keeps flushing out pending emails every 5 odd minutes. Since these emails aren’t going out, they’re likely just building up the queue causing delays in other emails as well.

Show as cc
Administrator admin@example.com
Message
Content-Type: multipart/mixed; boundary=“===============0430098629033952374==”
MIME-Version: 1.0
Message-Id: E1lPLqM-003n87-JZ@domain9000.domainhost.com
isnotification:
X-Original-From: Mail Delivery System erp@xyzcompany.com
Date: Thu, 25 Mar 2021 13:26:43 -0000
To:
Reply-To: erp@xyzcompany.com
X-Frappe-Site: http://site1.local
CC: Administrator admin@example.com
Subject: Mail delivery failed: returning message to sender
From: Erp erp@xyzcompany.com

–===============0430098629033952374==
Content-Type: multipart/alternative; boundary=“===============3927110370994772042==”
MIME-Version: 1.0

–===============3927110370994772042==
Content-Type: text/plain; charset=“utf-8”
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Thu, 25 Mar 2021 08:56:28 -0000

Mail delivery failed: returning message to sender | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Thu, 25 Mar 2021 03:51:44 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Wed, 24 Mar 2021 23:11:11 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Wed, 24 Mar 2021 18:29:36 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Wed, 24 Mar 2021 13:10:36 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Wed, 24 Mar 2021 08:49:23 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Wed, 24 Mar 2021 03:34:32 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 23:17:00 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 18:28:34 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 14:17:54 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 10:06:35 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 05:04:43 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Tue, 23 Mar 2021 00:59:34 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Mon, 22 Mar 2021 20:25:39 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Mon, 22 Mar 2021 16:17:23 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Mon, 22 Mar 2021 11:26:55 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Mon, 22 Mar 2021 07:17:29 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Mon, 22 Mar 2021 03:18:48 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Sun, 21 Mar 2021 23:02:08 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Sun, 21 Mar 2021 18:09:08 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Sun, 21 Mar 2021 14:16:16 -0000

Mail delivery failed: returning message to sender | | =20
— =20
| |

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returning message to sender

Date: Sun, 21 Mar 2021 10:37:20 -0000

Mail delivery failed: returning message to sender | =20

–===============3927110370994772042==
Content-Type: text/html; charset=“utf-8”
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable

Mail delivery failed: returning message to sender .email-footer-container > div:not(:last-child) {ma= rgin-bottom:5px !important} .table > thead:first-child > tr:first-child > th {border-top:none !importan= t}
=09

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returni= ng message to sender

Date: Thu, 25 Mar 2021 08:56:28 -0000<= /p>

=09
=09
Mail delivery failed: returning message to sender

<table style=3D"" border=3D"0">
	<tbody><tr>
		<td style=3D'font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", =

“Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”, “Fira Sans”, “Droid Sans”, “Helv=
etica Neue”, sans-serif’>
<table border=3D"0">

=09

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returni= ng message to sender

Date: Thu, 25 Mar 2021 03:51:44 -0000<= /p>

=09
=09
Mail delivery failed: returning message to sender

<table style=3D"" border=3D"0">
	<tbody><tr>
		<td style=3D'font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", =

“Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”, “Fira Sans”, “Droid Sans”, “Helv=
etica Neue”, sans-serif’>
<table border=3D"0">

=09

From: Erp <erp@xyzcompany.com>

Subject: Mail delivery failed: returni= ng message to sender

Date: Wed, 24 Mar 2021 23:11:11 -0000<= /p>

=09
=09
Mail delivery failed: returning message to sender

<table style=3D"" border=3D"0">
	<tbody><tr>
		<td style=3D'font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", =

“Roboto”, “Oxygen”, “Ubuntu”, “Cantarell”, “Fira Sans”, “Droid Sans”, “Helv=
etica Neue”, sans-serif’>
<table border=3D"0">

No one is sending the emails from ERP but still ERP creating lots of Email and for that reason all Emails are in Que.

You might have a Flying Dutchman email message.

An email arrives or is sent whose address is unrecognized, so ERPNext sends it back with “Mail delivery failed”, the remote email service gets the email, tries to send it on but finds no such address. It then, creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize, so ERPNext sends it back with “Mail delivery failed”. The remote email service gets the email, tries to send it on but finds no such address. It then creates and sends back to ERPNext its own “Mail delivery failed” with a reply-to that ERPNext does not recognize