Problems sending emails from VPS to Hotmail and Gmail email accounts

Discussion in 'Site & Server Administration' started by fraloom, Sep 17, 2007.

  1. #1
    hello all

    I have problems sending emails from my VPS to Hotmail and Gmail email accounts. This is a new VPS with some new websites so they are not blacklisted for spam or anything like that.

    After users register at my website they receive a welcome email, but with Hotmail/Gmail accounts they end up by default in the spam/junkfolder.

    I also have a refer-a-friend and a forgot password form -> with gmail users they both end up in the spamfolder, with hotmail users they both do not show up at all!

    I read somewhere that editing the DNS zone could solve this problem with adding a SPF record (see also http://www.openspf.org/).

    I have added the most common SPF record "v=spf1 a ~all" as TXT record type but after a few days nothing has changed.

    Hopefully someone can help me out here so all email send from the VPS to Hotmail/Gmail email accounts will directly be send into the inbox.

    best regards
    Fraloom
     
    fraloom, Sep 17, 2007 IP
  2. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have reverseDNS set up?
     
    cyanide, Sep 17, 2007 IP
  3. fraloom

    fraloom Guest

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks a lot for the feedback!

    In the php mailscript the from address was different than the domain name (so Hotmail/Gmail spamfilters could indicate this as possible spam), so i changed this both to:
    define("EMAIL_FROM_NAME", "webmaster@mydomain.com");
    define("EMAIL_FROM_ADDR", "webmaster@mydomain.com");

    Secondly i asked support to setup reverse DNS for the primary IP of the domain, this is already done but could take some time for the dns change to fully propagate so i will keep you updated about it.

    best regards
    Fraloom
     
    fraloom, Sep 18, 2007 IP