Unknown error: permanent error (521): 5.3.0

Hi everyone, How do I remove the following Cloudflare Workers error message: "Rejected reason: Upstream error, please check https://developers.cloudflare.com/email-routing/postmaster for possible reasons why. Bdu5l2V6jTrN" See the attached screenshot image. Regards, Hal DevCED Team
Postmaster · Cloudflare Email Routing docs
Reference page with postmaster information for professionals, as well as a known limitations section.
No description
1 Reply
CFORED
CFOREDOP13mo ago
Snippet code: export default { async email(message, env, ctx) { /** * Route all email traffic to imap.xxxx.com:10025 */ const destinationServer = 'imap.xxxx.com:10025'; const destinationStream = await message.pipeTo(destinationServer); // Check if the email was successfully delivered to the destination server if (!destinationStream.ok) { // Handle the error throw new Error('Failed to deliver email to destination server'); } // Close the destination stream await destinationStream.close(); } } Rejected reason: Unknown error: permanent error (521): 5.3.0 Upstream error, please check https://developers.cloudflare.com/email-routing/postmaster for possible reasons why. kxgHrM5oWf65 Rejected reason: Unknown error: permanent error (550): 5.4.6 Email was forwarded too many times. 8EZifBH2aX33
Postmaster · Cloudflare Email Routing docs
Reference page with postmaster information for professionals, as well as a known limitations section.
Want results from more Discord servers?
Add your server