I've tried this approach, but I found that most email providers aggressively filter out all incoming messages that don't come from validated sources. No matter what I tried deliverability of emails remained very spotty. I did configure DKIM, DMARC, SPIF, etc as suggested. But minimal improvements. Eventually ended up going with AWS SES.