Skip to main content

Emails sent to gmail are going to spam

Comments

6 comments

  • cPRex Jurassic Moderator

    Hey there!  I wouldn't expect the hostname to be related to the issue here.  All email headers will show the hostname of the machine.

    Is the online form using authentication?  As in, does the form send with an actual email address and uses a password to connect?

    0
  • Kumar Desai

    Thanks for the response. 

    "All email headers will show the hostname of the machine" >> so if I change the hostname, then the previous hostname will still show up on the email as 'sent from'?

    "Is the online form using authentication?  As in, does the form send with an actual email address and uses a password to connect?" >> No I just use a simple PHP form using mail() and our website email as the from address.

    Question: If I go ahead and change the hostname anyway will that crash our site?

     

     

    0
  • cPRex Jurassic Moderator

    Changing the hostname will not have any affect on your site.

    The ultimate solution will be to redo your form to use authentication.  Until that happens, the email will continue to reach the spam folder.

    0
  • Kumar Desai

    Ok thanks. I'll take a closer look at the authentication and if that fixes things.

    0
  • rbairwell

    When you click "Show original message2 in Gmail, does it give any indications as to why it might be classes as spam? It might have SPF/DKIM/DMARC details at the top of the page.

    Have you got reverse DNS setup so when Google looks up your IP address it gets your server hostname and when it looks up your hostname it gets your IP address?

    It might be worth signing up for Google's Postmaster service ( https://www.gmail.com/postmaster/ ) just in case it gives anything useful (it hasn't for me, but my server doesn't send a lot through Gmail) and/or use their troubleshooter at https://support.google.com/mail/troubleshooter/2696779 to see if that helps.

    0
  • Kumar Desai

    This was at the top of the email:

    SPF: SOFTFAIL with IP 209.12.345.41 Learn more
    DKIM: 'PASS' with domain mytopsite-com.20230601.gappssmtp.com Learn more
    DMARC: 'FAIL' Learn more

    These were the DNS settings (i made changes to some of the data )

    TXT _dmarc v=DMARC1;p=quarantine;rua=mailto:kumardesai123@gmail.com;ruf=mailto:kumardesai123@gmail.com;fo=1;adkim=r;aspf=r

    TXT _dmarc v=DMARC1; p=none;

    TXT server.xei.qqq.mybluehost.me v=spf1 +mx +a +ip4:162.123.45.210 ~all

    TXT default._domainkey.server.xei.qqq.mybluehost.me v=DKIM1; k=rsa; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArmZyxsST7Axgvq3tsT/RzQ1B7yinI1jV6yiuQqfssykPVcAleFQNAKl2GjieA9Er9WaETlnDUTcMSpEXa0nTPzVbcknRMq5qAf6alCuhObV0FcW9FSUkdMQ6Ah+n4KPuWmADzOZajM5MjCvK5DkgajgswL89ohWeyUsc5dS4LdFarBJpcOc4W0lu0JuhsKJW4bP3WWqbWpag0k8y+4ykmdjNqmo7Y2AnHkM9Yiniar+wc0oDRZbvrxGJyItjBB36sT/cWgTJwwMN133pi1EhkChi7KgjafNT0ONiWQIlG4Xi4TJZM0Fw/4DSS0H/idP+uDUNOHC5mSH6CLOn6kANnwIDAQAB;

    TXT @ v=spf1 +mx +a +ip4:162.123.45.210 ~all
    0

Please sign in to leave a comment.