Jules
Jules

Reputation: 49

PHP Mail to Googlemail. All DNS Entries exist. Still no mail to googlemail

i added everything google mentioned. DKIM, DMARC and SPF. Still no luck. What am i missing? Is there something wrong with my entries?

My inital question: PHP Mail to Googlemail. SPF only

DKIM:

Name: dkim._domainkey.SUBDOMAIN.DOMAIN

Value: "v=DKIM1; k=rsa; p=PUBLICKEYVALUE"

TTL: 3600


DMARC:

Name: _dmarc.DOMAIN

Value: "v=DMARC1; p=none; pct=100; rua=mailto:emailadress"

TTL: 3600


SPF:

Name: SUBDOMAIN.DOMAIN

Value: "v=spf1 include:_spf.google.com ~all"

TTL: 3600


Do i need to add anything to my email headers?

Upvotes: -2

Views: 83

Answers (1)

Jules
Jules

Reputation: 49

For anyone having similar problems, I got it to work, finally.

It did not work because of a few things:

  • You might need to add your IP address to the SPF DNS record.

    v=spf1 include:_spf.google.com ip4:YOUR-IP ~all

  • Your private key needs to be created like this (not with aes128):

    openssl genrsa -aes256 -passout pass:YOURPASS -out dkim_rsa.private 2048

    openssl rsa -in dkim_rsa.private -out dkim_rsa.public -pubout -outform PEM

Upvotes: 1

Related Questions