Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: SPF: Help

openspf tester cannot complete SPF analysis

 

 

SPF help RSS feed   Index | Next | Previous | View Threaded


bcollver at whiteselectronics

Jul 13, 2007, 11:31 AM

Post #1 of 8 (1366 views)
Permalink
openspf tester cannot complete SPF analysis

Hello,

The following page reports "|whiteselectronics.com| publishes SPF
<http://www.openspf.org> records, but An email system which uses SPF
could not complete SPF analysis."
http://old.openspf.org/why.html?sender=newsletter%40whiteselectronics.com&ip=65.173.224.20&formwasused=1&debug=0

Then it suggests *"Here's what you can do.* Contact the system
administrator responsible for |whiteselectronics.com| and tell them that
they need to change its SPF record so that it contains
|newsletter.whiteselectronics.com|. For example, they could change the
record to something like
v=spf1 a:newsletter.whiteselectronics.com
mxa:newsletter.whiteselectronics.com~all"

I set my SPF record to that, and verified using dig.
# dig +short whiteselectronics.com TXT
"v=spf1" "a:newsletter.whiteselectronics.com"
"mxa:newsletter.whiteselectronics.com~all"

However, the openspf tester still reports the same problem. What would
be a good way to trouble-shoot this further?

Thank you,

Ben

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=21770776-c2555d
Powered by Listbox: http://www.listbox.com


michael at breton

Jul 13, 2007, 12:16 PM

Post #2 of 8 (1317 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

>I set my SPF record to that, and verified using dig.
># dig +short whiteselectronics.com TXT
>"v=spf1" "a:newsletter.whiteselectronics.com"
>"mxa:newsletter.whiteselectronics.com~all"

Your SPF string needs to be ONE string, like this:

"v=spf1 a:newsletter.whiteselectronics.com ~all"

You also need to have that space before the "~" character. Also, that mxa:
mechanism is invalid. See http://www.openspf.org/SPF_Record_Syntax for more
information on this.

Hope this helps...

Michael Breton

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=21788181-f3307b
Powered by Listbox: http://www.listbox.com


bcollver at whiteselectronics

Jul 13, 2007, 12:48 PM

Post #3 of 8 (1319 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

Michael Breton wrote:
> Your SPF string needs to be ONE string, like this:
> "v=spf1 a:newsletter.whiteselectronics.com ~all"
>
> You also need to have that space before the "~" character. Also, that
> mxa: mechanism is invalid. See
> http://www.openspf.org/SPF_Record_Syntax for more information on this.
Thank you for the help Michael. I did not catch that it needed to be a
single string. I originally had a space before the ~ character and I
did not use the mxa mechanism. The openspf tester recommended the
invalid spacing and mechanism.

I updated my SPF string to match your example, but I am still getting
the same error from the openspf tester. Can you recommend a good way to
trouble-shoot this further?

Thank you,

Ben

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=21795640-af0485
Powered by Listbox: http://www.listbox.com


wendy.honeycutt at sonicfog

Jul 13, 2007, 1:52 PM

Post #4 of 8 (1305 views)
Permalink
RE: openspf tester cannot complete SPF analysis [In reply to]

> -----Original Message-----
> From: Ben Collver [mailto:bcollver [at] whiteselectronics]
>
> Thank you for the help Michael. I did not catch that it needed to be a
> single string. I originally had a space before the ~ character and I
> did not use the mxa mechanism. The openspf tester recommended the
> invalid spacing and mechanism.
>
> I updated my SPF string to match your example, but I am still getting
> the same error from the openspf tester. Can you recommend a good way to
> trouble-shoot this further?
>
> Thank you,
>
> Ben

Ben,

There is no SPF record for newsletter.whiteselectronics.com. You need to publish an SPF record
for this in your DNS zone. (65.173.224.20) This is one reason the test did not work for you.

You do have an SPF record (v=spf1 a:newsletter.whiteselectronics.com ~all) for
whiteselectronics.com however, your record is stating that the ONLY authorized MTA is "
newsletter.whiteselectronics.com " which doesn't have an SPF record.

Let's take this a step further:

Your email was received by listbox.com FROM: mail01.peak.org (mail01.peak.org [69.59.192.41])
Received: from mail01.peak.org (mail01.peak.org [69.59.192.41]) by
chiclet.listbox.com (Postfix) with ESMTP id E7DA018E49A for
<spf-help [at] v2>; Fri, 13 Jul 2007 15:48:46 -0400 (EDT)

Currently mail01.peak.org (mail01.peak.org [69.59.192.41]) is NOT listed in your current SPF
record as an authorized sender. So, this leads me to ask you the following questions:

1. Would mail01.peak.org [69.59.192.41] be the ONLY mail server that delivers email from
whiteselectronics.com and newsletter.whiteselectronics.com to the outside world?

2. Is newsletter.whiteselectronics.com (IP 65.173.224.20) an actual mail server delivering email
to the outside world?

3. Is whiteselectronics.com (65.173.224.5) an actual mail server delivering email to the
outside world?

I recommend that your read: http://www.openspf.org/FAQ/Common_mistakes. Specifically to the
point I am making, it reads:

ONLY LIST OUTGOING MAIL SERVERS
SPF's purpose is to publish a list of outgoing mail servers. Any servers that do not deliver
mail to the world, such as web servers or incoming-only mail servers, should not be listed.

Now if, mail01.peak.org (mail01.peak.org [69.59.192.41]) is the ONLY mail server that delivers
mail to the world for your domains then you could reduce your SPF record to "v=spf1 ip4:
69.59.192.41 ~all" for both whiteselectronics.com and newsletter.whiteselectronics.com domains.


If you happen to have more than one mail server delivering mail to the world then you will need
to make a list of these mail servers and add them to your record.

HTH

Sincerely,
Wendy Honeycutt
SonicFog Inc.


-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=21836713-65837d
Powered by Listbox: http://www.listbox.com


bcollver at whiteselectronics

Jul 13, 2007, 9:03 PM

Post #5 of 8 (1315 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

SonicFog wrote:
> There is no SPF record for newsletter.whiteselectronics.com. You need to publish an SPF record
> for this in your DNS zone. (65.173.224.20) This is one reason the test did not work for you.
>
> You do have an SPF record (v=spf1 a:newsletter.whiteselectronics.com ~all) for
> whiteselectronics.com however, your record is stating that the ONLY authorized MTA is "
> newsletter.whiteselectronics.com " which doesn't have an SPF record.
>

Wendy,

Thank you for the response. Please note that that SPF record was only
set for trouble shooting purposes.

> Let's take this a step further:
>
> Your email was received by listbox.com FROM: mail01.peak.org (mail01.peak.org [69.59.192.41])
> Received: from mail01.peak.org (mail01.peak.org [69.59.192.41]) by
> chiclet.listbox.com (Postfix) with ESMTP id E7DA018E49A for
> <spf-help [at] v2>; Fri, 13 Jul 2007 15:48:46 -0400 (EDT)
>
> Currently mail01.peak.org (mail01.peak.org [69.59.192.41]) is NOT listed in your current SPF
> record as an authorized sender. So, this leads me to ask you the following questions:
>
> 1. Would mail01.peak.org [69.59.192.41] be the ONLY mail server that delivers email from
> whiteselectronics.com and newsletter.whiteselectronics.com to the outside world?
>
No, mail01.peak.org is not an SPF authorized sender for
whiteselectronics.com.
> 2. Is newsletter.whiteselectronics.com (IP 65.173.224.20) an actual mail server delivering email
> to the outside world?
>
Yes.
> 3. Is whiteselectronics.com (65.173.224.5) an actual mail server delivering email to the
> outside world?
>
No, whiteselectronics.com is not a mail server. It is our domain name,
and I also gave it an A record 65.173.224.5.
> I recommend that your read: http://www.openspf.org/FAQ/Common_mistakes. Specifically to the
> point I am making, it reads:
>
> ONLY LIST OUTGOING MAIL SERVERS
> SPF's purpose is to publish a list of outgoing mail servers. Any servers that do not deliver
> mail to the world, such as web servers or incoming-only mail servers, should not be listed.
>
> Now if, mail01.peak.org (mail01.peak.org [69.59.192.41]) is the ONLY mail server that delivers
> mail to the world for your domains then you could reduce your SPF record to "v=spf1 ip4:
> 69.59.192.41 ~all" for both whiteselectronics.com and newsletter.whiteselectronics.com domains.
>
>
> If you happen to have more than one mail server delivering mail to the world then you will need
> to make a list of these mail servers and add them to your record.
>

When I used the SPF Setup Wizard at openspf.org, it instructed me to
post a single SPF record for the whiteselectronics.com DNS zone. In my
original post, I asked for help trouble shooting why my SPF record
failed analysis at the openspf tester.
http://old.openspf.org/why.html?sender=newsletter%40whiteselectronics.com&ip=65.173.224.20&formwasused=1&debug=0

In this test the MTA was 65.173.224.20, which resolved to
newsletter.whiteselectronics.com. The SPF record at
whiteselectronics.com listed newsletter.whiteselectronics.com as an
authorized sender.

At your suggestion, I added an SPF record for the MTA host name
newsletter.whiteselectronics.com. I used the same string as for
whiteselectronics.com. That resolved my issue.

I only send mail for one domain: whiteselectronics.com. My guess is
that I was confused by SPF testing being done on the "HELO" address.
Until I read the RFC, I only expected the "MAIL FROM" address to be
tested. In retrospect, I see it mentioned on the FAQ.
http://www.openspf.org/FAQ/Common_mistakes#helo

Thanks again,

Ben



-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=22078604-500c7b
Powered by Listbox: http://www.listbox.com


alex at ergens

Jul 14, 2007, 3:42 AM

Post #6 of 8 (1308 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

On Fri, Jul 13, 2007 at 09:03:29PM -0700, Ben Collver wrote:

> When I used the SPF Setup Wizard at openspf.org, it instructed me to
> post a single SPF record for the whiteselectronics.com DNS zone. In my
> original post, I asked for help trouble shooting why my SPF record
> failed analysis at the openspf tester.
> http://old.openspf.org/why.html?sender=newsletter%40whiteselectronics.com&ip=65.173.224.20&formwasused=1&debug=0

The so called wizard isn't that smart at all. It just takes what
you have, and inserts in the existing policy what seems to be needed.

Something similar is true for generating your first policy. If you
enter non-existing names, or even faulty names, it will just copy
the user input. Not really the wizard's fault.

"User knows best", aka "Garbage in, garbage out". It is a tool,
and usability of tools depend on their use/user. No offence.

The tester is more sophisticated and will find errors. It will not
find all possible errors, especially if the syntax is correct but
semantics are not. Nevertheless, you should use it _before_ publishing
a new or modified policy.

Your current SPF policy for your MAIL FROM domain, published in a TXT
record for domain whiteselectronics.com, is:
"v=spf1 ip4:65.173.224.6 ip4:65.173.224.20 ~all"

This authorizes two hosts to use domain name whiteselectronics.com
but you may want to look at http://www.openspf.org/SPF_Record_Syntax
and scroll down a bit to "Evaluation of the SPF record can "...
where softfail ("~", in your "~all") and fail ("-") are explained.

The domain used in a HELO (or: EHLO) does not have to be, and
quite often isn't, the same domain. Publish a policy for this as
well. If everything is setup per RFC, then "v=spf1 a -all" will
probably work. [*]

And then there are other domains, such as www.whiteselectronics.com
which also need a policy. Yes, it is a domain name. True, you may
not use this domain for email but somebody else could. If you don't
use it for email, and nobody should, then publish "v=spf1 -all" for it.

Look at all domains which are not aliases (CNAME). Every domain that
has an A record and/or an MX record can potentially be used for email.
In each policy, authorize all legitimate users (HELO or MAIL FROM) of
this domain.

Some people think a domain can only be used if an MX record is present
for the domain. This is a mistake. MX is for inbound only, and is only
needed if mail should end up in another place than the host with this
domain name.

HTH
Alex

[*] If one host uses a domain name for HELO and possibly for MAIL FROM,
and another host uses the same domain name for MAIL FROM, the suggested
policy is not what you want.

e.g.

mail1.example.com sends "x [at] example" and "x [at] mail1" mail
mail2.example.com sends "x [at] mail1" mail
and both hosts use their own name in HELO (as they should).

In this example:

example.com TXT "v=spf1 a:mail1.example.com -all"
mail1.example.com TXT "v=spf1 a a:mail2.example.com -all"
mail2.example.com TXT "v=spf1 a -all"

Why?
example.com is only used in MAIL FROM, by host mail1.
mail1.example.com is used:
- in HELO, by mail1
- in MAIL FROM, by mail1 and mail2
and both hosts need to be listed.
mail2.example.com is only used in HELO.

In short: be careful if you use email domain names which also happen
to be hostnames.

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=22108278-387302
Powered by Listbox: http://www.listbox.com


bcollver at whiteselectronics

Jul 14, 2007, 6:29 AM

Post #7 of 8 (1296 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

Alex van den Bogaerdt wrote:
>
> The so called wizard isn't that smart at all. It just takes what
> you have, and inserts in the existing policy what seems to be needed.
>
> Something similar is true for generating your first policy. If you
> enter non-existing names, or even faulty names, it will just copy
> the user input. Not really the wizard's fault.
>
> ...
>
> Look at all domains which are not aliases (CNAME). Every domain that
> has an A record and/or an MX record can potentially be used for email.
> In each policy, authorize all legitimate users (HELO or MAIL FROM) of
> this domain.
>
Hi Alex,

Thanks for the response.

The openspf site states the following. "If your organization:
- sends mail from under 5 servers,
- has a large technical staff, or
- isn't email-mission-critical,
Self-publishing is your best option, with the quick and easy wizard."

Turns out the wizard is almost guaranteed to generate a non-working
configuration. For example the a: field is automatically set to a list
of host names from the domain's MX records, but it does not mention that
you will need SPF records for each of them. It also doesn't mention
that you will need an SPF record for every host name on your domain. Do
you think the "quick and easy" part refers to the using the wizard, or
the development process by which the wizard was created?

Cheers,

Ben

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=22116412-6bfd35
Powered by Listbox: http://www.listbox.com


alex at ergens

Jul 14, 2007, 8:12 AM

Post #8 of 8 (1304 views)
Permalink
Re: openspf tester cannot complete SPF analysis [In reply to]

On Sat, Jul 14, 2007 at 06:29:43AM -0700, Ben Collver wrote:

> Turns out the wizard is almost guaranteed to generate a non-working
> configuration. For example the a: field is automatically set to a list
> of host names from the domain's MX records, but it does not mention that
> you will need SPF records for each of them. It also doesn't mention
> that you will need an SPF record for every host name on your domain. Do
> you think the "quick and easy" part refers to the using the wizard, or
> the development process by which the wizard was created?

I think you cannot blame the wizard for the fact that you are
confused between hostnames, domains and zones.

But I don't like the wizard, as can be seen in the archives. It is, IMHO,
a tool for skilled people, not a substitute for RTFM.

Alex

-------------------------------------------
-----------------------------------------------------------------------
Archives at http://archives.listbox.com/spf-help/current/ or
http://www.gossamer-threads.com/lists/spf/help/ (easier to search)
To unsubscribe, change your address, or temporarily deactivate your
subscription,
please go to http://v2.listbox.com/member/?member_id=1311530&id_secret=22123969-cce209
Powered by Listbox: http://www.listbox.com

SPF help RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.