Error: Your credentials are incorrect

Error: Your credentials are incorrect

This is how the error message might look in AppMail:

Mailgun error message

Why am I receiving this error message, and how do I fix it?

When attempting to add a delivery server in AppMail, you might encounter the error message: "Cannot create the permanent_fail webhook: Your credentials are incorrect", this error typically occurs during the validation of your delivery server, and the root cause is usually an incorrect API key.
Here’s a breakdown of why this happens and how to resolve the issue.

Why do I get this error when trying to validate the delivery server?

This error appears because the wrong API key has been entered during the validation process. In most cases, users mistakenly input the API key generated from the Domain Settings > Sending API Keys section, which leads to this issue.

How to fix this error:

To resolve the error, you need to use the correct API key, which is found in Account > API Security. Here’s how to get the right API key:

Click on the arrow next to your name in the top-right corner of the dashboard to access a dropdown menu. Select API Security from the list.

Mailgun API Settings Key

Generate a new API key by clicking Add new key.

Use this new API Key in your delivery server in AppMail.