Slashdot Mirror


Yahoo Submits DomainKeys Draft To IETF

NetWizard writes "According to a mailing list post at the IETF, Yahoo's website and a Wired News story, Yahoo has made the DomainKeys draft public and submitted to the IETF." Russ Nelson explains "Basically, your MTA uses RSA-SHA1 to sign the headers and body of your email and inserts that signature before sending the email. The recipient MTA looks up $selector._domainkey.$domain in the DNS, gets your public key, verifies it, and inserts a notice. There's also a SourceForge project for a DomainKeys library." An anonymous reader asks "It seems to me that it doesn't offer anything more than the Sender Policy Framework by pobox.com, other than doing relay-based signing of the messages to provide the sender verification. SPF has already grown to over 14,000 domains so far and only requires an addition to your DNS to support (from the sending side). Verifying messages on the receiving MTA is as simple as doing a DNS lookup, most MTAs can support SPF now, the code is available and well tested. What advantages to people see in Domainkeys over SPF that are actually useful, and what standard should people implement?"

94 of 350 comments (clear)

  1. Expensive... by Anonymous Coward · · Score: 3, Insightful


    Basically, your MTA uses RSA-SHA1 to sign the headers and body of your email and inserts that signature before sending the email. The recipient MTA looks up $selector._domainkey.$domain in the DNS, gets your public key, verifies it, and inserts a notice.

    Computationaly that sounds mighty expensive...

    1. Re:Expensive... by Anonymous Coward · · Score: 4, Interesting

      Even better, because then spam won't be possible if it's computationally intensive.

    2. Re:Expensive... by NoMercy · · Score: 3, Insightful

      It's not that computationally expensive, but yes if your sending or reciving milions of unique emails it could get to be quite a pain to process, lucklly for spammers as long as they keep most of there emails for that day identical they only have to hash it once say, but then they'd still need a valid domain to spam from.

      The bigest problem is DoS attacks against mail servers by using crafted emails designed to be greater than normally dificult to hash and/or check the signature there-of. And of course if youre now processing data in emails instead of just passing them though there's plenty of chance that one or two security holes might creep into implementations to boot :(

    3. Re:Expensive... by Corgha · · Score: 3, Insightful

      spam won't be possible if it's computationally intensive

      A common fallacy; the actual situation is just the opposite. Spammers don't use their own computers to send spam. They use hordes of virus-infected Windows machines. Compute costs them nothing or at most some small fee to a virus writer over IRC.

      Legitimate organizations use expensive, highly-available, rack-mounted servers. They actually care if they lose a message due to machine failure, and they can't illegally use someone else's machines to do the work for them. Compute for them is very expensive.

      Making SMTP more computationally expensive just hurts the good guys. The only reason this proposal has any merit is that it's imposing this penalty to get some other benefit, authentication from the signing, which will actually help identify legitimate mail, since the spammers can't do the computation at all without the private key.

  2. To understand... by Mz6 · · Score: 5, Interesting

    OK... It seems that SPF would have a little easier setup, only requires setup on one side. While DomainKeys would have more of an upfront cost to get it working and setup costs on both sides. However, pobox.com has theirs software up an working while Yahoo only has a working document to offer proof of concept. I would like to see Yahoo's example up and running and see how it would compare once out in the wild.

    --
    Hmmm.
    1. Re:To understand... by Anonymous Coward · · Score: 2, Informative

      We're using the DomainKeys library for some weeks now with qmail on a Solaris 9 box. It seems to work quite well though of course it hogs a little bit of CPU power. It's worth it though!

    2. Re:To understand... by tanguyr · · Score: 5, Informative

      Not only that, but SPF also seems more flexible. Domainkeys seems limited to making sure that the from header was not forged and that the SMTP machine used is on that domain's approved sender's list. Don't forget that SPF allows you to say "any machine may send mail from my domain as long as the mail is digitally signed" - or "any machine with an MX record in my domain may send mail for that domain" (which you could update withoput having to regenerate keys, etc)

      In short - SPF looks like the more elegant solution.

      --
      #!/usr/bin/english
    3. Re:To understand... by Russ+Nelson · · Score: 4, Informative

      DomainKeys signs the entire message, not just the From: header. DomainKeys lets anybody send regardless of IP address as long as they have a private key whose public key is published under that domain. A domain may have multiple keys, and generating a new key takes but a second.

      The trouble with SPF is that it's based on IP addresses, and forwarding completely breaks SPF. That's why they need SRS in order to be able to forward at all.

      --
      Don't piss off The Angry Economist
    4. Re:To understand... by blowdart · · Score: 2, Informative

      You can add the "roaming" SMTP server to the allowed MX servers for a domain, I had to do it because my mobile phone provider forced me to use their SMTP box

    5. Re:To understand... by johnnyb · · Score: 4, Funny

      But the problem is that if you're a salesman, you are never at the same place twice.

    6. Re:To understand... by blowdart · · Score: 2, Informative
      OK, so use SMTP Auth and make your sales people use your company SMTP server. Even better bind it with SSL so it's all encrypted.

      My phone provider was firewalling the SMTP port, now I am actually connecting to the ODMR port (not blocked) on my own server, authenicating using S/SMTP and sending to people on my mail server, and to others. SPF works in this situation.

    7. Re:To understand... by Smallpond · · Score: 2, Insightful

      Roaming users should relay through their company mail servers. Then SPF just works. Why should I accept mail claiming to be from hotmail that originates from a Starbucks somewhere?

      My mail servers allow our sales guys to log in, receive and send mail through our servers. We have exactly one allowed sender address.

    8. Re:To understand... by johnnyb · · Score: 2, Insightful

      "Note that you would usually connect to your own SMTP server to send that message since you don't have credentials to use company X's mail server and we can assume that it's not an open relay."

      Not really. They are usually IP-based, and the salesperson would be on their network.

    9. Re:To understand... by nolife · · Score: 2, Informative

      Comcast does. I have to use my comcast username and password to send mail via their SMTP server from outside their IP space, I do not remember if auth is required within their ip space or not.

      --
      Bad boys rape our young girls but Violet gives willingly.
    10. Re:To understand... by pyros · · Score: 2, Informative

      Residential ISPs should have their servers configured to require authentication when you're not on their network. And you should too. Otherwise you're an open relay. Well, if you just don't allow people to use your server when not on your network that works too, but that can be irritating for telecommuters whithout a tru VPN. I was at a place where everone was a telecommuter. We did actually have a small office, but none of the corporate servers were there, it was all in a remote data center. I had the SMTP server behind the firewall, setup SMTP auth to require a secure connection (either TLS on port 25 or SMTPS on port 465). If you weren't on an internal IP (which could be achieved by setting up and ssh tunnel) then you had to auth to send. It's a very low hassle solution to allowing roaming users to use the server securely without opening the door to spammers.

    11. Re:To understand... by firewrought · · Score: 2
      Why should I accept mail claiming to be from hotmail that originates from a Starbucks somewhere?

      because many potential customers (like me) use their free web based account wherever they happen to be on what ever computer is nearby.

      When you use your Yahoo web-based account, the email still originates on Yahoo's mail servers, even if you are sitting in a Starbucks. DomainKeys and SPF work on the level of the mail protocal itself and would not affect you.

      This would actually take risk out of your business... a shoulder-surfing hacker next to you in Starbucks would not be able to forge emails from nflnk@yahoo.com without compromising something in Yahoo's system [at additional time/cost/risk to the hacker].

      --
      -1, Too Many Layers Of Abstraction
  3. We need something allright by Random+Web+Developer · · Score: 2, Interesting

    Email needs to get a few new features like gpg or this to fight spam, viruses and spoofing pranks.

    And it better be an open solution not a proprietary one.

    The only way I can see something like this happening though is if a few major backers get behind the same thing and most mta's/clients (depending on what the agreed upon implementation is) start supporting it.

    --
    Artists against online scams http://www.aa419.org/
    1. Re:We need something allright by SWroclawski · · Score: 2, Insightful

      People in the geek community have been pushing for use of OpenPGP as a mechanism for sorting mail for years.

      You don't want to restrict mail that's not signed, but you can assign non-signed mail a lower "trust" value than signed mail. There will be a dis-incentive to digitally sign mail as a spammer since spammer signatures will soon be found out.

      If they sign mail with a new key- the value will be similarly neutral.

      PGP web of trust isn't about value of the person, but is the person who we think they are. If they have no signatures, we don't know who they are. If they have signatures of people we know are baddies or even good people- we can have more assurance that they're baddies.

      Then it becomes a matter of overlaying another layer on top of PGP such as FoaF or something. Then you could have accurate trust values for people you don't know.

      Of course spammers will invariably try to fool such systems with broken signatures and whatnot (they break MIME now for example). Failure to comply to the standards is already a red flag- but a failed signature will make things more evident.

      The problem with this technique is that the public never adopts it. And as discussed in Usenix Security 2003- maybe it's our (the security community's) fault for making these things too difficult.

      I could go on and talk about how smart cards may be our savior, but I've ranted long enough for one Slashdot post.

      - Serge

    2. Re:We need something allright by m.h.2 · · Score: 2, Interesting

      "And it better be an open solution not a proprietary one."

      Unfortunately, the only way a solution is going to be widely accepted enough to be useful is if, like you say, "a few major backers get behind the same thing..." and this most likely will not happen if the solution is not proprietary so that said backer(s) can make some solid $$ from it. The real problem with this is if the public has no input and is not allowed to scrutinize it, we'll likely see a plethora of holes for years after, essentially leaving us where we are right now. At this point, I'm just about ready to throw my hands up and start hoping for a whole new means of communication rather than wait for email to be fixed.

  4. PGP? by nathanhart · · Score: 2, Insightful

    Why not just use pgp or something of the sort?

    --
    GeekLeak.com - Silly name, serious geeks
    1. Re:PGP? by grub · · Score: 4, Insightful


      "OK, Grandma, now type in your PGP passphrase. Ensure it's very long and made up of alphanumerics, symbols and control characters. Make sure you don't forget it..."

      --
      Trolling is a art,
    2. Re:PGP? by Russ+Nelson · · Score: 2, Insightful
      Haven't we been saying that for a decade now??
      -rw-r--r-- 1 nelson users 751 Jan 12 1995 /www/russnelson/pgp-key
      Has it worked yet? How many emails in your INBOX are PGP-signed?
      --
      Don't piss off The Angry Economist
    3. Re:PGP? by eric76 · · Score: 2, Interesting

      Why not have the e-mail server generate a PGP or GPG key to sign e-mail for authenitcated users who don't sign their own e-mail.

      The purpose would be to prove to the recipient that the e-mail came from someone who authenticated themselves as the person listed as the sender. You couldn't use it for non-repudiation purposes.

  5. Patent Licensing by Anonymous Coward · · Score: 2, Interesting

    Can anyone see if it has a harmful patent license like Microsoft's Caller-ID?
    There's more info on why CID's patent license is harmful at the boycott caller id for email site.

    1. Re:Patent Licensing by Anonymous Coward · · Score: 5, Informative
      It's probably better:

      Yahoo! will grant a royalty-free, worldwide, non-exclusive license under any Yahoo! patent claims that are essential to implement or use any Implementations so that licensees can make, use, sell, offer for sale, import, or yodel Implementations; provided that the licensee agrees not to assert against Yahoo!, or any other Yahoo! licensees of Implementations, any patent claims of licensee that are essential to implement or use any Implementations.


      Microsoft's implementation requires you to sign away your right to sue them for any patent claim and doesn't allow you to sublicense the technology (ie: GPL/LGPL/BSD-incompatible). This one is less agressive.
    2. Re:Patent Licensing by Mz6 · · Score: 2, Interesting

      Good info.. However it mihgt be nice to post the actual address without the misspellings. boycott caller id for email site.

      --
      Hmmm.
  6. If it ain't invisible, it's crap by Anonymous Coward · · Score: 2, Funny

    I barely have the patience to hold down CTRL when I hit Enter to send emails.

    God fuck me in the ass if I'm going to be required to do all that other crap.

    1. Re:If it ain't invisible, it's crap by syates21 · · Score: 2, Insightful

      Have your family decided that doors are too hard to use if you have to unlock them, and moved to a house with no locks?
      Well, as long as we're running with bad analogies...
      If you go in/out of said door 200 times a day, do you lock it every time? If so, you may want to see a mental health professional about that OCD.

  7. One advantage DomainKeys has over SPF... by Anonymous Coward · · Score: 5, Interesting

    SPF breaks forwarding. Domainkeys doesn't. That alone is a serious enough problem that I can't implement SPF.

    1. Re:One advantage DomainKeys has over SPF... by denis-The-menace · · Score: 2, Informative

      Yes it breaks forwarding but they have ways to make it seamless for users by using a
      Sender Rewriting Scheme

      --
      Obama's legacy: (N)othing (S)ecure (A)nywhere and (T)error (S)imulation (A)dministration
    2. Re:One advantage DomainKeys has over SPF... by Malc · · Score: 2, Insightful

      This still doesn't seem like the right solution. I have a Yahoo.com email address. I send all my email from own SMTP server, or via my ISP. I suppose this would require re-writing the MAIL FROM: in the SMTP envelope and leave the FROM: in the message header as my Yahoo address. Then of course the sender in the envelope wouldn't match the sender in the header, and some MTAs are configured to block such messages.

    3. Re:One advantage DomainKeys has over SPF... by Just+Some+Guy · · Score: 3, Informative
      I feel for you, really, but look at it from another angle. You probably already have one email address: the one your ISP gave you. For all intents and purposes, that's your canonical identity when you're on the Internet. Now, if you want me to send email to your Yahoo! address instead of your ISP account, then give me that address and set a Reply-To: header in your email client to point to it. However, understand that as a mailserver administrator, I'm not terribly interested that you don't want to provide your "real" identifying information to my server or my customers. If you want to contact me or my users, then I want to know your "real" name.

      In the real world, people are known by a certain name. They may ask people to call them by another name, but certain legal entities (banks, loan companies, etc.) will insist on having access to that person's official identity. This is vaguely similar to what SPF proposes.

      --
      Dewey, what part of this looks like authorities should be involved?
    4. Re:One advantage DomainKeys has over SPF... by ajs · · Score: 3, Interesting

      SPF/SRS have serious problems including the inability to hop through more that 1-2 relays before the from address becomes a problematic amount of data (multiple cryptographic hashes).

      SPF is about overloading existing slots in RFC2822 and DNS in order to cram authentication data into the protocols. The link above cites an alternative that is about replacing the existing protocols with brand new ones.

      Both are, IMHO, poor solutions and DomainKeys might just be the correctl long-term solution.

      Personally, I was working on a proposal for a way to use existing headers by adding a slightly out-of-band channel for authenticating mail, but if DomainKeys beats me to it, sounds fine to me.

    5. Re:One advantage DomainKeys has over SPF... by ajs · · Score: 2, Informative

      The first link seems to have been dropped. Probably a typo on my part.

      It is:

      http://homepages.tesco.net/~J.deBoynePollard/FGA/s mtp-spf-is-harmful.html

      I disagree with the conclusions, but the basic refutation of SPF and SRS seems to be quite sound.

    6. Re:One advantage DomainKeys has over SPF... by 4of12 · · Score: 2, Interesting

      I'm hard pressed to come up with a situation in which this would be a real problem. Anyone?
      From: joesrealname@bigcorp.com
      To: janereporter@nyt.com
      Reply-To: joesfakename@yahoo.com
      --
      Big Corp has been paying large sums of money to politician X to get those big contracts. Here's a scanned memo showing this abuse. If anyone asks, leave my name out of it.
      Joe Whistleblower could lose his job if his "real identity" has to be exposed.
      --
      "Provided by the management for your protection."
    7. Re:One advantage DomainKeys has over SPF... by Kaa · · Score: 2, Insightful

      You probably already have one email address: the one your ISP gave you. For all intents and purposes, that's your canonical identity when you're on the Internet.

      Umm, no, not even close.

      I have an address at ISP (foo@isp.net). I never use it, since it's incovenient to access, plus it gets a ton of spam.

      I have several addresses at my domain (foo@mydomain.com, bar@mydomain.com, etc.). I do use them actively.

      I have a work address (foo@company.com) which I also use actively.

      I have a couple of yahoo addresses (foo@yahoo.com) which I regularly use to talk to people that I don't feel should know about my domain and website.

      Not to mention that I do NOT have a "canonical identity", whatever it is, on the 'net. What I have is several nyms. And even if I had one identity, why would it have to be tied to a single email address, anyway?

      However, understand that as a mailserver administrator, I'm not terribly interested that you don't want to provide your "real" identifying information to my server or my customers. If you want to contact me or my users, then I want to know your "real" name.

      That's arrogant and stupid.

      The job of a mailserver admin is NOT to decide who's allowed to send mail to the users and who's not. If a user asks (e.g. block all but this whitelist), sure. But absent a request from the user, you have no rights to decide which email goes through and which is blocked (with obvious exceptions for things like viruses).

      You are a mailserver admin -- that's a SUPPORT position. You don't decide what your users are allowed to see and you have no rights to demand to know the real name of people who are not even your users, but are just sending email to them.

      --

      Kaa
      Kaa's Law: In any sufficiently large group of people most are idiots.
    8. Re:One advantage DomainKeys has over SPF... by Otto · · Score: 4, Insightful

      The job of a mailserver admin is NOT to decide who's allowed to send mail to the users and who's not. If a user asks (e.g. block all but this whitelist), sure. But absent a request from the user, you have no rights to decide which email goes through and which is blocked (with obvious exceptions for things like viruses).

      You are a mailserver admin -- that's a SUPPORT position. You don't decide what your users are allowed to see and you have no rights to demand to know the real name of people who are not even your users, but are just sending email to them.


      I'm sorry, but you are incorrect. The mailserver admin is acting on behalf or (or may be in fact) the owners of the hardware that the mail in question is travelling through. That gives them every right to decide, by any standards they like, what mail they accept or don't accept.

      This is a simple question of property rights. My property, my rights.

      As far as what the users want, sheesh, it's like you just don't trust market forces anymore.. If the admin blocks too much, the users get pissed and find a new ISP. It's a self-correcting problem.

      It is the mailserver admin's job to ensure the correct operation of the mailing system, and the owners of the system get to decide what "correct" means. Deal with it.

      --
      - Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
    9. Re:One advantage DomainKeys has over SPF... by Just+Some+Guy · · Score: 2, Informative
      Where did I ever imply that I was making arbitrary rules? My clients ask me to reduce the amount of spam that they receive. I give them a list of policies, and the pros and cons of each. They pick the ones that they're comfortable with, and I implement them. In some cases, the clients are paying customers with machines in far-off states. In other cases, the clients are my family. Either way, I'm not single-handedly chosing policy.

      I am, however, responsible for implementing that policy as best as I can. Right now, that involves a few blackhole lists, ClamAV, and SpamAssassin. Now I want to test SPF to see if it can help without causing too many false positives. The unfortunate reality is that huge operating expenses have caused most of my clients to decide that they can't afford to blindly accept email from just anywhere, and they're certainly not the only companies that have begun feeling this way.

      The good news is that SPF and other technologies show promise of letting us little guys continue to run our mailservers. If some people had their way, the solution to spam would be to reject all email that doesn't originate from large businesses. Even if SPF inconveniences a few people, I still think it's a workable solution that does far more good than harm.

      --
      Dewey, what part of this looks like authorities should be involved?
  8. Perhaps I'm missing something by Anonymous Coward · · Score: 5, Insightful

    But doesn't this miss the point of spam?

    Based on articles refered here on Slashdot, I'd assumed a major source of spam were machines that have been compromised. Spammers use known lists of unwitting relays to forward spam through legitimate hosts.

    Email today will tell me the name of the host where something came from, that doesn't really help. At best, I could (a) contact the owner of the domain (which I can do today) (b) develop a list of open relays that I won't accept mail from (which I can do today).

    It seems to me the net effect of this is to limit email to large ISPs. It won't be good enough for me to buy a T1 and run my mail server from there, I'll have to rely on Yahoo, MSN, AOL, Comcast and a few others to be my MTA because people won't accept mail from a small provider (or a single point system) any more.

    1. Re:Perhaps I'm missing something by eric76 · · Score: 5, Insightful

      There is no need to limit e-mail to the big ISPs. Are you suggesting that all the corporations and smaller ISPs purchase e-mail services from the bigger companies? What would that accomplish?

      The major source of spam are machines that are compromised is true. The vast majority of such machines are not mail servers at all. Shunning all the small providers and companies might help reduce spam somewhat, but at an enormous expense.

      If you accept e-mail only from legitimate e-mail servers, regardless of the size of the ISP or company, you would accomplish pretty much the same thing.

      By the way, if the big ISPs have the market cornered on e-mail services, what makes you think they would be anti-spam? The larger reason that they are anti-spam is because of being blocked by the vast numbers of smaller ISPs and companies who pioneered the use of blacklists. Take away that and the big ISPs would love spam because they would be able to collect more money from their captive audience based on the volume of mail handled for that company or smaller ISP.

    2. Re:Perhaps I'm missing something by CustomDesigned · · Score: 5, Insightful

      Neither SPF nor Domain Keys directly addresses spam. They both prevent forgeries, aka "joe jobs". SPF stops envelope forgery. DK stops mail header forgery. The vast majority of AOL spam is not sent via AOL. That is why AOL is an early adopter of SPF. I have gotten death threats from people who are sick of getting spam I supposedly sent them. If SPF were widely implemented in MTA's, they would never get such forged mail. When SPF becomes widely implemented, spammers can publish SPF records also - in fact many already are. But now you can use the domain registration to track the source of the spam. This facilitates prosecution of scams, and blacklisting of unwanted spamming vendors.

    3. Re:Perhaps I'm missing something by ajs · · Score: 3, Interesting

      While you are correct, SPF is the wrong solution. Like AOL's "we only accept mail from corporate entities" policy, SPF's solution throws out a good chunk of the baby along with 80% of the bath-water.

      The road toward reliable, authentication of mail is long, and we've only just started... hopefully our few first missteps will be corrected as we go.

  9. SPF breaks Forwarding by Anonymous Coward · · Score: 5, Informative

    I'm the SysAdmin of an ISP. We had to turn off SPF after some users couldn't send e-mail to people that used mail forwarders. For instance, if someone has a domain 'foo.com' that sends all mail sent to it to 'foo@verizon.net', and foo.com resides outside of verizon.net, my users wouldn't be able to send him mail if Verizon uses SPF.

    SPF is junk. The number one priority of e-mail: Legit mail must reach the recipient.

    1. Re:SPF breaks Forwarding by Mz6 · · Score: 5, Informative
      Info from the SPF site on forwarding...

      "Forwarding services and web-generated email sites need to deploy SRS. Pobox.com, for instance, has already integrated SRS into its bespoke MTA using Mail::SRS.

      Hobbyists who provide .forward or /etc/aliases services will also have to get an SRS-enabled MTA.

      Sites that do not do .forward or /etc/aliases forwarding to remote sites will not need to do a thing.

      Once a majority of forwarding setups are SRS-compliant, SPF publishers can change their defaults from "neutral" or "softfail" to "fail". "

      Seems like for fowarding to work.. one method has to become a standard.. And we need to do it right this time. The above text says that everyone would have to install their software to get forwarding to work.

      --
      Hmmm.
    2. Re:SPF breaks Forwarding by Daniel+Boisvert · · Score: 2, Informative

      You've gotta be kidding me. SPF requires SRS for folks who use forwarding services. This is all over the website. It's also pretty clear from what I've seen that *all* the good solutions to the forged email problem will break forwarding as we do it today. That's just the way it goes. We can't afford to be as trusting today as we could when email was invented. It sucks, but it's reality.

      Yes, folks need to implement things properly. That's largely why SPF has different fail modes, so you can slowly phase it in. As it gains more momentum, the folks who run mail servers will have to play along in order to have their systems reap the rewards of non-spoofed email. Welcome to the wonderful wide world of cooperation. There's this thing called the internet that works largely because of this. Perhaps you've heard of it?

    3. Re:SPF breaks Forwarding by ajs · · Score: 2, Insightful

      SRS is a hackish, and harmful solution to a hackish and harmful protocol kludge (SPF).

      I'm sorry, it was a good attempt, but it's just not going to fly given how disruptive it is. Worse, it's disruptive at a distance, so enabling SPF and dutifully enbabling SRS to compensate still forces your users to track down their forwarders and force THEM to use SRS before the scheme works.

      Broken systems thwart adoption. I don't know if DK is the solution, but I'll give it a chance. I already gave SPF a chance, and have since removed it due to the harm it caused.

  10. SPF breaks relaying by Mr.+Slippery · · Score: 5, Informative
    other than doing relay-based signing of the messages to provide the sender verification.

    SPF's handling of relays is broken:

    But that breaks forwarding!

    Yes, it does. You'll have to switch from forwarding, where the envelope sender is preserved, to remailing, where the envelope sender is changed. But don't worry, we're working on providing SRS patches for the four major opensource MTAs, so that when you upgrade to an SPF-aware version, this problem will be solved also.

    If DomainKeys takes care of that, I'd choose it over SPF in a heartbeat.

    --
    Tom Swiss | the infamous tms | my blog
    You cannot wash away blood with blood
    1. Re:SPF breaks relaying by eric76 · · Score: 3, Interesting

      I think it is far superior to SPF.

      You have a known e-mail server that can vouch for each e-mail that it sends on behalf of it's customers. It is far tighter than SPF.

      The one problem with domainkeys (based on my understanding of it) is that it just verifies that the e-mail came from the domain. It doesn't verify that the sender is the real sender.

      What I'd prefer is for the e-mail servers to generate a separate PGP or GPG key for each user for signing the e-mail and signing only those e-mail sent by an authenticated user on the machine.

      And instead of providing the key by DNS, extend SMTP to handle a key request.

      When your server received an e-mail, say from joeblow@example.com, it would check the signature. If the public key for that sender wasn't cached, it would connect to the host the e-mail would come from if it is legitimate and request the key for that user.

      It could also be done via mail. Send a request to joeblow-publickey@example.com and the sender would automagically reply with the public key for joeblow@example.com.

      And it would be possible for a user to provide his public key to the server for it to use. That way, he could sign his own message instead of the e-mail machine.

  11. Possible method to defeat. by bagel2ooo · · Score: 3, Insightful

    I know this perhaps sounds silly. Could someone perhaps keep bouncing messages off the MTA and using the signed messages from that to try to decrypt the cipher and such? If a system is compromised (i/e: with a virus/worm) couldn't the technology be defeated via that as well? Signing messages like that sounds like a good idea but when you have weaker links or loopholes that aren't readily being fixed or are being ignorant by apathetic admins how does one handle that?

    --
    ( o ) one could say I'm rather baked
    1. Re:Possible method to defeat. by -brazil- · · Score: 4, Informative
      Could someone perhaps keep bouncing messages off the MTA and using the signed messages from that to try to decrypt the cipher and such?


      A really good cipher is resistant even against such a "chosen plaintext attack"; furthermore, it's trivial to defeat such attacks completely by inserting a meaningless random element.


      If a system is compromised (i/e: with a virus/worm) couldn't the technology be defeated via that as well?


      Not nearly as easily as now, since it requires cooperation from the DNS server.

      --

      The illegal we do immediately. The unconstitutional takes a little longer.
      --Henry Kissinger

    2. Re:Possible method to defeat. by ArbitraryConstant · · Score: 3, Informative

      Good points, but:

      a) If your keys are stolen you can just update your DNS info with new keys, it'll only take a few days to propagate, and DNS security is reasonable to strong.

      b) If a particular ISP is misbehaving, you can blacklist them, or filter them more agressively by other means. Once you know for sure who everyone is, blacklisting becomes much easier and much less damaging.

      c) Cryptographic signing is well understood, large key sizes are practical, hardware acceleration is cheap, and signing/verifying a message is easier than running spamassasin on it.

      d) DNS based authentication is the one thing I've heard that I can't reply to with this.

      --
      I rarely criticize things I don't care about.
    3. Re:Possible method to defeat. by Minna+Kirai · · Score: 2, Informative

      furthermore, it's trivial to defeat such attacks completely by inserting a meaningless random element.

      No. If your cipher is good, then you don't need to add random junk to prevent known plaintext analysis- and if it's bad, then the random element won't protect you.

      (All the random effect can do is shift the position of the known plaintext within the encrypted message. This will at most increase the effort to brute-force by a factor of message length, so you can do better by choosing a superior cipher. If the randomness does something more, then it has become effectively an extension to the cipher algorithm)

      Not nearly as easily as now, since it requires cooperation from the DNS server.

      No, that has no effect. If my worm roots your box, then the DNS server will claim that the new emails being sent have the same source as the old ones.

  12. That's "boycott-email-caller-id.org" by Anonymous Coward · · Score: 4, Informative

    The post above has the wrong URL. The site that describes the patent issues with caller id for email is actually boycott-email-caller-id.org.

    It has a brief mention of domainkeys as well.

  13. What does this mean? by Distan · · Score: 2, Insightful

    Cut to the chase. Is this going to make it any harder for me to send and receive email from my small (2 person) domain?

    1. Re:What does this mean? by Russ+Nelson · · Score: 2, Interesting

      Yes, you will need the ability to publish TXT records. SPF, EMail Caller ID, FreeS/WAN, and DomainKeys all require TXT records, so you won't be the only person beating up your DNS service to get the ability to publish them.

      No, DomainKeys does not require reverse DNS.
      -russ

      --
      Don't piss off The Angry Economist
  14. SPF and DK solve different problems by CustomDesigned · · Score: 5, Informative
    SPF validates the envelope from, and can be checked before the DATA phase of SMTP. Domain Keys validates the rfc822 headers, and can't be checked until after SMTP DATA.

    You want to implement both. SPF detects envelope forgeries before you have wasted much bandwidth. You can then use right hand side blacklists on sender domains. Yes, spammers too are adopting SPF. This is OK - those who like spam have something other than instinct to warn them when they are dealing with a scammer instead of a spammer. Those who hate spam can ignore it more efficiently.

    Domain Keys validates the message headers. It protects you against forgeries by users in the same domain - e.g. a spammer on yahoo forging an innocent party on yahoo. SPF can also detect envelope sender forgeries from the same domain in conjuction with SES (Signed Envelope Sender) - which adds a crypto cookie to the local part.

    You should implement SPF first. It is simpler, and eliminates most forgeries before SMTP DATA. SPF requires sepcial consideration for forwarders (SRS - Sender Rewriting Scheme) or whitelisting.

    DK is a good addon for large ISP domains like yahoo and aol, but is broken by forwarders or mail processing tools that modify the body. For instance, my DSPAM bayesian filter adds "tags" to messages.

    1. Re:SPF and DK solve different problems by Malc · · Score: 2, Informative

      Correct me if I'm missunderstanding SMTP (or just making things up), but once a message enters the DATA phase, isn't an MTA supposed to accept it? Aren't rejects during or after DATA supposed to be handled by bouncing rather than returning a failure error code to the sender? Which is the good thing about doing rejects before DATA as that forces the sender to deal with the problem.

      Somebody please correct me if I'm wrong ;)

    2. Re:SPF and DK solve different problems by AnotherBlackHat · · Score: 4, Informative

      Correct me if I'm missunderstanding SMTP (or just making things up), but once a message enters the DATA phase, isn't an MTA supposed to accept it?


      Consider yourself corrected.

      RFC 2821 in section 4.2.5 Reply Codes After DATA and the Subsequent <CRLF>.<CRLF>
      makes it clear that if an error code is returned after the final '.' then the receiver is specifically not supposed to handle the message, and any bounces are therefore the responibility of the sender.

      -- this is not a .sig

  15. Yet another YRO... by DragonMagic · · Score: 2, Insightful

    Yet another Your Rights Online that doesn't have anything to do with alerting the Slashdot crowd that perhaps one of our basic rights in the electronic age is being infringed or will be degraded to the point that someday it will be gone.

    This is a way, it seems, to help prevent spoofed header information in spam. I'm certainly glad that right is not infringed, thanks Slashdot.

    Really, the constant usage of YRO for these kinds of articles is diluting the effectiveness that YRO is supposed to handle. Keep these in articles, editors, please!

    --

    Human nature is the same everywhere; the modes only are different. -- Earl of Chesterfield
  16. Why domainkeys is better than SPF by duncanthrax · · Score: 5, Informative

    1. Domainkeys does not break forwarding.
    2. Domainkeys can be used either on the MUA or the MTA, for both sender and recipient sides. This makes it possible to still use 3rd party relays.
    3. Domainkeys spoof-protects the domain in the "From:" header field, which is what Joe Sixpack sees in his MUA application.

    Domainkeys does have the problem that you can't add headers to messages without re-signing them. If you re-sign them you must also rewrite the "From:" header. This will affect mailinglists.

    Domainkeys will not ultimatively solve the spam problem, but it is better than the broken SPF.

    1. Re:Why domainkeys is better than SPF by FattMattP · · Score: 2, Interesting
      Can you explain why you feel SPF is broken? Is it because of forwarding? From your own post it appears domainkeys is broken because you can't add headers without re-signing the message. I don't see the difference. No anti-forgery effort is going to be compatible with how how email works today. Something is going to have to change for improvements to happen.

      Not trolling here. I just want you to back up your "broken SPF" statement.

      --
      Prevent email address forgery. Publish SPF records for y
    2. Re:Why domainkeys is better than SPF by duncanthrax · · Score: 2, Interesting

      Yes, the forwarding is my main gripe with SPF. The proposed workaround is ugly at best.

      The other main problem is SPFs misunderstanding of the role of the envelope sender. It is nothing more than a return address for bounces. It does not securely identify the sender or his domain.

      But then, I admit it is unfair to compare SPF with Domainkeys. They do completely different things on a different "level". You could say that Domainkeys is closer to the user, because they can choose to trust email with their user agents. I think this is the better path to take.

    3. Re:Why domainkeys is better than SPF by CustomDesigned · · Score: 2, Interesting
      You don't need to currently because AOL doesn't check SPF. (They only publish it.) Should they decide to begin checking SPF, then hopefully they are competent enough to do it correctly - so you still don't need to. If not, then their incompetence in handling email will likely lose some mail - SPF is not required for incompetence to have that effect.

      In general, forwarders are selected by the email recipient and handling them correctly when implementing SPF is the responsibility of the email recipient. It is easy for the recipient to "punt" as a first step to implementing SPF and simply add Received-SPF headers without actually rejecting anything. The Received-SPF headers are remarkably effective at aiding content filters to do their job.

  17. SPF and DomainKeys complement each other by That's+Unpossible! · · Score: 4, Insightful

    SPF tries to assure the sender of the message (MAIL FROM, return-path, whatever you want to call it) is legitimate. DomainKeys can be used to assure the author of the message (From: header) is legitimate.

    I quote this from the very top of the SPF FAQ itself:

    "Protecting authorship information is an important goal. However, the technical issues associated with protecting the "From:" header are much more numerous and challenging. The best way to protect the header "From:" is by using a cryptographic signature such as S/MIME, PGP, or (when it is released) Yahoo DomainKeys."

    --
    Ironically, the word ironically is often used incorrectly.
  18. Enforcement is the only way. by Anonymous Coward · · Score: 2, Insightful
    What advantages to people see in Domainkeys over SPF that are actually useful, and what standard should people implement?

    Marginally better in theory because the sending hosts can change without requiring DNS changes, but in truth neither approach has much of a hope of affecting spam in any significant way. Might as well standardize over SPF which is the more estabilished method, instead of fragmenting further.

    Still, even if all of the sender verification and SMTP hardening methods were to be universally implemented, spam would just work its way around them, and even appear to be more legitimate, as long as throwaway domains are an option. You'd just get 100%-authenticated emails from 1stmortgageusa.biz and naturalviagra4u.com.

    The only real weapons against spam are legislation and enforcement.

    1. Re:Enforcement is the only way. by Doppleganger · · Score: 2, Insightful

      You'd just get 100%-authenticated emails from 1stmortgageusa.biz and naturalviagra4u.com.

      Bring it on. Fully-authenticated emails would make it a heck of a lot easier to verify that something isn't a joe-job and kick someone off the network. It'd also make it easier to blacklist stuff without huge amounts of collateral damage.

      Unfortunately, it sounds like this method would make receiving and sending emails more cpu-time expensive.. but the trade-off isn't as bad as many of the other "solutions".

    2. Re:Enforcement is the only way. by arr28 · · Score: 2, Insightful
      You'd just get 100%-authenticated emails from 1stmortgageusa.biz and naturalviagra4u.com.


      Excellent. Now I can get "100%-authenticated" whois data and...

      o Use legal tools against the spammer
      o Blacklist by domain not IP
      o Refuse email from domains with a registration date less than X days ago
      oUse "domain reputation" services

      At the moment I can't use any of these because I can't trust the sender information.
  19. SPF works with IP addresses, this one doesn't by Lorphos · · Score: 2, Insightful

    SPF requires you to send mail from certain IP addresses or at least relay it via certain servers. Sounds to me like the Yahoo! proposal does it without this requirement.
    Not bad, but far more complexity.
    Do I really want all this extra code in my small, secure qmail-smtpd binary?

  20. Where's the beef? by Anders+Andersson · · Score: 2, Insightful

    I admit that I haven't studied the proposal in detail, but if all it does is guarantee that the sender address isn't spoofed, then it's hardly a significant improvement over the present situation.

    We have the client IP address of incoming mail already, and that address is hardly ever spoofed. Is it helpful to us? No, not as long as the client ISP refuses (or is actually unable) to disclose to the recipient who was using [123.45.67.89] at that time. Are we to believe that the ISP will react differently when asked to identify the spammer behind authenticatedsender@optin.business.tld, or is there some postal address hidden in the digital signature?

    And if you think sender authentication will prevent obscuring the origin by using millions of 0wned proxies, think again. Unless the authentication process requires manual intervention by the sender for each message (say, by requesting a password), all the data necessary to authenticate a sender will be found on the machine at risk of being 0wned. Instead of seeing junk from moremoney@hotmail.com via your neighbour's IP address, you will see junk from your neighbour's authenticated e-mail address via your neighbour's IP address.

    If all e-mail is required to come with a valid sender address, all spam will come with a valid sender address too, and we are back at square one.

    The same goes for SPF.

  21. The problem I have with SPF by notsoclever · · Score: 3, Interesting
    SPF seems to be an IP-address-based whitelist mechanism. Which means that every possible host which might be serving as an MTA needs to be listed in my whitelist. That's all well and good for a home or office user, but what about when you travel and you're stuck sending mail from, say, the hotel's port 25-filtered network which requires that you use their SMTP server? And what happens when someone just uses that SPF record to see which systems will relay email for my domain and then just uses that server to send out lots of spam which looks like it originates from me, and then even worse is "proven" to be authentic?

    smtpauth isn't always an option, and most DNS hosting providers don't make it terribly convenient to keep on adding and removing temporary TXT records as necessary, nor would a company's IT department be terribly happy about needing to do the same for corporate travellers.

    What needs to happen instead is a domain having a public key registry (probably provided via NAPTR records; just do a NAPTR query on, for example, username.example.com and then get either NXDOMAIN or the public signature) and then signed messages. Of course, the fun thing then is the limit of the size of an NAPTR record, so it'd have to be a pretty small key. For this purpose I don't think it's necessary to have more than a 128-bit key or so, though, especially since discarding keys is so trivial (just set a TTL of 30 on the records and use dynamic DNS updates or whatever).

    --
    There are 10 kinds of people: ones who understand ternary, ones who don't, and ones who think this joke is about binary
    1. Re:The problem I have with SPF by RT+Alec · · Score: 3, Insightful

      You should not be using the hotel's SMTP server, or any other SMTP server except the one for your domain. Your SMTP server should accept initial mail submission (which is different than mail relay) on something other than port 25! 587 or 465 (SMTPS) work quite well (I strongly suggest SMTP+AUTH+TLS/SSL).

      Now your mail originates at the same server all the time, and SPF will work just fine since that IP address is in the SPF record. Your roaming issues are taken care of as well, no more reconfiguring your client software as you move from access point to access point.

    2. Re:The problem I have with SPF by FrostedWheat · · Score: 3, Insightful

      And what happens when someone just uses that SPF record to see which systems will relay email for my domain and then just uses that server to send out lots of spam

      Your email server is an open relay? If so, you've got bigger problems than SPF. If you mail does not reply anything coming in from the Internet, then you should not have any problem.

      As for remote users, set them up to use SASL SMTP on port 587. That way only they can relay mail from outside your own network.

  22. all email encrypted = viruses more effective by 0x537461746943 · · Score: 2, Insightful

    Because the gateway would not be able to scan the messages for viri... only the end users could see what the content was.

    Imagine what it would be like if everyone right now had encrypted email by default so hitting send automatically fetched a users public key to encrypt the data.

    Viruses would start using the same methods to encrypt email going to all those users. There would be more viruses getting through to users than there are now since gateways would not be able to scan the email.

  23. In somes ways its not about the best method.... by jhanshaw · · Score: 2, Insightful

    What is needed is a system backed by a company such as yahoo. As long as it achieves the end goal, and starts to sort out the spam problem, then I say go for it.

  24. Sure, they'll take your mail... by Otto · · Score: 3, Informative

    It won't be good enough for me to buy a T1 and run my mail server from there, I'll have to rely on Yahoo, MSN, AOL, Comcast and a few others to be my MTA because people won't accept mail from a small provider (or a single point system) any more.

    Sure they will. With SPF, for example, you setup the SPF rule for your domain to allow that domain to be a sender of mail for the domain.

    You will need to have your own domain, I admit.

    --
    - Give a man a fire and he's warm for a day, but set him on fire and he's warm for the rest of his life.
  25. advantage over SPF by theonlyholle · · Score: 3, Interesting

    I think the main advantage over SPF is that this approach doesn't break forwarding as horribly as SPF does. Yes, you can do envelope rewriting for forwarded messages, but Yahoo's approach doesn't require that *all* the servers along the way support it.

  26. SPF does not break forwarding by CustomDesigned · · Score: 4, Informative
    I am dismayed at how often this misunderstanding has been repeated here.
    • If the receiver does not check SPF, then no mail is rejected and forwarding is not broken.
    • If the receiver does check SPF, but doesn't use any forwarders, then forwarding is not broken.
    • If the receiver does check SPF, but uses only forwarders that implement SRS, then forwarding is not broken.
    • If the receiver does check SPF and uses a non-SRS forwarder, but uses a whitelist to avoid rejecting mail from that forwarder, then forwarding is not broken.
    • If the receiver check SPF and uses a non-SRS forwarder, but configures their MTA to reject mail from that forwarder, then their incompetence will result in rejected mail. How is this the fault of SPF?
    1. Re:SPF does not break forwarding by AnotherBlackHat · · Score: 2, Insightful

      I am dismayed at how often this misunderstanding has been repeated here.

      * If the receiver does not check SPF, then no mail is rejected and forwarding is not broken.
      * If the receiver does check SPF, but doesn't use any forwarders, then forwarding is not broken.
      * If the receiver does check SPF, but uses only forwarders that implement SRS, then forwarding is not broken.
      * If the receiver does check SPF and uses a non-SRS forwarder, but uses a whitelist to avoid rejecting mail from that forwarder, then forwarding is not broken.
      * If the receiver check SPF and uses a non-SRS forwarder, but configures their MTA to reject mail from that forwarder, then their incompetence will result in rejected mail. How is this the fault of SPF?



      My problem with your list above is that it assumes that the "receiver" is the same party as the "forwarder"
      While that's true in many cases, in many others, it's not.

      I'm sure a lot of people forward email to their AOL accounts.
      Consider AOL. To implement SPF, AOL would need to allow each user to whitelist mail from IPs
      (They can't whitelist all forwarders without essentially whitelisting the whole internet.)
      Not impossible for AOL, but not exactly trivial either.

      SPF requires supplemental work to keep things working. If you chose not to call that "breaking" then fine.

      -- this is not a .sig
  27. SPF/DK is wortless by apavel · · Score: 3, Interesting

    It is known that most spam-sending machines is trojaned computers on broadband networks with clueless owners.

    I think the only way this problem can be solved by ISPs with firewal between Internet and end-users. And may be sell unfirewalled connection to power users.

    With SPF/DK spammers will just register bogus domains ($30 and may be even less for single domain in .com with possible endless subdomains), configure SPF/DK DNS records and send spam.

    As always, sorry for my bad english, I hope you understod me :-)

  28. As long as... by .@. · · Score: 5, Insightful

    As long as SPF breaks forwarding (and as long as SPF supporters behave as though this is no big deal), it'll fail.

    SRS is nothing but re-hashed bang-pathing, and the SRS folks don't address any of the problems inherent in bang-pathing.

    Show me a Unix system that doesn't use /etc/aliases! (postmaster and abuse accounts, anyone?)

    --
    .@.
  29. Anyone using SPF with Sendmail? by Just+Some+Guy · · Score: 4, Interesting
    I admin several FreeBSD mailservers. I've added SPF records to the DNS for all of my domains, but I'd like to start using it to tag incoming email. Unfortunately, I'm not having much luck finding Sendmail milters (or other plugins) that 1) aren't written in Perl and seem to require half of CPAN, or 2) don't require much patching of Sendmail itself.

    Are there any lightweight milters that would work under FreeBSD that I could use to start using SPF on production systems? While I certainly won't be filtering out unknown mail at this time, I'd like to start inserting result headers to see how accurate it is in the real world.

    --
    Dewey, what part of this looks like authorities should be involved?
  30. Fine, but does it scale? by Anders+Andersson · · Score: 3, Insightful
    However, pobox.com has theirs software up an working while Yahoo only has a working document to offer proof of concept. I would like to see Yahoo's example up and running and see how it would compare once out in the wild.

    While working implementations are essential, they are by no means sufficient for estimating the effects of Internet-wide adoption of the proposed solution. Therefore the quality of the theoretical discussion matters a lot too.

    When e-mail was first deployed, there was hardly any spam at all, for obvious reasons. It appeared later, not because of a change of technology, but due to a change of Internet demographics. Any proposal promising to do away with spam must be scrutinized in terms of: What if everybody does it this way, will it still work?

    You can't try out new traffic regulations in a laboratory, even if you have a few actual cars at your disposal.

  31. Re:commments on boycott-email-caller-id.org/ by warrax_666 · · Score: 2, Informative
    Doesn't look to "encumbered" to me. Its free for anybody to use, even in GPL code, as long as you pass along the license agreement.

    That last bit is not allowed by the GPL. It does not allow further restrictions on the distribution of the software which is under the GPL.
    --
    HAND.
  32. A solution I've had in mind.... by ahg · · Score: 3, Interesting

    I find the broken forwarding to be the biggest problem with SPF. -- Their solution SRS, rewriting the Envelope addresses so that the middleman then handles all the bounces seem like a definite kludge. (You can read about it here

    As someone who provides hosting for small companies and usually uses /etc/mail/virtusertable to forward mail for customer domains, I don't want my setup/setup tools broken by having to implement a more complex mechanism and in turn have a higher server load handling bounced messages when a client's mail box is filled.

    While I haven't read the DomainKeys proposal, it has occurred to me before that a variation on SPF with encryption could be implemented without having to extend the ESMTP protocol. TTBOMK (To the Best of My Knowledge) ESMTP allows you to send parameters following the "MAIL FROM" command and these parameters would be preserved as part of the message envelope when forwarding. It would seem to me that an PGP/GPG, private key, encrypted string sent as a parameter would allow updated MTAs to verify the original source by decrypting the string with the orignating servers published public key. How does one publish their public key? Simple, use the TXT record in DNS (similiar to SPF's use of DNS). At the same time, this shouldn't in anyway break compatability with receiving SMTP servers that don't recognise the new parameter.

    While I haven't RTFA, this has been on my mind for a while, as a "better than SPF" solution and I'm sharing it here. How do you think it stacks up to SPF/DomainKeys?

    --

    --Aaron Greenberg

  33. Solveable problem by mccrew · · Score: 2, Informative
    --
    Hey, Windows users, there is no such thing as "forward" slash, there is only slash and backslash.
  34. Suppose we get rid of the SRS requirement by mengwong · · Score: 2, Interesting

    Hi.

    SRS is a pain in the butt, and the comments in this thread agree.

    I have been mulling over alternative ways to solve the forwarding problem.

    Would people like SPF better if we replaced SRS with a less onerous workaround?

    If so, and if the workaround is agreeable, I think the last remaining technical hurdle goes away; all that is left to do is get buy-in from all the major industry players. I can try to do that next week.

    cheers
    meng

  35. Re:Here you are by Greyfox · · Score: 2, Funny

    If they would just make killing spammers legal, nothing on that form would apply. Write your congressman today!

    --

    I'm trying to teach myself to set people on fire with my mind... Is it hot in here?

  36. DNS Security will solve all our problems. by iwadasn · · Score: 2, Interesting

    What we need is so simple, DNS security. The root servers have private keys which are well known. They hold public keys for the tld servers. When you look up your tld server, get the public key too. Tld servers hold public keys for lower DNS servers, etc... recursive system, etc... This has several advantages.

    1) No more public key madness. Everyone's public keys are part of the DNS system if you have a domain name. Simple, easy. Everything can be ssl with the press of a button, no need to setup keys.

    2) Now require that the sender of email signs the email with the appropriate (as determined by DNS) key.

    Simple, easy, problem solved. No more email spoofing, no more certificate BS. WHen you get a domain name, you register your public key (for free, presumably) and you're done.

    So you might ask, why hasn't this been done before? The answer has something to do with the fact that Verisign controls the TLD servers, and makes a killing off of selling Certs. So if this caught on, no need to pay for certs, and that's bad for Verisign, so they'll torpedo any such proposal.

    This idea has been around for a long time, perhaps it should finally be implemented this time.

  37. A simple plan to curtail spam.... by iamcf13 · · Score: 2, Interesting

    1. Route all outgoing port 25 traffic through the sender's ISP mailserver NO MATTER WHAT.

    2. If 1. is not done then use:
    a. POP-BEFORE-SMTP to curtail unauthorized mailserver use. This is the simplest authentication scheme to use.

    b. Otherwise only allow connections to bonafide mailservers. All other connections are refused (no more proxy access).

    3. The recipient mailserver REFUSES to act as a 3rd party relay to relay email messages for the other two parties. The sender mailserver should look up the recipient's mailserver and directly talk to it instead.

    4. The controversial step would be to employ spam filtering at the SMTP/DATA phase of the email transmission. Once the sender mailserver sends the recipient mailserver the email message, it is scanned for 'spamminess' and, if deemed spam, is rejected with a '421 try again' code to disconnect and slow down spammers or outright reject the message with a '570 THIS IS SPAM!' code and wait for the sender mailserver to disconnect. I wouldn't advise this as a rouge mailserver spewing spam could simply keep the connection open and tie up the recipient mailserver's resources.

  38. SPF isn't based on IP addresses. by jefp · · Score: 4, Insightful

    Why do people keep saying SPF is based on IP addresses? Here's my SPF string: "v=spf1 a mx a:safe.acme.com a:widget.acme.com a:pill.acme.com -all" Do you see any IP addresses in there? I don't. SPF is based on domain names.

    And another thing. People keep complaining that SPF and other similar schemes won't stop spam cause spammers use hijacked machines. Duh! What these schemes will stop is worms, not spam. That also explains why Microsoft is interested - rather than fixing their god damned software so it's secure, they want to fix everyone's email so that broken Microsoft software isn't quite so annoying. Well, whatever.

  39. Domain Keys suffers from Replay Attack by jgardn · · Score: 3, Interesting

    Domain Keys principle weakness is in a replay attack. Here's how to do it.

    A spammer sends a single email from his Yahoo! account to himself. He takes the sent message, encrypted with domain key, and then sends this message billions of times to servers across the planet. Since the message is encrypted with Yahoo!'s domain key, it is apparently authorized by Yahoo!.

    Domain Keys without SPF won't work, because SPF says which servers are allowed to send email, while domain keys just says an email was signed by a particular key. If Yahoo! had SPF records as well as domain key records, the spammer would have to infiltrate a valid Yahoo! mail server to send the mail.

    --
    The radical sect of Islam would either see you dead or "reverted" to Islam.
    1. Re:Domain Keys suffers from Replay Attack by Anonymous Coward · · Score: 2, Informative

      Duplicate messages are trivially blocked, and in fact many MTAs already block messages with duplicate Message-id's.

    2. Re:Domain Keys suffers from Replay Attack by rthille · · Score: 2, Informative


      That attack could work, since I'm pretty sure Domain Keys doesn't sign the envelope.
      Yahoo could immediately disable that account, but the spammer could continue to resend the same message. The 'To:' header would likely show only a no longer valid email address for the spammer. The 'From:' would of course be an ex-valid Yahoo account, probably created with bogus info.
      But given that the messages would have to be completely identical, solutions like DCC (http://www.rhyolite.com/) would help.

      --
      Awesome furniture, accessories and cabinetry in Santa Rosa, CA: http://humanity-home.com/
  40. Actually, SPF *is* based on IP addresses. by mdfst13 · · Score: 2, Insightful

    The only verified data that one has about the sender with SPF is the IP address. The A records in your line all resolve to IP addresses (that's what an A record does; it turns a domain name into an IP). The MX resolves to a domain name (which resolves to an IP address). Thus, SPF (and Microsoft's Caller ID system) just verifies that the sending IP is allowed to send for that domain.

    Domain keys does not check the senders' IPs to verify them. Instead, it uses a digital signature. The difference between it and other signature programs (e.g. GnuPG) is that it operates at the mail server level rather than at the sender level. Digital signatures would work as far as verifying the sender, but that is not really their purpose. They are actually intended to maintain privacy (i.e. to encrypt the transmission). Identity verification is a side effect rather than the intended purpose.

    IP address based verification would be effective in countering many existing spam situations, e.g. joe jobs and virus emails sent direct from the infected computer. Hijacking the client's connection info for the mail server is vulnerable under whatever system. All systems are vulnerable to spammers buying a legitimate domain for their own use.

    There is already an IP based verification method. Technically speaking, all mail servers are supposed to have PTR records. Unfortunately, it is not effective, since not everyone is able to set PTR records for their IPs. Thus, one can't filter on lack of a PTR record. SPF allows one to verify that an IP is allowed to send for a particular domain, so accounts on domains with SPF records are much more difficult to joe job. Domain keys does not add to this; they are just vulnerable to a different set of exploits.

    My opinion is that the domain keys exploits (e.g. domain key hijacking) will be easier to exploit than the SPF exploits (e.g. IP hijacking). However, others disagree. SPF is certainly less computationally intensive to operate.