Join the community today
Become a Member

Email emails in spam only gmail

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Askancy, Apr 10, 2016.

  1. Askancy

    Askancy New Member

    9
    1
    3
    Mar 27, 2016
    Ratings:
    +1
    Local Time:
    3:00 AM
    When I try to send mail from my website (as well as a recovery password), the email is delivered to spam only on Gmail, why?
    In addition, RainLoop works on centminmod?
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    11:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such things as SPF/TXT and DNS records or Rainloop install/setup. For SPF/DNS, you're best to ask your web host and/or domain registrar and follow below instructions and check out thread at Email - error in PTR, mails goes to gmail Spam folder. For Rainloop never tried it myself.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)

    Generally, to insure email sent from your Centmin Mod LEMP server's postfix MTA doesn't end up in email recipient's spam box, you need to at least have proper DNS level configurations for
    1. SPF / TXT record setup in DNS with your DNS provider. SPF / TXT record is a DNS text record so how you add it will depend on your DNS provider. Some info here, here and here. Also SPF guides from some Domain/DNS providers such as Namecheap.com, Godaddy.com, and check out SPF Wizard - SPF Generator DNS tool. Ensure both your site's domain name and server's main hostname from Getting Started Guide step 1 have valid SPF TXT records
    2. Reverse PTR record, you will need to ask your web host for that. Some web hosts and VPS providers use SolusVM control panels and allow you to setup a PTR record yourself. Basically it points your server's IP to your domain name. So when a reverse lookup on the IP is made, it resolves to your domain name. For instance the PTR record for this forum's IP = 173.230.147.144 resolves to community.centminmod.com when you do a reverse IP lookup at IP Address Lookup (IPv4 & IPv6). I use Linode.com for my forum hosting and their control panel has the relevant PTR record support for reverse dns.

    IP Blacklist Check



    Also check if your web site and server IP addresses are in spam blacklists using services like:
    Straight from Amazon SES best practices guide, you should also check the URL links that you use in your emails against blacklists as well, because some ISPs will block email with blacklisted links. URIBL.com and SURBL.org are two very useful sites that you can use to determine whether your links are blacklisted. Remember to check any links provided to you by a third party or any link shorteners, which obfuscate your domain or links.

    Transactional Email Providers



    For forum, CMS etc outbound email and best email deliverability, best to use a 3rd party SMTP transactional email provider. Discussion of provider options can be read at Email - Mandrill users will be required to have a paid monthly MailChimp account. I use Amazon SES for this forum's emails.

    SPF Setup Guides


    SPF Wizards



    You can use SPF wizards to try and get the correct settings

    SPF Testing Tools


     
    Last edited: Apr 10, 2016
  3. Askancy

    Askancy New Member

    9
    1
    3
    Mar 27, 2016
    Ratings:
    +1
    Local Time:
    3:00 AM
    It's not a DNS problem, because I installed NGINX without centminmod (in the same droplet with the same dns), and when I try to email from terminal with sendmail, the email is not sent to spam Gmail...
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    11:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    Strange then... have you tried re-install centmin mod and try again sending emails ? as Gmail spam algorithm is partly trained over time, so if you unmarked or set emails as not spam previously, Gmail learns from this and future emails from same server/IP would not be marked as spam - see Legitimate mail is marked as spam - Gmail Help and Spam and suspicious emails - Gmail Help

    If you have the original email headers for both methods of test sent emails, i'd examine the differences too
     
  5. R0rke

    R0rke Member

    83
    16
    8
    Jun 2, 2016
    Iran
    Ratings:
    +24
    Local Time:
    6:00 PM
    1.11.1
    10.1
    same too , all of my server lfd notifications going to spam folder
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    11:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. cloud9

    cloud9 Premium Member Premium Member

    140
    54
    28
    Oct 6, 2015
    England
    Ratings:
    +75
    Local Time:
    2:00 AM
    1.11.x
    10.x
    On two forums I have totally given up with gmail and hotmail

    Both servers mail records are set up perfect - spf, reverse ptr, literally everything

    Gmail and Hotmail send all my emails to spam/junk and ignore my emails for them to explain why as its their problem not mine (i have now given up asking them)

    Icing on the cake - microsoft mail (for ms office word sign in online account) get bounced by mailscanner on one of my servers due to incomplete records - go figure

    So i ended up banning hotmail and gmail accounts - that fixed my problem

    Did i mention I'm not a google or microsoft fan anyway
     
    Last edited: Nov 2, 2016
  8. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    11:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. cloud9

    cloud9 Premium Member Premium Member

    140
    54
    28
    Oct 6, 2015
    England
    Ratings:
    +75
    Local Time:
    2:00 AM
    1.11.x
    10.x
    Have DKIM and DMARC as well - like i said time wasted on ms**** is not worth me worrying about, which is why i switched to macs and love linux
     
  10. eva2000

    eva2000 Administrator Staff Member

    30,170
    6,785
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,138
    Local Time:
    11:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    • Like Like x 1
    • Winner Winner x 1