You are not logged in.

#1 Aug 5/2007 1:24 pm

pomfret
Member
From: Connecticut
Registered: Jul 31/2007
Posts: 48

FreshBooks SPF (revisited)

[Update by Fresh Rich on Sept 9, 2008: FreshBooks now supports SPF.]

I've read the past discussions regarding FreshBooks and SPF records / spam problems.  I'd like to make the following recommendation to help server admins like myself ensure that our customers won't encounter issues receiving their invoices.

Some of our other providers host an SPF record at a domain such as spf.servicecompany.com which contains the IPs / networks that mail may originate from on their side.  This allows us to "include" this SPF record into our own, thus extending the list of legitimate IPs our mails may come from.  This also makes it easier on us should our service providers decide to change / add networks as all it would require is a quick update to TXT record of spf.servicecompany.com.

Putting it into context:

spf.freshbooks.com IN TXT "v=spf1 ip4:72.3.208.112/29 ip4:72.32.48.24/29 ip4:... -all"

ourcompany.com IN TXT "v=spf1 [our rules] include:spf.freshbooks.com -all"

You could change to a neutral policy with "?all" but that tends to defeat the purpose of SPF.  As long as your service IPs are listed and accurate, we can get more aggressive with our own rules.  Also, with hosting the rules at spf.freshbooks.com, you don't have to use these rules on the freshbooks.com domain itself.

Right now we're using "a:server1.freshbooks.com"...  This rule will break if you change the hostname of your outbound mailer daemon.  I could use the network addresses, but again, that would be invalidated if you ever change IPs or networks.  Also, DNS TXT records are only so big...

Just a thought (getting lots of those this weekend as we continue to migrate our customers into FB).

Thanks,

Brian

Offline

 

#2 Aug 6/2007 8:49 am

mperkel
Member
Registered: Dec 8/2006
Posts: 20

Re: FreshBooks SPF (revisited)

Actually you should get rid of SPF entirely. SPF does nothing to control spam and it breaks email forwarding. It invites false positives. If someone uses SPF an my spam filtering service then your email WILL BOUNCE when I forward it on to the recipient.

Offline

 

#3 Aug 7/2007 11:00 am

Fresh Aaron
Former staff
From: Toronto
Registered: Jun 18/2007
Posts: 892

Re: FreshBooks SPF (revisited)

For now our e-mails should always be originating from the same IP address. I don't see any circumstance where that would be changing in the near future.

At any rate, I don't know if SPF is something we'll specifically support. Sure, we could add that record at that subdomain, but we don't use SPF ourselves, as it's not particularly useful. In our business we can't risk false positives, so no SpamAssassins, no SPF, none of that stuff that "guesses" at spam.

And since we don't use SPF, we'd probably forget to maintain the SPF record if anything changed... and then we're back to square one, since rather than updating your own SPF record, you'd have to poke us to update ours, and then wait for us to get it done.

I think your best bet is to just add our IP address to your SPF filter. That's if you insist on using SPF, which, as Marc says, isn't really much of a solution.

Keep the thoughts coming, of course! We're glad to hear them, just please don't be disheartened when we say no most of the time. smile


_____
Aaron Adams
FreshBooks Alumni

Offline

 

#4 Aug 12/2007 8:28 am

mperkel
Member
Registered: Dec 8/2006
Posts: 20

Re: FreshBooks SPF (revisited)

If someone has a front end spam filtering service or is forwarding email then the mail will be coming from a server other than a freshbooks server and you'll have a false positive. SPF is a seriously broken technology and should never be used. I'm in the spam filtering business.

Offline

 

#5 Sep 25/2007 11:59 pm

micksta
New Member
Registered: Sep 25/2007
Posts: 1

Re: FreshBooks SPF (revisited)

What pomfret has suggested is an entirely reasonable request, I would too appreciate if FreshBooks maintained a record at spf.freshbooks.com

SPF as a technology is not perfect, however I have found it a very valuable tool to stop spoofed email addresses. Many of the big email providers use SPF including hotmail, gmail, amazon and AOL.

So I think it would be prudent for Freshbooks to allow their customers to use SPF, and make that as easy as possible, to ensure that email from Freshbooks is not bounced by Hotmail, gmail and AOL and the millions of other domains that use SPF.


In response to Fresh Aaron
>>At any rate, I don't know if SPF is something we'll specifically support. Sure, we could add that record at that subdomain, but we don't use SPF ourselves, as it's not particularly useful.

You don't have to support it yourself, thats not what pomfret was asking for. Its about making it easy for your customers to add freshbooks to their own SPF record. This is something that would be very simple for for FreshBooks to do, and I can't really see any downside, only more happy customers  smile

Offline

 

#6 Sep 26/2007 11:30 am

Fresh Aaron
Former staff
From: Toronto
Registered: Jun 18/2007
Posts: 892

Re: FreshBooks SPF (revisited)

Hey Micksta, welcome to the forums.

Basically, what it boils down to is that SPF is a seriously broken technology, and we don't want to support it. If folks want to use it, that's totally their choice, but we're not going to create an SPF record on our servers. Not only would it encourage a small minority to continue using it, it would also be something we'd need to remember (and know how) to keep updated if our configuration ever changed.

We don't have our own e-mail server either, so we don't know what IPs the e-mails would be generated from, and we wouldn't know when new IPs were added.

I'm sure you can take a look at the MX record on freshbooks.com to see what mail servers we use. And can't you just include that MX record or something?

At any rate, this conversation just serves to illustrate why SPF doesn't work. If you want to use it with FreshBooks e-mails, you'll have to keep the record updated at your end, because we won't be implementing a record at this end.

Have you looked at alternate technologies like Certified Server Validation?


_____
Aaron Adams
FreshBooks Alumni

Offline

 

#7 Oct 5/2007 11:14 am

DigitalCrowd
New Member
Registered: Oct 5/2007
Posts: 5

Re: FreshBooks SPF (revisited)

The issue of whether SPF is a good/bad method of blocking spam is a mute issue. The fact is, it is used on the Internet and those sending emails have no control over the receiving parties spam filtering implementation.

In addition, getting FreshBooks to implement SPF DNS records is mute as well. If you support SPF DNS records on your domain, then you simply need to add "a:server1.freshbooks.com" to your SPF DNS line. Your done.

Now, emails sent from FreshBooks (once DNS propagates) using your domain name, will not bounce or be rejected if the receiving party cares about SPF.

This way all your basis are covered, and FreshBooks doesn't need to be involved, nay-sayers of SPF can go back to their daily tasks, and life is good.

Offline

 

#8 Jul 8/2008 11:56 am

jonwatson
Member
Registered: Mar 17/2008
Posts: 16

Re: FreshBooks SPF (revisited)

mperkel wrote:

Actually you should get rid of SPF entirely. SPF does nothing to control spam and it breaks email forwarding. It invites false positives.

That's just FUD.

An SPF record is a DNS record that tells interested receiving email servers which other email servers on the Internet are allowed to send email for the domain of any given incoming email. The presence of an SPF record ensures that email from, say, jonwatson.ca can only be delivered by servers that I specifically authorize to send email for it. Other servers sending email purporting to be from jonwatson.ca are lying and that can be verified by consulting my SPF record.

Therefore, SPF does indeed assist in controlling spam and it does not break email forwarding that is done properly.

If you send me an email and I forward it to my friend, then my friend will receive it because regardless of the fact that the email originated from you, it is still 'from' me and I will send it to him via a server authorized to send email for my domain.

Sounds to me like you're trying to forward email with a spoofed 'from' address which is exactly the sort of behaviour that spammers employ and is thus effectively caught by the SPF framework.

Domain owners getting rid of their SPF records only ensure that their email will not get delivered to an increasingly broader range of providers. Whether you like it or not, more and more providers are using the SPF process and those domains without an SPF record are finding more and more of their email is not being delivered.

mperkel wrote:

If someone uses SPF an my spam filtering service then your email WILL BOUNCE when I forward it on to the recipient.

As I noted above, if SPF is stopping you, then you're probably spoofing the from address. The solution is to not forward or change the 'from' address to something from your domain and move the original 'from' address to the 'reply to' field. I haven't bothered to look, but I'm sure if you consult the email RFC, you'll find that's the correct use of those fields.

Alternatively, your users can POPemail from your server. SPF will definitely mess up the system you have in place, but telling people to get rid of their SPF records won't help.

Consider if I send an email to someone using your service from my jonwatson.ca domain to one of your customers who uses a provider that enforces SPF. If I have an SPF record, they will not receive my email because my SPF record does not authorize your servers to deliver email from my domain. If I take your advice and get rid of my SPF record, then the user will still not receive my email because...well....I have no SPF record and their server is looking for one. Your advice would only serve to not only ensure that my email is not delivered to your user, but also to many other email users on the Internet at large.

Whether my email gets delivered to one of your users does not depend on whether or not I have an SPF record, it depends on the fact that the system you've put in place is now obsolete because of the SPF framework. While I can appreciate that probably makes you angry, telling people to remove their SPF records doesn't help them use your system at all and in fact degrades their overall email delivery rate Internet-wide.

Offline

 

#9 Jul 8/2008 3:47 pm

Fresh Aaron
Former staff
From: Toronto
Registered: Jun 18/2007
Posts: 892

Re: FreshBooks SPF (revisited)

Jon, I think you misunderstand what "e-mail forwarding" is; it isn't the act of clicking "forward" and sending a message to a friend. It's like call forwarding; similar to "if somebody calls this number, pipe it to this number instead," it does the same thing with your e-mails. Mail to one place is simply redirected to another place, and it's perfectly valid to do so.

For instance, if you send an e-mail from the jonwatson.ca domain to somebody with e-mail forwarding set up, when they eventually receive the message from you, it didn't arrive from your server; it was forwarded from their server. If they check the SPF record, it's going to reject the message. The solution: they disable SPF. Which then means if somebody else sends a message claiming to be from you, well, they'll get it.

That's the nature of the "from" address; it's like the return address on an envelope. You can write anything you want there. That's the way it's designed, and it's never a piece of information you can trust.

You also misunderstood something else about the technology here, I think:

Consider if I send an email to someone using your service from my jonwatson.ca domain to one of your customers who uses a provider that enforces SPF. ... If I take your advice and get rid of my SPF record, then the user will still not receive my email because...well....I have no SPF record and their server is looking for one. Your advice would only serve to not only ensure that my email is not delivered to your user, but also to many other email users on the Internet at large.

That's not true; if you don't have an SPF record, all mail from your domain gets delivered. Since SPF records aren't a mandatory part of the DNS record, and over 80% of domains don't have one, rejecting e-mail on that basis would result in getting, well, just about nothing.

So, the basic argument against SPF is that it only works when you check the SPF record, AND the sender has an SPF record, AND you don't use e-mail forwarding. If either of the first two are false, you get unverified e-mail; if the third is false, you lose e-mail.

At any rate, if you want to use SPF, you're still free to add our server to your SPF record, and we may provide an SPF record for inclusion in the future now that we actually have someone who administrates these things. But since so-called "e-mail spoofing" remains a common and valid practice, there's no real emergency here.


_____
Aaron Adams
FreshBooks Alumni

Offline

 

#10 Jul 8/2008 5:06 pm

jonwatson
Member
Registered: Mar 17/2008
Posts: 16

Re: FreshBooks SPF (revisited)

Fresh Aaron wrote:

Jon, I think you misunderstand what "e-mail forwarding" is; it isn't the act of clicking "forward" and sending a message to a friend. It's like call forwarding; similar to "if somebody calls this number, pipe it to this number instead," it does the same thing with your e-mails. Mail to one place is simply redirected to another place, and it's perfectly valid to do so.

Hi Aaron,

The fact that SPF breaks email forwarding is just a symptom of the root cause which is the RFC for email. There was no such provision build into the RFC yet it became, as you say, a common practice. Spammers thought so too, so one of the many tools brought into play was the SPF which banks on the RFC and thus breaks this practice. You say it's valid, but it's not. It's just something that people have been doing and while SPF stops that practice, it doesnt' means SPF is broken. I would submit that the email RFC is broken if the world at large wants to do this email but cannot.

Alternatively, receivers that use SPF should configure their machines properly as per the OpenSPF FAQ whch confirms, as I've said, that spoofing the from address is not a valid practice. This is the purpose of the reply-to field, but I guess some people feel that configuring their servers to spoof the sender is a better idea.

http://www.openspf.org/FAQ/Forwarding

Fresh Aaron wrote:

For instance, if you send an e-mail from the jonwatson.ca domain to somebody with e-mail forwarding set up, when they eventually receive the message from you, it didn't arrive from your server; it was forwarded from their server. If they check the SPF record, it's going to reject the message. The solution: they disable SPF. Which then means if somebody else sends a message claiming to be from you, well, they'll get it.

I'm not sure you understand who has control over the SPF checks. Unless the person I am sending email to actually has configuration control over their incoming email server, they're not going to be able to disable SPF.

Further, and more importantly, as the jonwatson.ca domain owner, I control whether email coming from a server I have not authorized will be accepted by the receving server. The receiving server does not make that decision (at least it doesn't based soley on SPF). Investigate the use of ?all, -all, and ~all in an SPF record.

Fresh Aaron wrote:

That's the nature of the "from" address; it's like the return address on an envelope. You can write anything you want there. That's the way it's designed, and it's never a piece of information you can trust.

That is not the nature of the 'from' address. If the person actually sending the email isn't the 'from' addressee, then the 'sender' field exists for this purpose. If the reply is to go somewhere else, the reply-to field exists for this reason. You see, just because the correct use of email has fallen out of vogue doesn't mean what we are doing is correct. The current day usage of email begs to be broken because it is not used correctly by the vast majority of users. Blaming SPF for stopping us from violating the email RFCs doesn't make a lot of sense.

Fresh Aaron wrote:

That's not true; if you don't have an SPF record, all mail from your domain gets delivered. Since SPF records aren't a mandatory part of the DNS record, and over 80% of domains don't have one, rejecting e-mail on that basis would result in getting, well, just about nothing.

That is true. I misspoke. I thought an email server could be configured to trounce email from a domain without an SPF record, but that is not supported in the spec.

Fresh Aaron wrote:

So, the basic argument against SPF is that it only works when you check the SPF record, AND the sender has an SPF record, AND you don't use e-mail forwarding. If either of the first two are false, you get unverified e-mail; if the third is false, you lose e-mail.

I think the disagreement here stems from the fact that you think that SPF is designed to protect the receiver. It's not. It's designed to protect me, the domain owner, from having my domain hijacked to send spam. There's no way SPF is going to stop spam, but it will stop spam from my domain. If I care about my domain, I will SPF it to ensure that only authorized servers can send email from it (or forward email through it). I will also keep that SPF record updated. If I don't care, then I won't and I run the risk of having spam sent from my domain. It's a tool for domain owners, not recipients.

I will agree that ISPs and other providers that offer email services to their end users should not use SPF records because they have no control over how their users are forwarding email. However, the vast majority of domains are not serving email to end users so that's not a huge hole.

In any case, a properly configured forwarding service would make use of the available fields in the email RFCs rather than spoofing the from address anyhow and this would all be moot.

Fresh Aaron wrote:

At any rate, if you want to use SPF, you're still free to add our server to your SPF record, and we may provide an SPF record for inclusion in the future now that we actually have someone who administrates these things. But since so-called "e-mail spoofing" remains a common and valid practice, there's no real emergency here.

That's fine, I'm happy to just add your server to my SPF record. However, when searching around for the server name or IP, I can't seem to find it. I even opened a support ticket today and Corey told me that it would change all the time so there's no sense adding it. So, if I am going to allow Freshbooks to send email from my domain, I have to set my SPF record to soft-fail. That's how I run it anyhow, so no big deal for me, but by not maintaining an SPF record, you are effectively taking some of the control of my domain away from me and forcing me to allow spammers to use my domain for spam. I cannot run a hard-fail SPF record when using Freshbooks because you're blaise about providing an SPF record or a consistent server name (come on, an IP address I can see changing, but do you really have so many servers sending email that you can't give out the a records for them?).

Anyhow, to sum up (too late, I know), despite appearances I am not advocating SPF. I too believe that it has implementation problems but they stem from incorrect use of email format and misconfigured servers, not from SPF itself. Perhaps it was naive of the SPF creators to build the framework against an RFC suite that is so obviously disregarded, but it's no more broken than older spam control methods such as sender callout verify and reverse DNS lookups. The important difference with SPF is that it puts some control into the domain owners hands about which servers can send email for them. All of the other tools to date do not allow the domain owner any control over their email delivery on the remote end.

Jon

Offline

 

#11 Jul 8/2008 6:30 pm

Fresh Aaron
Former staff
From: Toronto
Registered: Jun 18/2007
Posts: 892

Re: FreshBooks SPF (revisited)

Sorry if we didn't provide that address, we should have; it's relatively easy to find, too, just by looking at the e-mails we send. It's server1.freshbooks.com, 72.32.48.26.

It is indeed likely to change in the relatively near future; since we're not currently maintaining an SPF record for inclusion, we don't have any method by which to inform you when a change occurs, so I would recommend continuing to soft fail.

We'll have to agree to disagree on e-mail forwarding, because I still don't even think the OpenSPF FAQ frowns upon it; it simply states that SPF does break forwarding, and that re-mailing is what's necessary to achieve a similar result that's compatible with SPF.

And obviously they just need to go fix the way e-mail works so that you can be certain where a message came from, but that's crazy talk. smile


_____
Aaron Adams
FreshBooks Alumni

Offline

 

#12 Jul 8/2008 9:54 pm

jonwatson
Member
Registered: Mar 17/2008
Posts: 16

Re: FreshBooks SPF (revisited)

Fresh Aaron wrote:

Sorry if we didn't provide that address, we should have; it's relatively easy to find, too, just by looking at the e-mails we send. It's server1.freshbooks.com, 72.32.48.26.)

Thanks for the server IP.

As for notification, may I suggest http://www.freshbooks.com/blog/?

Jon

Offline

 

#13 Jul 19/2008 11:51 pm

HelloWorldWeb
New Member
Registered: Jul 19/2008
Posts: 3

Re: FreshBooks SPF (revisited)

DigitalCrowd wrote:

The issue of whether SPF is a good/bad method of blocking spam is a mute issue. The fact is, it is used on the Internet and those sending emails have no control over the receiving parties spam filtering implementation.

In addition, getting FreshBooks to implement SPF DNS records is mute as well. If you support SPF DNS records on your domain, then you simply need to add "a:server1.freshbooks.com" to your SPF DNS line. Your done.

Now, emails sent from FreshBooks (once DNS propagates) using your domain name, will not bounce or be rejected if the receiving party cares about SPF.

This way all your basis are covered, and FreshBooks doesn't need to be involved, nay-sayers of SPF can go back to their daily tasks, and life is good.

Amen.

Offline

 

#14 Jul 21/2008 8:32 am

jonwatson
Member
Registered: Mar 17/2008
Posts: 16

Re: FreshBooks SPF (revisited)

Not "Amen".

Freshbook's unwillingness to maintain their own SPF record means that just plunking 'server1.fershbooks.com' into an SPF record isn't a good solution. As Aaron has already said - that server name will change and when it does, my SPF record will have to be updated but since Aaron has pointed out there is no way to notify users of changes, I really have no choice but to run a softfail SPF record.

Freshbooks has pretty much outright refused to do the right thing even though it is trivial to do so. Thus while the discussion has stopped, the issue remains unresolved.

Offline

 

#15 Jul 21/2008 6:11 pm

Fresh Rich
FreshBOFH
From: Toronto
Registered: Dec 11/2007
Posts: 64
Website

Re: FreshBooks SPF (revisited)

jonwatson wrote:

Freshbook's unwillingness to maintain their own SPF record means that just plunking 'server1.fershbooks.com' into an SPF record isn't a good solution.

No argument there, and not unwilling; it's just on a long list and hasn't been reached yet (doubly so since it's on the list as "publish SPF and DKIM", but I might yet go for the low-hanging fruit there). The early posts in this thread -- which predate me, for what it's worth :-) -- don't reflect FreshBooks' attitude toward SPF anymore.

There's already an (unnecessarily open, but compliant) SPF record for freshbooks.com which should suffice for now. I definitely recommend against adding server1.freshbooks.com to your own SPF record. At this point, either go with soft-fail and wait for us to publish a stricter record (not too long, I hope!) or include "include:freshbooks.com" in your record.

The SPF record for freshbooks.com will always account for both the application's mail server addresses as well as our corporate mail server addresses, so it's guaranteed to be a superset of the smallest SPF record necessary to make the application work. When I do it right, I expect we'll publish both that and a smaller record to include which only contains the application's mail server addresses.

When it's finally done we'll announce it prominently. I'm still not 100% sure that'll include DKIM as well; I don't really know DKIM well yet.

My apologies for the confusion and the difficulty in getting answers about SPF here. This thread's a little long in the tooth now, and given how dated the first half of it is I might close it off with an explanation in a few days if the conversation doesn't continue too long after this.


Rich Lafferty
Network Operations Manager, FreshBooks

Offline

 

#16 Jul 21/2008 6:19 pm

jonwatson
Member
Registered: Mar 17/2008
Posts: 16

Re: FreshBooks SPF (revisited)

Thanks for the update and the info.

Jon

Offline

 

#17 Sep 8/2008 5:18 pm

bz0qyz
New Member
Registered: Sep 8/2008
Posts: 1

Re: FreshBooks SPF (revisited)

I have been using server1.freshbooks.com & server2.freshbooks.com in my SPF record for quite some time now without issues.

However, recently my mail started bouncing on SPF failures. The host that was sending the mail was: dfw114.2ndsiteinc.com (72.3.208.114)

Since I live in the DFW area, I am assuming that you are using a local site cache service that sends mail directly.

As you can see, this complicates the SPF issue greatly.

Offline

 

#18 Sep 8/2008 6:09 pm

Fresh Rich
FreshBOFH
From: Toronto
Registered: Dec 11/2007
Posts: 64
Website

Re: FreshBooks SPF (revisited)

Yes, that's why trying to guess our mailservers' addresses in advance isn't going to work well -- sometimes we need to change them. That's why I recommended soft-failing, above. We'll be publishing SPF records to <i>include:</i> shortly; I've decided that waiting until we're ready to do SPF <i>and</i> DKIM at once isn't worth it, because I know SPF well but little about DKIM.

(We did send an announcement by email to account owners detailing the IP address change, though!)

It's not specifically local to you, though -- all of FreshBooks is hosted with Rackspace in DFW.


Rich Lafferty
Network Operations Manager, FreshBooks

Offline

 

#19 Sep 9/2008 4:06 pm

Fresh Rich
FreshBOFH
From: Toronto
Registered: Dec 11/2007
Posts: 64
Website

Re: FreshBooks SPF (revisited)

And here we go: FreshBooks now supports SPF!

I'm going to put this thread to bed now because it's so long and historical; if you have questions or comments about our implementation or how to use it, please start a new thread, or contact Support!


Rich Lafferty
Network Operations Manager, FreshBooks

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB