I'm looking for a way to test some email-sending capability when developing an app locally, i.e on http://localhost:[some-port]
I'm using Mandrill by Mailchimp with it's official Mandrill API Module on Node.js.
Mandrill requires to set some DKIM/SPF settings for the sending domain and I'm not sure how to set my localhost as a Sending Domain.
From their docs:
You'll need to add SPF and DKIM records and verify ownership of your sending domains before you can send email through your account. Mandrill will not send any email from unverified domains or domains without valid SPF and DKIM records, including public domains like gmail.com, yahoo.com, and more.
So basically Mandrill requires setting the Sending Domains and the DKIM/SPF settings for each domain
I've successfully setup my main & live (www.something.com) domain's settings but now I want to also setup localhost so I can test when doing local development
Not setting localhost as a Sending Domain, caused "rejected/unsigned" errors
Of course if I don't set localhost as Sending Domain, any attempts to send a message results in this error:
[ { email: 'foo@bar.com',
status: 'rejected',
_id: 'bdbd8317b1a14986852b93e12a24246e',
reject_reason: 'unsigned' } ]
Setting localhost as a Sending Domain
Is there an actual way to set localhost as a Sending Domain?
Note: I am already testing with a Test API key