Title: API keys are automatically deleted after migration
Last modified: February 1, 2025

---

# API keys are automatically deleted after migration

 *  Resolved [Gulshan Kumar](https://wordpress.org/support/users/thegulshankumar/)
 * (@thegulshankumar)
 * [1 year, 4 months ago](https://wordpress.org/support/topic/api-key-gets-deleted/)
 * Every time I move the site from one host to another, I see the below error.
 * > FluentSMTP Plugin may not work properly. Looks like your Authentication unique
   > keys and salts are changed. Reconfigure SMTP Settings.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Ibrahim Sharif](https://wordpress.org/support/users/ibrahimsharif/)
 * (@ibrahimsharif)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/api-key-gets-deleted/#post-18335538)
 * Hello [@thegulshankumar](https://wordpress.org/support/users/thegulshankumar/),
 * The most likely cause of this is a security plugin (or potentially a server-level
   setting) that’s periodically changing your WordPress SALT keys. These keys are
   crucial for securing your WordPress installation, but they also impact how FluentSMTP
   securely stores your API credentials. When the SALT keys change, FluentSMTP essentially
   considers the stored credentials invalid and removes them, prompting you to reconfigure
   your SMTP settings.
 * **To prevent this from happening in the future, I highly recommend saving your
   FluentSMTP credentials directly within your `wp-config.php` file.** This should
   ensure they persist even when the SALT keys are regenerated.
 * After doing this, FluentSMTP will retrieve the credentials directly from the `
   wp-config.php` file, bypassing the database and preventing them from being lost
   during migrations or SALT key changes.
 * Let me know if you have any other questions or run into any issues during this
   process.
 *  Thread Starter [Gulshan Kumar](https://wordpress.org/support/users/thegulshankumar/)
 * (@thegulshankumar)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/api-key-gets-deleted/#post-18335549)
 * Understood.
 * Okay, now I will keep it by defining a constant.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘API keys are automatically deleted after migration’ is closed to new 
replies.

 * ![](https://ps.w.org/fluent-smtp/assets/icon.svg?rev=2458343)
 * [FluentSMTP - WP SMTP Plugin with Amazon SES, SendGrid, MailGun, Postmark, Google and Any SMTP Provider](https://wordpress.org/plugins/fluent-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/fluent-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/fluent-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/fluent-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fluent-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fluent-smtp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Gulshan Kumar](https://wordpress.org/support/users/thegulshankumar/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/api-key-gets-deleted/#post-18335549)
 * Status: resolved