The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SPF with Gmail

Discussion in 'E-mail Discussions' started by keencs, Dec 29, 2014.

  1. keencs

    keencs Member

    Joined:
    Feb 16, 2013
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    A number of my cPaneil email accounts use Gmail to send and receive email from my cPanel server using POP3. Normally this works great. Recently, an number of users have complained that messages sent by other users/domains on the same server are being deleted or flagged as spam by Gmail.

    I started investigating and determined that Gmail checks SPF on messages that it retrieves via POP3. Because these messages are missing the cPanel server's 'Received By' header Gmail thinks that the message is being sent by the user's PC and therefore SPF fails.

    I have researched this high and low and have come to the conclusion that this isn't a Gmail problem but rather a problem with Exim not sending adding the server's info to the header when it is a local delivery email.

    Has anyone else encountered this? Is there any way to have Exim do this to have SPF pass? All users are authenticating before sending mail.

    Ryan
     
  2. danrussell

    danrussell Well-Known Member

    Joined:
    Nov 5, 2014
    Messages:
    60
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hi Ryan :),

    Is SPF record added to the sender domain name? If not, then add it and then check. So that Gmail can pass the SPF test.
     
  3. keencs

    keencs Member

    Joined:
    Feb 16, 2013
    Messages:
    5
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    I believe you misread my message. Gmail is retrieving the email from my cPanel server via POP3, and checking the SPF record at that time. Because the cPanel server didn't add a header entry in the message for itself, Gmail thinks the email originated from my desktop. It then checks the IP address of my desktop against the SPF record. This fails because my desktop isn't there (which it shouldn't be.)

    Example headers showing this:
    Code:
    Authentication-Results: mx.google.com;
           spf=fail (google.com: domain of my@cpanelemailaddress.com does not designate 1.1.1.1 as permitted sender) smtp.mail=my@cpanelemailaddress.com
    Received-SPF: fail (google.com: domain of my@cpanelemailaddress.com does not designate 1.1.1.1 as permitted sender) client-ip=1.1.1.1;
    Received: by 10.180.76.99 with POP3 id h11mf1354xxx2wiw.4;
            Mon, 29 Dec 2014 16:32:53 -0800 (PST)
    X-Gmail-Fetch-Info: mygmailaddress@gmail.com 1 mycpanel.server.com 995 my@cpanelemailaddress.com
    
    Where:
    1.1.1.1 = Is my desktop's IP
    mycpanel.server.com = My cPanel Server
    my@cpanelemailaddress.com = My cPaneil Email Address
    mygmailaddress@gmail.com = My gmail Email Address
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page