2
votes

I have a Bluehost shared server with an wordpress application. I also have Google Suite set up to send emails through my domain, which is working fine. Now I am trying to set up the wordpress application to send emails but they always end up in Spam. Looking at gmail, it gives me the below information.

SPF: SOFTFAIL com o IP X.X.X.X DKIM: 'FAIL' com o domínio domain.com.br

Received-SPF: softfail (google.com: domain of transitioning [email protected] does not designate X.X.X.X as permitted sender) client-ip=X.X.X.X; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) [email protected] header.s=default header.b=I3CqwZBH; spf=softfail (google.com: domain of transitioning [email protected] does not designate X.X.X.X as permitted sender) [email protected] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=domain.com.br; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Subject:Reply-To:From:To:Date:Sender:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XXX/XXXX/XXXX=; b=XXXXX XXX/+XXXX/XXX/XXXX/XXXX+XXX/XXXX+XXXX+XXXX+XXX XXX;

My SPF is set as: v=spf1 +include:_spf.google.com ~all

My DKIM is set as: google._domainkey 14400 IN TXT "v=DKIM1; k=rsa; p=XXXXX/XXX/XXXX+XXXX/XXXXXX"

How do I set up both entries to accept also script sent email from my own domain through the website as well as the GSuite settings?

Thanks in advance

1

1 Answers

2
votes

You need to add your bluehost IP to your SPF, since that's where you're sending from. Either find bluehost's own SPF record, or add your literal IP to your SPF record:

v=spf1 ip4:x.x.x.x include:_spf.google.com ~all

You may find that adding a or mx clauses may be easier, but the ip4 clause is better (faster for receivers to check) if you have a fixed IP.

Also note you never need to use + in SPF records as it's the default designator.

You don't appear to have any DKIM issues.