Asked a similar question a few years ago, ended up switching to Mailgun out of frustration. However, after a while I did get PHP mail to work with Postfix, however since then I have moved to a new domain, and all emails are once again going to spam. Here is the header for an email I just attempted to send:
Delivered-To: REMOVED Received: by 10.28.61.9 with SMTP id k9csp2893351wma; Wed, 18 May 2016 09:46:21 -0700 (PDT) X-Received: by 10.194.143.66 with SMTP id sc2mr8618309wjb.105.1463589981978; Wed, 18 May 2016 09:46:21 -0700 (PDT) Return-Path: <firstname.lastname@example.org> Received: from tptennis.net (tptennis.net. [18.104.22.168]) by mx.google.com with ESMTP id wa2si11436041wjc.62.2016.05.18.09.46.21 for <REMOVED>; Wed, 18 May 2016 09:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of email@example.com designates 22.214.171.124 as permitted sender) client-ip=126.96.36.199; Authentication-Results: mx.google.com; dkim=pass firstname.lastname@example.org; spf=pass (google.com: domain of email@example.com designates 188.8.131.52 as permitted sender) firstname.lastname@example.org; dmarc=pass (p=NONE dis=NONE) header.from=tptennis.net Received: by tptennis.net (Postfix, from userid 33) id CCA8A440C9; Wed, 18 May 2016 16:46:20 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tptennis.net; s=mail; t=1463589980; bh=HZn9uvYSPY3pIaPJQU/WXOraQOjFGWTOhME4zzh4IFc=; h=To:Subject:From:Reply-To:Date:From; b=ZaTGT3mnU5SCD/LAtBAt3c4fMdVjTd0DZrpFwicLnrQKnKW1UutAEt2Rk8fO51MfR KQoSPRrPMpuoSUdZggXc28h1pzOMYjDCtelTOUqMkflf/K65N15aOZXgY6J4xADIOH qHeqiACOvzrRonOPxzEPIGSiYeNVTOiu+DQZlGpo= To: REMOVED Subject: Lost username From: TP Tennis <email@example.com> Reply-To: firstname.lastname@example.org Organization: TP Tennis Message-Id: <20160518164620.CCA8A440C9@tptennis.net> Date: Wed, 18 May 2016 16:46:20 +0000 (GMT) You requested to have your username at TP Tennis sent back to you. Your username is: username
Any help is appreciated
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!