1

CiviMail fails to deliver some emails to specific domain servers: @wp.pl. Each time I send a mailing I receive a bounce message which reads like this:

This is the mail system at host stpuk-org.nazwa.pl.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

<[email protected]>: host mx.wp.pl[212.77.101.4] said: 550 SPF Error:  Senders are
    required to provide correct SPF records. If you are
    a poczta.wp.pl user check SMTP configuration:
    http://poczta.wp.pl/autoryzacja/ (in reply to MAIL FROM command)

Final-Recipient: rfc822; [email protected]
Original-Recipient: rfc822;[email protected]
Action: failed
Status: 5.0.0
Remote-MTA: dns; mx.wp.pl
Diagnostic-Code: smtp; 550 SPF Error: Senders are required to provide
correct SPF records. If you are a poczta.wp.pl user check SMTP 
configuration: http://poczta.wp.pl/autoryzacja/

The original message header is:

Return-Path: <[email protected]>
Received: from mydomain.nazwa.pl (unknown [85.128.142.61])
    by stpuk-org.nazwa.pl (Postfix) with ESMTP id 2CE5F2411C0
    for <[email protected]>; Sun,  8 May 2016 23:28:11 +0200 (CEST)
To: <[email protected]>
Subject: =?utf-8?Q?=5BSzkic_CiviMail=5D_Og=C5=82oszenia_STP?=
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="=_7bef5881a1e24565cf35e4ad4b65e26c"
Reply-To: =?utf-8?Q?Stowarzyszenie_Technik=C3=B3w_Polskich?=
 <[email protected]>
From: =?utf-8?Q?Stowarzyszenie_Technik=C3=B3w_Polskich?= <[email protected]>
List-Unsubscribe: <mailto:[email protected]>
job_id: 215
Precedence: bulk
X-CiviMail-Bounce: [email protected]
Date: Sun, 08 May 2016 23:28:11 +0200
X-HTTP-Posting-URI: http://www.stpuk.org:80/civicrm/ajax/rest
X-HTTP-Client: 92.1.74.193
Message-Id: <[email protected]>

I spent some time testing various approaches but without success. Few additional comments:

  • Civimail is successful delivered to main providers such as gmail, yahoo
  • For gmail I get a spf=softfail (txt below) but still delivers:

    (google.com: domain of transitioning [email protected] does not designate 85.128.169.253 as permitted sender) client-ip=85.128.169.253

  • My DNS configuration has spf: "v=spf1 ip4:85.128.169.253 ~all"

  • I use Google apps to handle my mail, hosting to handle website and CiviCRM and gmail for bounce processing

I believe I am missing something but I have no idea what.

2 Answers 2

3

Demerit is correct, but I'll add a bit more detail and how you can fix it.

Your CiviCRM sends emails as [email protected] from 212.77.101.4. The SPF records looked up are those for the sender's domain, gmail.com, which does not include your webserver's IP.

Gmail treats this as a softfail, but nazwa.pl seems configured to treat failed SPF more strictly. Both are SPF fails.

Unless you control @gmail.com, you can't fix this via SPF for that originating email. What you can do is send messages from your own domain, with working SPF configuration.

To address this, change the originating email address (CiviCRM Menu > Administer > CiviMail > From Email Addresses) to eg [email protected].

This mailbox can in turn forward to your Gmail address, so CiviCRM can continue monitoring that mailbox for bounces.

1
  • This seemed to solve my issues. Thx Commented May 15, 2016 at 18:28
0

Not sure what you mean by you use gmail for bounce processing. You can't control SPF records for @gmail.com addresses, and the error seems to indicate that's what it's looking for.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.