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.

Emails sent from/to domains in the same host being rejected by SPF

Discussion in 'E-mail Discussions' started by squaredd, May 29, 2014.

  1. squaredd

    squaredd Member

    Joined:
    Jan 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    This issue is driving me nuts.

    Let's put it in context.

    In my WHM I have domain A and B (both with DKIM and SPF on)
    When a user from domain A sends an email to user in domain B the email never leaves the server, it is delivered internally. In this case the sender IP in the email header is the IP of the connection of the user. (usally a DSL with dynamic IP).

    The problem is that the SPF is detecting that IP as not valid and rejects the email.

    Is there any way to avoid SPF checks on email sent between domains in the same host? Or could be possible to rewrite the email IP headers? Any other idea/solution?

    Thank you
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    To clarify, is that same email delivered successfully went sent out to a remote server with SPF checking? What's the output of the failure in /var/log/exim_mainlog?

    Thank you.
     
  3. squaredd

    squaredd Member

    Joined:
    Jan 21, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello Michael,

    Yes, the same email sent to a remote server with SPF enabled is delivered correctly.

    Here is the exim_mainlog of an email sent between domains in the same host.

    Code:
    2014-05-28 17:00:56 H=xxx.red-88-12-45.staticip.rima-tde.net (remote.xxxead.com) [88.12.45.xxx]:29192 F=<ivan@xxxead.com> rejected RCPT <joan@xxxps.com>: SPF: 88.12.45.xxx is not allowed to send mail from xxxead.com
    TY
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Please open a support ticket so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thanks.
     
Loading...

Share This Page