Title: Whitelisting WordPress System emails
Last modified: October 6, 2020

---

# Whitelisting WordPress System emails

 *  [edtrude](https://wordpress.org/support/users/edtrude/)
 * (@edtrude)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/)
 * Hello,
 * I have a spam filter in place and I use SPF hard fails on my email validation
   and I recently had WordPress password emails that were caught in quarantine for
   potentional spoofing. They were sent from wordpress@My_actual_domain_here.com
   and they failed the SPF check because they are not coming from my email server
   IP Address. When I looked at the IP from where the WordPress password reset came
   from I got several different IPs that WordPress uses to send the password Resets.
   My question is there a block of IPs that I can add to my SPF record that will
   prevent these emails from failing the SPF check?
 * So far I found that the password resets come from at least 3 different IP:
    23.253.183.221
   23.253.183.219 23.253.183.214
 * Running an IP address lookup I can confirm these are WP IPs running a RackSpace
   Hosted email server. Any Help is greatly appreciated. Thanks
    -  This topic was modified 5 years, 7 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

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

 *  Moderator [Yui](https://wordpress.org/support/users/fierevere/)
 * (@fierevere)
 * 永子
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499598)
 * SPF records are DNS records, WordPress has nothing to do about them.
    You can
   use this helper tool to construct SPF record for your domain: [https://www.spfwizard.net/](https://www.spfwizard.net/)
 * then edit your DNS zone (somewhere in your hosting control panel or even at domain
   registrar) and use whatever you have generated.
 * Be aware that changes are not immediately taking effect, you will need to wait
   some time (usually 1 day is typical, but really its as long as your DNS zone 
   TTL)
 *  Thread Starter [edtrude](https://wordpress.org/support/users/edtrude/)
 * (@edtrude)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499617)
 * I know that SPF records are DNS records. what I am asking about is WHO sends 
   the password reset emails. Its not me, our my email server. WordPress uses an
   email farm that sends out password reset emails and I need to figure out what
   range of IP WP is using. My domain registrar/My Public IP is NOT where these 
   emails are coming from.
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499644)
 * The IP address would be the address of your web server.
 *  Thread Starter [edtrude](https://wordpress.org/support/users/edtrude/)
 * (@edtrude)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499697)
 * [@sterndata](https://wordpress.org/support/users/sterndata/) So you are saying
   when you install WordPress it also installs an email server on the WordPress 
   Platform? From processing the email header information that I received from the
   password reset email It looks to me like WordPress uses an email Relay to send
   these emails. That is why when I received 3 different password reset emails they
   all came from 3 different IP Address which are used by WordPress.
 * [https://whatismyipaddress.com/ip/23.253.183.221](https://whatismyipaddress.com/ip/23.253.183.221)
   
   [https://whatismyipaddress.com/ip/23.253.183.214](https://whatismyipaddress.com/ip/23.253.183.214)
   [https://whatismyipaddress.com/ip/23.253.183.219](https://whatismyipaddress.com/ip/23.253.183.219)
 * Look at the hostname listed for these IP Addresses: Hostname: mail-183-221.wpengine.
   com
    That is a WordPress Email server. Looks like all IPs from 23.253.183.209-
   225 are all mail-183-X.wpengine.com (Hostname) IPs.
 * Test this yourself. Request a WordPress password reset email and observe the 
   email header and IP address from where the email came from. I quarantee it will
   be from the same IP address or another block of IPs that WordPress uses
 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499726)
 * No, I’m not saying that at all. I’m saying that when WP sends a reset mail, it
   comes from the IP of your web server *unless* you’re using an SMTP plugin. Which
   makes me think an [SMTP plugin](https://wordpress.org/plugins/search/smtp) might
   be the best bet for you as that will run all outgoing email from the server through
   a well-known email system.
 * **It looks like YOUR site is set up already to use a mail server via the mailgun
   service.**
 *  Moderator [Yui](https://wordpress.org/support/users/fierevere/)
 * (@fierevere)
 * 永子
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499751)
 * > WordPress uses an email farm that sends out
 * If you have SMTP plugin, WordPress delivers mail to SMTP server specified in 
   its settings.
    If you dont have SMTP plugins, WordPress just sends message to
   PHP mail() function, which uses php.ini settings and usually sends message to
   system MTA,
 * In both cases message route can be different, as MTA can use various settings,
   source IPs, backup relays.
    Source IP shouldnt necessarily match your server 
   IP, it can differ if your host will decide to make a “distributed” system.
 * For more info contact your webhost.
 *  Thread Starter [edtrude](https://wordpress.org/support/users/edtrude/)
 * (@edtrude)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499770)
 * Interesting. I will have to reach out to the web developer and see what SMTP 
   settings are defined right now. Thank you for the direction
 *  Moderator [Yui](https://wordpress.org/support/users/fierevere/)
 * (@fierevere)
 * 永子
 * [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499940)
 * You can just check your installed plugins.
    Its possible to redefine WordPress’s
   PHPMailer rules via filters (i.e. in wp-config.php or functions.php), but i havent
   seen anyone been doing it in real. But many people use plugins to reroute mail,
   WordPress’s own settings are very crude.

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

The topic ‘Whitelisting WordPress System emails’ is closed to new replies.

## Tags

 * [dns](https://wordpress.org/support/topic-tag/dns/)
 * [email issues](https://wordpress.org/support/topic-tag/email-issues/)
 * [spf](https://wordpress.org/support/topic-tag/spf/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 3 participants
 * Last reply from: [Yui](https://wordpress.org/support/users/fierevere/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/whitelisting-wordpress-system-emails/#post-13499940)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
