Question

"SPF unauthorized mail is prohibited" error on OUTGOING messages

Asked by: NotifyNcc

My users are receiving the below error message when sending to a few specific outside recipients.  This happens consistently with these recipients.  The odd thing is that these messages appear to be generated by our Exchange server and happen immediately - in other words, our server is rejecting the message, not the target server.  They are valid email addresses which the users have been successfully e-mailing for years, and can still be reached from users' outside webmail accounts (gmail etc).  The messages never appear in the Exchange queue or the error logs.

I am running Exchange 2003 on a Windows Server 2003 box.  There are no restrictions on user send rights aside from ones for message size and number of recipients, and all authenticated computers are authorized to relay.  We use a Barracuda spam firewall, but obviously that only affects incoming mail.  We do implement SPF but only on a "soft" basis (and again, that affects incoming mail).

I am at a loss as to why the 5.7.1 error references SPF at all.

Error message follows:
Your message did not reach some or all of the intended recipients.

      Subject:      RE: Pie chart
      Sent:      8/17/2009 9:03 AM

The following recipient(s) could not be reached:

      foo@bar.com on 8/17/2009 9:03 AM
            You do not have permission to send to this recipient.  For assistance, contact your system administrator.
            <mail2.xyzzy.org #5.7.1 smtp;550 5.7.1 SPF unauthorized mail is prohibited.>

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2009-08-17 at 07:39:22ID24658274
Tags

spf

,

exchange

,

mail

,

smtp

Topics

Exchange Email Server

,

Message Queue

,

Simple Mail Transfer Protocol (SMTP)

Participating Experts
10
Points
500
Comments
22

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. SPF setup
    HI Am I correct in believeing that SPF is now the final and standard "Sender ID" method that will be used by most people? If so, I'd like to get some info on the configuration for my domains. Currently all my domains have zone files that look typically like this:...
  2. Valid SPF
    I have two domains and I want to make a valid spf for both: 1. firstdomain.co.uk [66.249.91.89] 2. seconddomain.com [206.190.60.37] firstdomain.co.uk is only sending email from exchange server second domain is sending email from exchange server and also from website (...
  3. Email bounces back with  550 5.7.1 SPF unauthoriz…
    Hello, I have a client trying to email my boss and keeps coming back with the error below. It looks like its on our part but not sure how to fix it. I researched it but found pretty much nothing. Our email is hosted with GoDaddy and then we have Postini as our Spam Filtering....

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: MesthaPosted on 2009-08-17 at 08:12:04ID: 25115200

The reason it is coming from your server is because the remote server is rejecting it. The server in the NDR is NOT the server that is rejecting the message, but the server generating the message. It is the next hop that has the problem.

That is someone being very brave to mandate SPF records. They will be losing a lot of email messages by doing that.

Do you have an SPF record in your own DNS entries? The whole point of SPF records is that everyone has them, so that sites reject email based on them. Alas the use of SPF records is still very low, so doing a hard block on them is not really advisable. You may be using PSF records for inbound email, but you need to have them on your own domain as well.

Simon.

 

by: LeeDerbyshirePosted on 2009-08-17 at 08:13:48ID: 25115222

I would not assume that the messages are coming from your own server.  There is no reason why you should not get such an immediate response from a receiving server.

 

by: SubsunPosted on 2009-08-17 at 08:26:19ID: 25115366

I don't think this NDR is generated by exchange server. Are you using any AV?SPAM filtering software to scan the outgoing email?
Are you getting this NDR while sending mails from outlook/outlook web access?

 

by: NotifyNccPosted on 2009-08-17 at 10:06:19ID: 25116257

@Mestha: Our domain is configured for SPF.  The tools at kitterman.com and vamsoft.com seem to indicate that our record is valid, and indeed I haven't made any changes in the record since I first set it up a couple years ago.  Doing some DNS checks on intodns.com shows a missing MX A-record for our INCOMING mail server, but no other problems.

@Subsun: I have confirmed that it occurs when sending from Outlook.  My user claims that it also happens from OWA, but a message I sent to that address over OWA did not generate a bounce.  Still, using either method the mail is coming from our one-and-only outgoing mail server.  We have McAfee AV (via ePO) here, but I do not have it configured to scan outgoing email.

Like Mestha, my first thought (from the text of the error) was that somebody was enforcing a hard SPF check, but to go from no problems whatsoever to having this happen twice in the same day with addresses on two different domains seemed unlikely, especially since (as near as I can tell) my SPF records are perfectly valid, and in any case haven't changed since before we had this issue.

 

by: ollfriedPosted on 2009-08-17 at 10:11:02ID: 25116301

To me this looks like you have an SPF-record defined for your domain. Would you tell us your public domain name, or at least check:
nslookup -type=txt domain.tld
If it return something like "v=spf1 a ptr -all" then you have SPF.

 

by: ollfriedPosted on 2009-08-17 at 10:13:18ID: 25116319

Just read ypur comment.
What does your SPF-record look like? What is the public ip you send mails over? What helo-name does your sending server send? And to what name does the public ip reverse-resolve to? These thing must fit together, and there must be the root cause of your problem.

 

by: NotifyNccPosted on 2009-08-17 at 10:32:55ID: 25116483

@ollfried:

SPF record (last octets hashed) is:
v=spf1 ip4:72.32.207.xx ip4:216.158.xx.x ip4:216.158.xx.y include:foo.net -all

The public IP I'm sending mail over is the second 'ip4' entry in the above, and there is a valid MX record for that server.  That IP reverse-resolves to the same name as the MX A-record: mail2.mydomain.tld.  HELO string is the same: mail2.mydomain.tld.

 

by: Wonko_the_SanePosted on 2009-08-17 at 10:37:29ID: 25116528

Well, if your SPF record is correct and you are sure your sending server's IP is listed it may just as well be a problem on the receiving end - as you said it's only a few recipients. Do they happen to be all at one or two domains? I would contact those people and ask their postmaster for input, maybe they clarify why the mail is being rejected. And it may not even be your fault.

 

by: ollfriedPosted on 2009-08-17 at 11:14:59ID: 25116830

Are you really, really sure, that this is the IP you connect through? I've seen several people messing around with these things after their firewall git updates or network admins did something else to optimize traffic.
If you like, you can send a testmail to antwerpen(ät)uni(minus)matrix(dot)com and I will check my logs.
If everything else fails I recommend using ~all instead of -all, this will let SPF fail soft and your mails should get through,

 

by: NotifyNccPosted on 2009-08-18 at 09:20:06ID: 25124857

I've received a few more complaints from users for a total of 4 domains that trigger this error.  On a hunch I checked the MX records for these domains and, sure enough, they are all using the same hosted email service ("secureserver.net").  

I still fail to understand why I'm getting the "SPF unauthorized mail is prohibited" error when our SPF record checks out, but the fact that it's only happening with ONE target mail server lends a lot of weight to the "it's them, not us" theory.  If there are no updates to the situation by the end of the day I'll close this question and assign points.

 

by: ollfriedPosted on 2009-08-18 at 09:39:31ID: 25125075

Anyway, a quick check of SPF, RR, MX and A can never be wrong."Devil is a squirrel" ;)

 

by: MesthaPosted on 2009-08-18 at 10:43:08ID: 25125661

secureserver.net is GoDaddy's email system. Therefore there will be a lot of domains that will have a problem as it is one of the biggest email hosting systems on the planet - I know one of their servers hosts over 250,000 domains. I would suggest getting your SPF record removed, and then recreated again using one of the SPF wizards.

Simon.

 

by: Wonko_the_SanePosted on 2009-08-19 at 07:36:49ID: 25133169

I do have one comment on the very first comment:
"Alas the use of SPF records is still very low, so doing a hard block on them is not really advisable."

I am not sure if I misunderstand this, but I do not agree with this statement. Obviously Simon is unarguably one of the most knowledgeable experts here so I must be careful :)

I don't think there is anything wrong with enforcing SPF records, we do that, too. Of course we only enforce if the SPF record exists, but in this case I think it's perfectly fine to block e-mail if it's a "hard" entry. My point is that if an SPF record exists the idea of those is that the sender organization's tells me which servers are authorized to send e-mails in their name. If a non-authorized server sends e-mail I think it's perfectly fine to block that e-mail, because it's either a) not legit or b) there is a configuration problem on the sender's end. In case of a) blocking it was a good idea, and in case of b) the sender needs to fix their systems or their SPF record.

Or am I wrong here?

 

by: MesthaPosted on 2009-08-19 at 16:43:03ID: 25138325

I still see more servers without SPF records than with.
I also see large numbers of servers with wrong SPF records, or simply set to allow all servers.

That basically makes it useless.

It needs AOL, Yahoo, Gmail and Hotmail to all announce that SPF records will be required from a certain date to make SPF records make a difference. Until that happens, many will not have them.

Simon.

 

by: Wonko_the_SanePosted on 2009-08-20 at 06:56:36ID: 25142548

Yes, I agree. It's a shame, too - after all it's really pretty quick and basically free to implement, and it does protect the domain with the SPF record more than anything else. I am still hoping one day it will be as common as a MX-record.
Thanks for your input.

 

by: MesthaPosted on 2009-08-20 at 07:16:19ID: 25142777

The problem with SPF records is that it does NOTHING to stop the amount of spam that you receive. It is almost exclusively for the benefit of others. Therefore there is no incentive for anyone to deploy it. If it was something that benefited the person setting it then you would see a higher use as everyone wants a new way to try and reduce spam.

Simon.

 

by: jeff1946Posted on 2009-08-31 at 08:17:21ID: 25223448

FWIW a couple of my users have recently started having this problem too ... and guess what, the recipients are also on GoDaddy's secureserver.net!

So NotifyNcc, I'm curious. Reading through this discussion, it sounds like a lot of good comments and suggestions were offered, but your problem did not actually get resolved. Is that correct? Does the problem still persist?

If so, perhaps I'll try to talk to someone at GoDaddy....

Thanks in advance!

 

by: ASID_AdminPosted on 2009-09-22 at 12:54:48ID: 25396851

Same issue, same GoDaddy secureserver.net bouncing back, except it is inconsistent. Can it be attachment related? Anyone come across a solution?

 

by: ASID_AdminPosted on 2009-09-22 at 12:56:14ID: 25396869

This is our record:

TXT      asid.org      60      v=spf1 a mx ptr ip4:204.14.133.195 mx:mail.asid.org ip4:204.14.133.203 include:mailams.asid.org +all

Seems ok, right?

 

by: univision-computersPosted on 2010-03-26 at 11:45:05ID: 28708550

Go through Microsoft's SPF wizard and see if the output matches your current SPF record. http://www.microsoft.com/mscorp/safety/content/technologies/senderid/wizard/default.aspx

 

by: ASNHelpdeskPosted on 2011-07-15 at 12:58:27ID: 36197744

We ere getting the same problem. Seems like it is now a common issue with secureserver.net. We've had our SPF record for years and have never recieved this bouce back. It started happening sporadically this week. We have went through microsoft's SPF wizard among other SPF tests and all have checked out and says our SPF record is configured correctly. Any more suggestions out there??? The error is below.


Your message wasn't delivered because of security policies. Microsoft Exchange will not try to redeliver this message for you. Please provide the following diagnostic text to your system administrator.

The following organization rejected your message: smtp.secureserver.net.

Diagnostic information for administrators:

Generating server: exmf025-nj-2.domain.local

johndoe@marcradio.com

smtp.secureserver.net #<smtp.secureserver.net #5.7.1 smtp; 550 5.7.1 SPF unauthorized mail is prohibited.> #SMTP#

 

by: JasonRDPosted on 2012-01-23 at 14:50:14ID: 37483228

Has anyone found a fix for this GoDaddy secureserver.net bounce backs. Any domain we email using secureserver.net we get smtp;5.7.1 SPF unauthorized mail is prohibited. This problem start about a month ago. I have tried changing our spf but no luck. Here is what our spf looks like v=spf1 ip4:209.234.69.138 a:webmail2.archwall.com a:ntsrvex2k3.archwall.com -all.

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...