What Is a Return-Path Email Address?

What Is a Return-Path Email Address? (And How to Set It in WordPress)

Summarize:ChatGPTPerplexity

Has your WordPress email ever bounced without anyone noticing? The return path decides where that bounce goes, and whether you ever see it.

WordPress sends email through your server. It doesn’t set a return path you control. So a failed password reset or form notification can bounce to an address nobody reads.

In this guide, I’ll walk you through how to set the return path with WP Mail SMTP.

What a Return-Path Address Does

A return-path address is the hidden address where mail servers send bounce messages. It’s also called the envelope sender, the MAIL FROM address, or the bounce address.

Recipients don’t see it in their inbox. Mail servers use it when a message can’t be delivered.

Here’s what the return path controls

  • Bounces: Non-delivery reports go to this address, not to your From address.
  • SPF checks: The receiving server checks SPF against the return-path domain.
  • DMARC alignment: SPF only counts toward DMARC when this domain matches your From domain.

Where the Return-Path Header Comes From

Your site doesn’t write the Return-Path header itself. It sends an envelope sender with the SMTP MAIL FROM command.

The receiving server then adds the header at final delivery. According to RFC 5321, the server “inserts a return-path line at the beginning of the mail data.”

That’s why the return path can differ from the From address you set.

How to Find the Return-Path in an Email

You can see it in the raw source of any email you receive. In Gmail, open the message, click the three-dot menu, and choose Show original.

Gmail 'Show original' view of a WordPress email with the Return-Path line highlighted

The top of the raw message looks something like this:

Return-Path: <[email protected]>
Received-SPF: pass (google.com: domain of [email protected] designates 203.0.113.10 as permitted sender)
From: My Site <[email protected]>
Reply-To: [email protected]

In this example, all 3 addresses sit on the same domain. That’s the setup you want.

Return-Path vs From vs Reply-To

These 3 addresses do different jobs. Only the From address is visible to the person reading your email.

AddressWho sees itWhat it controlsExample
FromThe recipientThe sender name and address shown in the inbox[email protected]
Reply-ToThe recipient’s email appWhere a reply goes when someone clicks Reply[email protected]
Return-PathMail servers onlyWhere bounces go, and which domain SPF checks[email protected]

They can all be different addresses. Email providers often use their own bounce subdomain for the return path, for example.

How the Return Path Affects SPF and DMARC

The return path is the address SPF checks. If it’s on the wrong domain, SPF passes for that domain instead of yours.

SPF checks the Return-Path domain and DMARC passes when it aligns with the From domain, so the email reaches the inbox

SPF Checks the Return-Path Domain

SPF looks up the domain in the envelope sender, not the visible From address. RFC 7208 requires SPF checkers to test the MAIL FROM identity.

So if your return path is [email protected], SPF checks your host’s domain. Your own SPF record never gets used.

DMARC Alignment and Custom Return-Path Domains

DMARC asks a second question: does the domain that passed SPF match your From domain?

Relaxed alignment accepts a subdomain of the same domain. So bounces.example.com aligns with example.com.

If SPF doesn’t align, DKIM can still pass DMARC for you. That’s why most email providers ask you to set up both.

Pro Tip: Are your DMARC checks failing? Our guide on How to Fix a DMARC Fail in WordPress covers all the troubleshooting steps in detail.

Why WordPress Emails Lose Their Bounces

WordPress uses PHP’s mail function by default. Unless something sets the email sender, your server’s mail program picks one.

That can be a system address on the server. It isn’t an inbox you check.

So when a password reset bounces, the bounce report lands somewhere you’ll never look. You won’t know the address was wrong, and the user won’t get the email.

Return Path off sends WordPress bounces to an unknown server address; Return Path on sends them back to your inbox

The fix is to send through a proper mailer and set the return path yourself.

Fix Your WordPress Emails Now

How to Set the Return Path in WordPress With WP Mail SMTP

An SMTP plugin like WP Mail SMTP simplifies the process of adding a return path in WordPress. Aside from that, it also fixes your WordPress site’s email deliverability issues.

After setting it, WP Mail SMTP copies your From Email into PHPMailer’s Sender property. PHPMailer uses that as the envelope sender, so it becomes the return path.

Step 1: Install WP Mail SMTP

Before getting started, you’ll need to install and activate the WP Mail SMTP plugin on your WordPress site. It’s the best SMTP plugin for WordPress, making the whole process super easy.

To install the WP Mail SMTP plugin, log in to your WordPress admin area and navigate to Plugins » Add Plugin. Once here, type “wp mail smtp” in to the search bar and

Search WP Mail SMTP

Then click Install Now next to the WP Mail SMTP plugin.

Install WP Mail SMTP plugin

Once the installation completes, the button changes to “Activate”. Click on it to activate the plugin.

Activate plugin

Step 2: Open the WP Mail SMTP Settings

In your WordPress dashboard, go to WP Mail SMTP » Settings. You’ll land on the General tab.

WP Mail SMTP settings page

Scroll down past the From Email and From Name fields.

Step 3: Turn On the Return Path Toggle

Find the Return Path toggle and make sure it’s on. Its help text explains what it does:

Return Path indicates where non-delivery receipts - or bounce messages - are to be sent.
If unchecked, bounce messages may be lost.
WP Mail SMTP Settings General tab with the Return Path toggle switched on

Since version 4.7.1 of WP Mail SMTP, this toggle is on by default. So for most sites, this step is a quick check.

Click Save Settings if you changed anything.

Step 4: Send a Test and Check the Header

Go to WP Mail SMTP » Tools and open the Email Test tab. Enter an inbox you can open in the Send To field and click Send Email.

WP Mail SMTP Tools Email Test tab with the Send To field filled in

Open the test email and view its raw source, as shown earlier. The Return-Path line should show your From Email.

Advanced: Setting It With a wp-config.php Constant

You can also lock the setting in your wp-config.php file. To do so, add these lines above the “That’s all, stop editing!” comment:

Heads up! This section contains PHP code and is intended for developers. We offer this code as a courtesy but don’t provide support for code customizations or 3rd party development.

// Let WP Mail SMTP read its settings from wp-config.php.
define( 'WPMS_ON', true );
// Send bounces to the From Email address.
define( 'WPMS_SET_RETURN_PATH', true );

WP Mail SMTP ignores its constants unless WPMS_ON is set to true. That’s why you need both lines.

Once both constants are set to true, WP Mail SMTP grays out the toggle. Remove the lines to manage it from the dashboard again.

Which WordPress Mailers Let You Control the Return Path

WP Mail SMTP only shows the Return Path toggle for mailers that accept it. For the others, the email provider sets the return path itself.

MailerReturn Path toggleWho sets the return path
Default (none)ShownWP Mail SMTP, using your From Email
Other SMTPShownWP Mail SMTP, using your From Email
MailgunShownWP Mail SMTP passes your From Email to Mailgun
SendLayer, SendGrid, Brevo, Postmark, SparkPost, Mailjet, Mandrill, MailerSend, Resend, SMTP2GO, SMTP.com, Elastic EmailHiddenThe provider
Google / GmailHiddenYour connected Gmail account

The hidden toggle isn’t a missing feature. API providers handle bounces on their own servers. They usually use the domain you verified with them.

Want a branded bounce domain with those providers? Set it up in the provider’s dashboard. Many call it a custom return path or custom bounce domain.

Note: With the Google / Gmail mailer, WP Mail SMTP switches the From address to your Gmail account if your From Email isn’t one of its aliases. The return path follows it.

Troubleshooting Return Path Issues

Most return path problems come down to the mailer or the From mailbox. Here are the 3 I’d check first.

The Return Path Toggle Is Missing

Your mailer sets its own return path, so WP Mail SMTP hides the toggle. Check the provider’s dashboard for a custom return path or bounce domain setting.

The Return Path Toggle Is Grayed Out

Both WPMS_ON and WPMS_SET_RETURN_PATH are set to true in your wp-config.php file. Change or remove them there.

If WPMS_SET_RETURN_PATH is set to false, it still overrides the setting. The toggle stays editable, but your change won’t take effect.

Bounces Still Aren’t Arriving

Confirm your From Email is a real mailbox that accepts mail. Then check its spam folder, since bounce reports can land there.

If you use an API mailer, the bounces go to the provider. Look for them in the provider’s logs or bounce reports.

Frequently Asked Questions

Here are answers to the questions people ask most about the return path.

Is the Return-Path the same as the From address?

No. The From address is what recipients see, and the return path is where bounces go. They’re often the same address in WordPress, but they don’t have to be.

Can I set the Return-Path to a different email address?

Not with the WP Mail SMTP toggle. It always uses your From Email, and there’s no field for a custom address. For a separate bounce address, use your provider’s custom return path setting or custom code.

Does the Return Path affect email deliverability?

Yes, indirectly. SPF checks the return-path domain.

DMARC needs that domain to align with your From domain. A mismatched return path can cost you an SPF pass under DMARC.

What happens if Return Path is turned off in WP Mail SMTP?

It depends on your mailer:

  • Default (none): Your server’s mail program picks the envelope sender. Bounces may go to an address you don’t monitor.
  • Other SMTP: PHPMailer falls back to your From address for MAIL FROM. Your SMTP server may still rewrite it.
  • Mailgun: WP Mail SMTP stops passing your From Email to Mailgun as the sender.

Next, Learn the Difference Between Hard and Soft Bounces

Once your bounces reach your inbox, you’ll need to read them. Our guide to hard vs soft bounces explains what each bounce code means. It also covers which ones need a fix.

Fix Your WordPress Emails Now

Ready to fix your emails? Get started today with the best WordPress SMTP plugin. If you don’t have the time to fix your emails, you can get full White Glove Setup assistance as an extra purchase, and there’s a 14-day money-back guarantee for all paid plans.

If this article helped you out, please follow us on Facebook and Twitter for more WordPress tips and tutorials.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPForms is funded, why it matters, and how you can support us.

David Ozokoye

David is a technical writer at WP Mail SMTP. He tests and documents new features and updates to the WP Mail SMTP plugin. Away from the computer, he enjoys playing video games and roller skating. Learn More

Try our Free WP Mail SMTP plugin

Use your favorite SMTP provider to reliably send your WordPress emails.