Title: Wrong from email for file guard notifications
Last modified: June 24, 2022

---

# Wrong from email for file guard notifications

 *  Resolved [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * (@matthiaspabst)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-from-email-for-file-guard-notifications/)
 * Hi!
 * I’m using [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/) to set 
   a “from email” like [wordpress@domain.com](https://wordpress.org/support/topic/wrong-from-email-for-file-guard-notifications/wordpress@domain.com?output_format=md).
 * All NinjaFirewall notifications respect this setting and messages are sent by
   wordpress@ except the file guard notifications. These are always sent from postmaster@.
   Why?
 * I’m experiencing this behavior on multiple websites on different servers.
 * Best regards
    Matthias

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

 *  Plugin Author [nintechnet](https://wordpress.org/support/users/nintechnet/)
 * (@nintechnet)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-from-email-for-file-guard-notifications/#post-15768130)
 * The reason is because File Guard’s emails are sent by the firewall before WordPress
   loads, it isn’t possible to use the wp_mail() function.
    You can change the “
   from” by using the [mail.force_extra_parameters](https://www.php.net/manual/en/mail.configuration.php)
   directive in your .user.ini file: `mail.force_extra_parameters = -femail@domain.
   tld`
 * Note the `-f` parameter prepend to the email address, which stands for “force”.
 * Alternatively, if you have many sites on the server, you can make the change 
   to the server’s main php.ini configuration so that it will apply to all sites.
 *  Thread Starter [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * (@matthiaspabst)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-from-email-for-file-guard-notifications/#post-15773307)
 * [@nintechnet](https://wordpress.org/support/users/nintechnet/) Thanks for the
   explanation and the workaround. Unfortunately, it doesn’t work with .user.ini
   and php.ini. But maybe my webhoster doesn’t allow to change this parameter.

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

The topic ‘Wrong from email for file guard notifications’ is closed to new replies.

 * ![](https://ps.w.org/ninjafirewall/assets/icon-256x256.png?rev=976137)
 * [NinjaFirewall (WP Edition) - Advanced Security Plugin and Firewall](https://wordpress.org/plugins/ninjafirewall/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninjafirewall/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninjafirewall/)
 * [Active Topics](https://wordpress.org/support/plugin/ninjafirewall/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninjafirewall/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninjafirewall/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Matze Pabst](https://wordpress.org/support/users/matthiaspabst/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/wrong-from-email-for-file-guard-notifications/#post-15773307)
 * Status: resolved