Slashdot Mirror


Sendmail Hit by Data Interception Flaw

ricepudd writes "Computer Weekly reports that Internet security researchers have discovered a serious flaw in Sendmail. The flaw could allow remote attackers to take control of users' PCs. The Sendmail Consortium urged users to upgrade to version 8.13.6 of the software, which contains a fix to the problem. Computer Weekly seems to think that the fact that the Windows version isn't affected will help curtail the threat."

208 comments

  1. Reality check: by Anonymous Coward · · Score: 4, Funny

    Ah, the WINDOWS version is NOT affected! How ironic!

    1. Re:Reality check: by Anonymous Coward · · Score: 5, Funny

      it's safer running the windows version of something?

      truly, it is the end times

    2. Re:Reality check: by Adeus666 · · Score: 1

      When windows has the most secure version of multi-platform software, it's not ironic. It's downright F***ed up!

    3. Re:Reality check: by Klaruz · · Score: 1

      Indeed. All 3 people who run the windows version of sendmail (of all things...) can rest easy.

      Am I the only one who thinks the idea of running sendmail on windows is downright strange? I've used postfix for years... I know you can come up reasons to run sendmail on windows, but jeeze... That's like finding a reason to run activex on linux.

    4. Re:Reality check: by gbjbaanb · · Score: 1


      Am I the only one who thinks the idea of running sendmail on windows is downright strange? I've used postfix for years...


      Running sendmail on unix is strange frankly. How many security issues have been found in it? When there are more secure alternatives like Postfix (apparently a drop-in replacement), or Qmail (zero flaws found to date), or Exim, there's really no need to keep installing the old timer.

  2. Flaw seems unexploited by rg3 · · Score: 5, Informative

    As everyone who follows the Slackware changelog, new packages were available yesterday. It seems there is still no exploit for this flaw, and it's somehow hard to exploit. That's the impression I got from the changelog entry. I'll paste it here:

    n/sendmail-8.13.6-i486-1.tgz: Upgraded to sendmail-8.13.6.
                  This new version of sendmail contains a fix for a security problem
                  discovered by Mark Dowd of ISS X-Force. From sendmail's advisory:
                  Sendmail was notified by security researchers at ISS that, under some
                  specific timing conditions, this vulnerability may permit a specifically
                  crafted attack to take over the sendmail MTA process, allowing remote
                  attackers to execute commands and run arbitrary programs on the system
                  running the MTA, affecting email delivery, or tampering with other
                  programs and data on this system. Sendmail is not aware of any public
                  exploit code for this vulnerability. This connection-oriented
                  vulnerability does not occur in the normal course of sending and
                  receiving email. It is only triggered when specific conditions are
                  created through SMTP connection layer commands.
                  Sendmail's complete advisory may be found here:
                  http://www.sendmail.com/company/advisory/index.sht ml
                  The CVE entry for this issue may be found here:
                  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE- 2006-0058
                  (* Security fix *)

    1. Re:Flaw seems unexploited by molnarcs · · Score: 4, Informative

      FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD has them (usually with patches) way before the news hits slashdot ;) For those who are asking for line numbers, just take a look at the patches included. Or better, here is a kompare screenshot.

    2. Re:Flaw seems unexploited by non-poster · · Score: 1

      Gentoo's advisory, released 2006/03/22

    3. Re:Flaw seems unexploited by cperciva · · Score: 5, Informative

      FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD has them (usually with patches) way before the news hits slashdot

      We do our best. :-)

      Seriously though, CERT told us that the embargo was going to end at 16:00 UTC, so I had a shell window open with a series of "cvs commit" commands waiting for me to hit <enter>, a window with the commit messages I was going to use, a window with the advisory text waiting for me to type in the correction times, a shell window open to ftp-master.freebsd.org waiting for me to copy the patches into the right directory...

      When you have two weeks advance notice, it's easy to get advisories out soon after the embargo ends -- the hardest part of the process was making sure that I'd be awake at 8:00 AM (PST).

    4. Re:Flaw seems unexploited by Anonymous Coward · · Score: 1, Funny

      the hardest part of the process was making sure that I'd be awake at 8:00 AM (PST).

      Commie.

    5. Re:Flaw seems unexploited by Radak · · Score: 0, Flamebait

      As everyone who follows the Slackware changelog, new packages were available yesterday.

      What exactly does this sentence mean? Or are you just one of those Slashdot writers who thinks that the more words he includes in his sentences, the smarter he will be perceived to be?

    6. Re:Flaw seems unexploited by Bacon+Bits · · Score: 4, Informative
      It seems there is still no exploit for this flaw, and it's somehow hard to exploit.
      If you read Sendmail's complete advisory, you can see that the vulnerability requires the exploitation of a race condition. You have to submit a request, and then before that one times-out submit another malformed one.
      --
      The road to tyranny has always been paved with claims of necessity.
    7. Re:Flaw seems unexploited by Anonymous Coward · · Score: 0

      Our servers thank you.

    8. Re:Flaw seems unexploited by Ed+Avis · · Score: 2, Informative

      You need a secure revision control system where changes you check in can be encrypted. So you could check in the fix as soon as it's discovered, but only a small number of people who know the key could check out the new version (and make further patches, etc). Then at 16:00 the key gets published to the rest of the world and everyone can then update.

      --
      -- Ed Avis ed@membled.com
    9. Re:Flaw seems unexploited by rg3 · · Score: 1

      Yes, I made a mistake. It should read "As everyone who follows the Slackware changelog knows." I was merely trying to explain where I got that information from, and trying to point out your vendor would probably have a fix out. Sorry if that's not the impression you got.

    10. Re:Flaw seems unexploited by pathological+liar · · Score: 1, Interesting

      On the Dailydave mailing list, Mark Dowd of ISS claims to have a working, reliable proof of concept exploit for the bug (Required as part of their assessment process). It's rumored to be floating around already. Frankly, I'm more willing to believe the person who discovered the bug than a handful of advisories and self-proclaimed 'experts'. Gadi Evron, I'm looking at you.

    11. Re:Flaw seems unexploited by Anonymous Coward · · Score: 0

      Had a better patch myself. Install postfix and dump sendmail. I was sort of thinking this might be a problem from me, but I remembered that I not only no longer use sendmail, I don't even compile it in the base system and removed it a long time ago.

      During your next buildworld:

      echo "NO_SENDMAIL=true" >> /etc/make.conf

      After youve done installworld, do a 'find' and look for older files in the base system directories (/bin,/sbin,/usr/lib, etc). Then delete the sendmail related ones.

    12. Re:Flaw seems unexploited by Anonymous Coward · · Score: 0

      Yeah, it's definitely exploitable. Here's notes someone decided to put up http://rapturesecurity.org/jack/exploiting_sendmai l.html.

    13. Re:Flaw seems unexploited by fbjon · · Score: 1
      "Sendmail is not aware of any public exploit code".
      You mean Sendmail is old enough to have achieved self-awareness??
      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
  3. What? Another one? by Anonymous Coward · · Score: 0

    All I hear from CERT is how insecure Sendmail is.

    Next time, I'm using Postfix.

  4. Gee, Full Disclosure would be nice by QuantumG · · Score: 1, Interesting

    Can you tell us the file and line number that causes the problem and the mitigating circumstances under which it occurs. Jesus, it is open source ya know.

    --
    How we know is more important than what we know.
    1. Re:Gee, Full Disclosure would be nice by LiquidCoooled · · Score: 5, Informative

      If you knew that you would be 99% of the way to solving the bug.
      As it happens, someone already posted a screenshot of the BSD version of the fix.

      A single line of c:

      t = 0;

      Inserted between lines 147 and 148 of file fflush.c appears to be the fix (reset a mem pointer just use above).
      I don't vouch for it and haven't even bothered to look at context or even if its the actual fix required, however its not like it was hidden and you don't need to get uppity about it.

      Incidentally, its such small code modifications that can bring great amounts of money to maintainers of corporate code that the monkeys don't understand what they are paying for.

      "But you only changed 1 line"
      "Yer, but that one line makes it work now...."

      --
      liqbase :: faster than paper
    2. Re:Gee, Full Disclosure would be nice by LiquidCoooled · · Score: 1

      there was a lot more files included in the fix than just the one.

      *refer to sig*

      --
      liqbase :: faster than paper
    3. Re:Gee, Full Disclosure would be nice by QuantumG · · Score: 2

      I hark from a time when that kind of information was front and centre in the security advisory. I'm old, I have an inalienable right to get uppity.

      --
      How we know is more important than what we know.
    4. Re:Gee, Full Disclosure would be nice by pyrotic · · Score: 1

      Considering the size, age and complexity of the sendmail code base, there can't be too many people who know which line to patch. Sendmail is ugly and unmaintainable, and needs to be rewritten from the ground up. Just ask sendmail. (The design document reminds me strongly of postfix. And no more sendmail.mc, yay!)

    5. Re:Gee, Full Disclosure would be nice by mooingyak · · Score: 1

      It's kind of like the furnace repair guy story. He came to fix a furnace and gave it a whack with a hammer. The whack worked, and he submitted a bill for $100. When the incredulous homeowner complained at being charged so much for a simple hammer whack, the repair guy noted that the whack cost him only $5 - the additional $95 was for knowing where to hit the furnace.

      Same concept applies to coding.

      --
      William of Ockham had no beard. The most likely explanation is that it was chewed off by squirrels every morning.
    6. Re:Gee, Full Disclosure would be nice by Anonymous Coward · · Score: 0

      fflush.c has nothing to do with the vulnerbility. its in collect.c (conf.c is also relevant).

    7. Re:Gee, Full Disclosure would be nice by X.25 · · Score: 1

      A single line of c:

      t = 0;

      Inserted between lines 147 and 148 of file fflush.c appears to be the fix (reset a mem pointer just use above).


      If you bothered to check patches (available on sendmail.org), you'd see that there is more in a patch than a single line.

    8. Re:Gee, Full Disclosure would be nice by Tim+C · · Score: 1

      I know from bitter experience that while a bug fix may involve only a small handful of lines (or even a single one), it could take literally days to work out what line is at fault.

      My favourite story is one that was related to me a couple of years ago by a coworker. A previous job he'd had was at a place that wrote software for EPOS systems - tills mainly. They received a bug report, and one of the guys was assigned to track down the fault.

      To cut a long story short, he spent six months working on it, until he finally tracked it down to being a hardware fault. Now that's an extreme case, but so is the mythical "5 minutes and one line of code" you seem to imply is common.

    9. Re:Gee, Full Disclosure would be nice by jimicus · · Score: 1

      Changing one line: $5
      Knowing which line to change: $1000

    10. Re:Gee, Full Disclosure would be nice by gnud · · Score: 1

      Someone eventually getting around to changing that line: priceless.

    11. Re:Gee, Full Disclosure would be nice by pAnkRat · · Score: 1

      > "But you only changed 1 line"
      > "Yer, but that one line makes it work now...."

      from "One note Song" by Tenacious D:

      K.C.: "But, it's only one note, anybody could've wrote it..."
      J.B.: "Yeah, but guess who _did_ write it."

      --
      we need an "-1 Plain wrong" moderation option!
    12. Re:Gee, Full Disclosure would be nice by LiquidCoooled · · Score: 1

      Your right, the image of the code comparison was just one minor part of the entire fix, however clearing that variable DID fix one particular bug even though it didn't tighten up the entire codebase.

      I specifically mentioned that I hadn't read everything and was merely pointing out to the parent poster that things aren't hidden away.

      --
      liqbase :: faster than paper
    13. Re:Gee, Full Disclosure would be nice by mooingyak · · Score: 1

      5 minutes and one line of code

      The idea in this case isn't so much the time involved as the number of lines of code.

      The analogy to the furnace repairman was more of how much observable work went on and the end result. He may still have spent an hour or whatever sounds appropriate looking at the furnace before deciding where to whack it. But a single hammer whack fixed the problem, in much the same way that a change to a single line of code can sometimes fix a bug. What might be difficult, depending on how well your boss understands your work, is explaing why you worked on a bug fix for 3 days and only made changes to 10 lines of code. That's where I think the situations are analgous.

      It *should* be rare to be able to find and fix a bug in 5 minutes or less. If it's that easy, it should have been caught during development or testing. Granted once in a while you'll have an encounter with real world data that will making you say something like "I didn't know that could happen" and the fix, by sheer luck, is still trivial.

      --
      William of Ockham had no beard. The most likely explanation is that it was chewed off by squirrels every morning.
  5. No link to actual advisory in summary or article by doorbot.com · · Score: 5, Informative
    I believe this is the actual advisory:

    http://www.frsirt.com/english/advisories/2006/1049

    A critical vulnerability has been identified in Sendmail, which could be exploited by remote attackers or network worms to take complete control of an affected system. This flaw is due to errors in the "setjmp()", "longjmp()" and "sm_syslog()" functions that do not properly handle certain asynchronous signals, which could be exploited by remote unauthenticated attackers to execute arbitrary commands by sending specially crafted requests to the SMTP port.
  6. Stupid Article by Krach42 · · Score: 0

    They say that the Sendmail Consortium says that some 70% of the world's email uses their services, but the fact that Windows isn't affected by the flaw will help curtail the effect?

    Who the hell thought that was even a smart thing to say? I mean, that's like saying that because Mac OSX and Linux aren't affected by the Sasser virus that this will curtail the effects of any worm.

    WHAT CRACK ARE YOU SMOKING AND WHY AREN'T YOU SHARING?!

    --

    I am unamerican, and proud of it!
    1. Re:Stupid Article by babbling · · Score: 0

      Not really. The fact that Windows is so common means that when Windows isn't affected, there IS less of an effect.

      Suppose on a network, 20% of hosts are Windows and 80% are Linux. If a worm is spreading through Windows, it will have to scan through more computers (on average) to find another Windows host to infect. Having to scan more hosts per host that you infect slows down the infection rate.

    2. Re:Stupid Article by laffer1 · · Score: 1

      Yes, but desktops don't run sendmail and windows. :)

      In fact, who the hell uses sendmail on windows? Everyone i know uses something like imail or exchange. Windows doesn't even have a monopoly on the server market. There are more *nix machines. In this case, your example of the sassier worm plays in... windows is mac os x and *nix is windows in terms of popularity.

  7. can someone explain... by Churla · · Score: 2, Insightful

    The difference between "Serious" and "Highly Critical"...

    (Yes, tongue is firmly in cheek here...)

    Why would this qualify as serious if there isn't even a known way to exploit it yet? Or was there one in there I missed?

    --
    I'm a fiscal conservative, it's a pity we don't have a political party anymore
    1. Re:can someone explain... by Anonymous Coward · · Score: 4, Funny

      You want a serious answer or a highly critical one?

    2. Re:can someone explain... by Darth_brooks · · Score: 1

      If the flaw has been made public, there's an exploit for it. The 'sploit might not be available on www.l33t-d0wn0ad-sp10tz.ru right now, but you have to assume that it's floating around out there.

      --
      There are some people that if they don't know, you can't tell 'em.
    3. Re:can someone explain... by hotdiggitydawg · · Score: 1

      Nice one. Been a while since anything on /. has actually made me laugh out loud!

    4. Re:can someone explain... by G-Licious! · · Score: 1

      Well sure, I imagine the folks at ISS wrote and ran an exploit to back up their claims.

    5. Re:can someone explain... by Chris+Kamel · · Score: 1

      because in a few hours there will be...

      --
      The following statement is true
      The preceding statement is false
    6. Re:can someone explain... by Anonymous Coward · · Score: 0

      Why would this qualify as serious if there isn't even a known way to exploit it yet?

      Because it's not likely that someone who knows is going to tell you.

    7. Re:can someone explain... by Anonymous Coward · · Score: 0

      You would think they have more important things to do on the space station.

  8. Ah! by O'Laochdha · · Score: 4, Funny

    So the FBI was wiser than we thought in withholding e-mail accounts...

  9. The FreeBSD mailing list is a little less alarmist by micheas · · Score: 4, Informative

    An email I received from the FreeBSD security mailing list seems to imply to me that this might be more of a concern for multi user systems.

    From: Claus Assmann <freebsd+security@esmtp.org>
    To: freebsd-security@freebsd.org
    Subject: Re: FreeBSD Security Advisory FreeBSD-SA-06:13.sendmail
    Date: Thu, 23 Mar 2006 10:31:20 -0800

    On Thu, Mar 23, 2006, Bigby Findrake wrote:
    > Does an attacker need network access to the machine, or does the attacker

    Yes.

    > merely need to be able to get an SMTP message to the machine?

    He needs to control the timeouts (AFAICT).

    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd- security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"

  10. Bah!! by Anonymous Coward · · Score: 0

    OOOLLLDDD NEWS!!

  11. My PC? by whitehatlurker · · Score: 1
    Sendmail is a mail transfer agent that would run on mail relays or servers, not typically on a desktop, particularly not in a network server configuration, which as far as I could see was the vulnerable configuration.

    That the Windows version is or isn't vulnerable doesn't enter into it. I doubt that 1 in 10000 windows boxes would run an email server. (Okay somebody do the sales of Exchange divided by total Windows boxes and show me to be wrong. ;-)

    --
    .. paranoid crackpot leftover from the days of Amiga.
    1. Re:My PC? by YU+Nicks+NE+Way · · Score: 3, Informative

      Windows has shipped with an SMTP server installed since Windows 2000. It's off by default in Server 2003 and in all client versions, and, I think, in 2000 Server, but it's there.

      What do you think the spammers use on their zombie boxes? Code they wrote themselves?

    2. Re:My PC? by Spy+der+Mann · · Score: 1

      I doubt that 1 in 10000 windows boxes would run an email server.

      We're running hMailServer (F/OSS) on our XP box, works like charm, has relaying controls and spam protection. Great for those with Apache/PHP/MySQL on windows.

    3. Re:My PC? by whitehatlurker · · Score: 1
      Thank you, I had forgotten that. I sit corrected. ;-)

      What do you think the spammers use on their zombie boxes? Code they wrote themselves?
      No, but I didn't think they actually used SMTP for anything. Isn't it all IRC traffic? I've never actually seen a zombie computer, sorry.

      --
      .. paranoid crackpot leftover from the days of Amiga.
    4. Re:My PC? by MightyMartian · · Score: 1

      I didn't even know there was a Win32 port of sendmail. Not that I'd use it anyways, Postfix on *nix is waaaaaaay easier to set up and administer.

      --
      The world's burning. Moped Jesus spotted on I50. Details at 11.
    5. Re:My PC? by Dionysus · · Score: 3, Funny

      What do you think the spammers use on their zombie boxes? Code they wrote themselves?

      Why would a spammer need a smtp server on a zombie box? Don't zombie boxes just send email?

      --
      Je ne parle pas francais.
    6. Re:My PC? by techno-vampire · · Score: 4, Funny
      Why would a spammer need a smtp server on a zombie box? Don't zombie boxes just send email?

      And what protocol do they use to send it? SMTP, of course.

      This has been another D'oh! moment.

      --
      Good, inexpensive web hosting
    7. Re:My PC? by larry+bagina · · Score: 2

      But they're an SMTP client, not an SMTP server.

      --
      Do you even lift?

      These aren't the 'roids you're looking for.

    8. Re:My PC? by Ryan+Amos · · Score: 1

      Yeah, but they sure as hell don't use sendmail. It's just easier to open a socket connection on port 25 and spew out your faked headers than it is to bother trying to hack it through sendmail.

    9. Re:My PC? by ignorant_newbie · · Score: 1

      >Yeah, but they sure as hell don't use sendmail.
      >It's just easier to open a socket connection on port 25 and spew out
      >your faked headers than it is to bother trying to hack it through sendmail.

      which is why techniques like HELO verification and greylisting are so effective.

    10. Re:My PC? by Batou · · Score: 2, Informative

      HELO verification as far as verifying HELO matching fqdn or ptr record or something is a highly dangerous thing to do and will lead to tons of false positives. Ever notice how many MSexChange servers are running out there declaring "IAMASTUPIDEXCHANGESERVER.LOCAL" or something?

      I see an awful lot of this on any given day ...

      @400000004422e50b06a4b4dc Accept::RCPT::Rcpthosts_Rcptto: S:63.145.94.241:unknown H:ms1.remax.local F: T:xxxx@xxxxx
      @400000004422e514391f8af4 Accept::RCPT::Rcpthosts_Rcptto: S:65.218.62.86:unknown H:wolf-server.WolfRealty.local F:xxxx@xxxx T:xxxx@xxxx
      @400000004422e5340cc927bc Accept::RCPT::Rcpthosts_Rcptto: S:70.89.50.73:unknown H:apollo.kwlansdale.local F:xxxx@xxxxx T:xxxx@xxxx
      @400000004422e53a3ae2842c Accept::RCPT::Rcpthosts_Rcptto: S:67.43.168.74:unknown H:bilbo.idcdomain.local F:xxxx@xxxx T:xxxx@xxxx
      @400000004422e56c2bf424d4 Accept::RCPT::Rcpthosts_Rcptto: S:71.4.51.66:unknown H:cmsacsvr01.comstock.local F:xxxx@xxxx T:xxxx@xxxx

      Like it or not, and whether the rfc's require it or not, there are an awful lot of people out there using mail servers setup by people completely and utterly unqualified to maintain them. And you bet your ass your users are going to complain (loudly) when they can't get emails from their customers/clients/aunt betty/whatever.

      Same for requiring reverse dns, spf records, etc. Use any of these for hard rejection, and you're nuts. (Hear me AOL?)

      --
      "Oh my God! The dead have risen! And they're voting Republican!" - Bart Simpson
    11. Re:My PC? by stor · · Score: 1

      Like it or not, and whether the rfc's require it or not, there are an awful lot of people out there using mail servers setup by people completely and utterly unqualified to maintain them.

      Yes that's true. I tell them to fix their MTA.

      Same for requiring reverse dns, spf records, etc. Use any of these for hard rejection, and you're nuts. (Hear me AOL?)

      Well I do. The spam situation is out of control. If the problem is that a remote MTA doesn't have a proper reverse DNS entry for instance, that needs to be fixed. Why should I modify my MTA to support other people's broken ones?

      Cheers
      Stor

      --
      "Yeah well there's a lot of stuff that should be, but isn't"
    12. Re:My PC? by corbettw · · Score: 1

      Windows has shipped with an SMTP server installed since Windows 2000.

      And that matters why, exactly? This is a problem with Sendmail, not the SMTP protocol. It's like saying "This Apache bug could affect Windows 2000 boxes running IIS." Just because it's using the same protocol doesn't mean it's using the same codebase.

      --
      God invented whiskey so the Irish would not rule the world.
    13. Re:My PC? by techno-vampire · · Score: 1

      Some zombies (or so I've heard) act as an SMTP server, making the box into a spam relay. Having the server software built into the OS just makes that easier.

      --
      Good, inexpensive web hosting
    14. Re:My PC? by blane.bramble · · Score: 2, Informative

      I think it is you who need to fix your broken MTA:

      "An SMTP server MAY verify that the domain name parameter in the EHLO command actually corresponds to the IP address of the client. However, the server MUST NOT refuse to accept a message for this reason if the verification fails: the information about verification failure is for logging and tracing only."

      Note the "MUST NOT". Rejecting an email because the host has no reverse DNS or incorrect host name is prohibited by RFC2821

    15. Re:My PC? by Batou · · Score: 1

      Yes that's true. I tell them to fix their MTA.

      And just how big is your sysadmin team? Ever try this? We put up rDNS requirement as a basis for hard-rejection 2 years ago during a virus outbreak that nearly knocked us off the map ... NEVER EVER AGAIN will we try this. My phone was ringing off the hook for 2 weeks with these morons wondering why the big bad corporate mail system was requiring them to actually know something about mail to deliver mail to us.

      I don't know you at all, man, but I can't imagine you're running anything but a hobbyist site with that attitude. This does not cut it in the ISP or corporate sector when I have 5 million mails a day coming in and just me and one other guy keeping the mail clusters up and running. You tell my board that the sales people can't get emails from their clients becuase their mail admin was the CEO's son-in-law and unqualified to run a mail system on the Internet.

      Well I do. The spam situation is out of control. If the problem is that a remote MTA doesn't have a proper reverse DNS entry for instance, that needs to be fixed. Why should I modify my MTA to support other people's broken ones?

      Agreed spam is completely out of control. I'm guesstimating 90+% of my mail traffic is unsolicited crap.

      Hell - You familiar with the old CRLF problems that 20+ years after SMTP was invented people still can't come to terms with? I had to put a wrapper in front of my smtp daemon to correct all these stupid bare line feeds spit out by these mailers. I was getting 100K's of rejections just due to this not that long ago ...

      You aren't doing your users a service by blocking legitimate mail because it breaks RFC or your personal ideas of how things should work. If it's your mail server managing MX for your own domain, then by all means go NANAE and blacklist the entire net away. The rest of us that do this for a living will have to continue dealing with the morons out there.

      --
      "Oh my God! The dead have risen! And they're voting Republican!" - Bart Simpson
    16. Re:My PC? by Nintendork · · Score: 1
      "Windows has shipped with an SMTP server installed since Windows 2000. It's off by default in Server 2003 and in all client versions, and, I think, in 2000 Server, but it's there."

      Okay, so if clients are left out, then that leaves Windows 2000 Server and Windows Server 2003. If it's off by default in 2003, that leaves 2000. If it's off by default in 2000 Server, that leaves nothing. What kind of statement was that?

      To set the record straight, server versions of Windows 2000 were the only versions of Windows to install IIS with the SMTP subcomponent by default and it is set to automatic. Kinda retarded, but whatever.

      -Lucas

    17. Re:My PC? by SCHecklerX · · Score: 1

      For any system that sends alerts via email(ie, it's not acting as a mail relay), you likely want to run a local sendmail in case there is any problem sending to your real MTAs so that those alerts are queued rather than lost. This includes windows servers.

    18. Re:My PC? by YU+Nicks+NE+Way · · Score: 1

      The question is whether the code is *there*, not whether it is turned on. In SP4 of 2K server, I believe that it is not even turned on by default, but I'd need to go back and check.

      Either way, I agree that installing IIS/SMTP by default is a very bad idea.

    19. Re:My PC? by fbjon · · Score: 1

      So, since when does Windows come with Sendmail by default? I mean, that's what the bug is all about.

      --
      True confidence comes not from realising you are as good as your peers, but that your peers are as bad as you are.
  12. FC5 comes with sendmail-8.13.6-0.FC5.1 by erroneus · · Score: 1

    Yay! I've been meaning to upgrade my mail server anyway... I'll just do it with more urgency now.

    1. Re:FC5 comes with sendmail-8.13.6-0.FC5.1 by metamatic · · Score: 1

      Are you saying FC5 still has sendmail as default MTA?

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    2. Re:FC5 comes with sendmail-8.13.6-0.FC5.1 by DrSkwid · · Score: 1

      As does OpenBSD 3.8

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
    3. Re:FC5 comes with sendmail-8.13.6-0.FC5.1 by Anonymous Coward · · Score: 0

      so does RHEL 4 Update 1...what's the point?

    4. Re:FC5 comes with sendmail-8.13.6-0.FC5.1 by metamatic · · Score: 1

      Yes, but are either of them dumb enough to make it the normal MTA installed?

      I mean, Debian *comes with* sendmail, but nobody will have it unless they're dumb enough to explicitly request that it be installed.

      --
      GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
    5. Re:FC5 comes with sendmail-8.13.6-0.FC5.1 by DrSkwid · · Score: 1

      Sendmail is up and running when OpenBSD boots multi-user after install

      --
      There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  13. Re:No link to actual advisory in summary or articl by pneumatus · · Score: 3, Informative

    Further info of this security advisory available on CVE-2006-0058 and from Security Focus

    --
    Just don't create a file called -rf. :-) -- Larry Wall
  14. The inevitable 'use postfix!' post.... by Malor · · Score: 5, Informative

    Yes, I realize this is too late for those of you running Sendmail now, and please don't take this as criticism for using it.... it's a solid mail program. But it was written when the Net was a much nicer place, and it's proving, once again, that retrofitting security is either very difficult or impossible. For a long time, it seemed like practically every third exploit was for Sendmail... it got pretty frustrating.

    The two major alternatives are Qmail and Postfix; Courier is sort of an up-and-comer, but they've had quite a number of security holes in those packages. (of course, that may also be related to the fact that Courier does a lot more than just deliver mail.) Of the three, I prefer Postfix. It's exceedingly solid, very fast, and fairly easy to configure. The initial learning curve is a little steep (mostly because there's about a billion things you can set), but the config files are readable when you're done. You don't have to relearn the whole program every six months. It's also very secure... I'm only aware of two security problems in its entire history. (I don't remember the details, but I think one was minor, and the other was moderately serious.)

    QMail is also solid, fast, and secure. But the author has decided that Unix machines should be configured a particular way, with files in particular places, and he uses his code as a weapon to try to force you to do things the way he wants. So I won't run it unless I have to. I don't deny that he's a brilliant coder and forty-eight times smarter than I am, but I refuse to be dictated to.

    Postfix can take a beating.. it is Truly Great Software. It will handle any load that Sendmail will handle, it's easier to administer, and the security is better. And, of course, it's truly free... Wietse won't try to make your administration decisions for you.

    1. Re:The inevitable 'use postfix!' post.... by ClamIAm · · Score: 1

      There's also Exim and some others, as well.

    2. Re:The inevitable 'use postfix!' post.... by killjoe · · Score: 1

      Debian and derivatives come with exim set as the default MTA. I don't understand why redhat and it's derivatives come with sendmail as the default MTA. Postfix can actually be configured by normal people unlike sendmail and it's just as performant and a lot more secure.

      Just doesn't make sense. The first thing I do any redhat system is to chuck sendmail and install postfix instead.

      --
      evil is as evil does
    3. Re:The inevitable 'use postfix!' post.... by bigtrike · · Score: 1

      Redhat has so many stupid defaults. The stupid path setup makes it tedious to compile anything yourself. Apache, postgres, php, etc stupidly do not have many features compiled in or compiled as modules, which forces you to compile things yourself. Their libc compiles have bizarre patches applied which tend to cause hard to trade bugs that only affect Redhat users. RPM is fairly painful to work with.

      While you probably have your reasons for using or sticking with Redhat, I decided years ago to chuck it and have been much happier.

    4. Re:The inevitable 'use postfix!' post.... by naelurec · · Score: 1

      Postfix is licensed under the IBM Public License v1.0. I am unsure how compatible that is with the GPL (and perhaps the primary reason for it not being included). Exim is GPL .. not quite sure why it isn't more popular among the distros (perhaps sendmail history wins out?)

    5. Re:The inevitable 'use postfix!' post.... by violent.ed · · Score: 1, Offtopic
      (of course, that may also be related to the fact that Courier does a lot more than just deliver mail.)

      This entire sentence, being a complete thought, is entirely encompassed by parentheses, which is wrong.

      Sorry, just nitpicking your signature... and dont start with me about indenting paragraphs, I haven't figured that out yet. :P

      ... After further evaulation of the rules for parentheses, I retract my previous statement. Your post is truly gramatically correct, and i (lowercase I) humble myself before thee!

      --
      - You're not paranoid, they really are after you.
    6. Re:The inevitable 'use postfix!' post.... by ajs · · Score: 5, Insightful

      There was a time when sendmail exploits were all the rage, but at the time, sendmail was one of a very, very small number of programs that had reached its level of maturity, breadth of features AND was network accessible, and was the only one in widespread use under Unix-like systems. Because of some high-profile bugs, many companies including Sun and later Red Hat did heavy security audits of the code, revealing and fixing more problems.

      These are all good things, and it seems to me to be a bit two-faced to say that the power of open source is that there are many eyes on the source, and then to punish the software with the most eyes on it. Sendmail has been the heart of mail on the Internet for decades, and deservedly will continue to do so for the forseeable future.

      These bugs demonstrate the old saying: where there is code, there are bugs. I'll stick with software that has already had the vast majority of its security problems shaken out.

    7. Re:The inevitable 'use postfix!' post.... by phildog · · Score: 1

      >Postfix can take a beating..

      You said it. I run it on dodgeit.com and it hums along quite nicely.

      Postfix is awesome "out of the box" and is incredibly flexible when you get fancier and want to inject custom code into the SMTP handshakes, etc.

      Just please remember to set "mynetworks_style = host" unless you trust every machine on the same LAN with your mailserver. I've been bitten by that one in a co-lo environment.

      --
      slashsearch.org - slashdot search. powered by google.
    8. Re:The inevitable 'use postfix!' post.... by maw · · Score: 1
      I don't understand why redhat and it's derivatives come with sendmail as the default MTA.

      A reliable source told me it's because customers would complain if they made postfix the default. He didn't go to lengths to defend it, but:

      They do ship postfix packages, so at least it's trivial to replace sendmail.

      SuSE ships with postfix by default.

      --
      You're a suburbanite.
    9. Re:The inevitable 'use postfix!' post.... by Malor · · Score: 1

      You fulfilled my .sig's prophecy, by the way. You were correcting my grammar, and you have a misspelling... "grammatically" has two Ms. :)

      Error grammar must I make, fulfill prophecy to. :)

    10. Re:The inevitable 'use postfix!' post.... by Bob+Uhl · · Score: 2, Insightful
      Postfix was written by the noted security expert Wietse Venema specifically so that bugs would not lead to security issues--e.g. instead of being one monolithic app which runs as root, it's broken down into several pieces, most of which run as non-privileged users.

      Unlike sendmail, it was designed to be secure. I'll take the one for which security was not an afterthought, thankyouverymuch.

    11. Re:The inevitable 'use postfix!' post.... by mabu · · Score: 1

      I tried to move from Sendmail to Qmail a few years back and the author laughed in my face when I suggested he make the system work with a centrally located /var/mail. I'd always admired the speed of the system, but if you're running server that doesn't have a bunch of users with shell access, the central mail directory works fine, but Qmail is a bit too troublesome to hack to get running right.

      I haven't tried Postfix. How easy is it to drop Postfix into an existing Sendmail installation? Is there any info on that transition? Is there anything that Sendmail does much better than Postfix?

    12. Re:The inevitable 'use postfix!' post.... by Malor · · Score: 3, Informative

      It's not a drop-in replacement, in the sense that it doesn't use the same config files. (You can read postfix files :) ) Unless you have an _extremely_ complex environment, though, it usually won't take very long to write the postfix equivalents to do what you need.

      The two main configuration files are master.cf and main.cf. Master is the configuration for how the daemons work and talk with one another, and it's used to add in other programs for weird delivery arrangements. For 'normal' mailservers, you probably won't have to mess with that too much. Main.cf, on the other hand, is where you'll do almost all the configuration work... virtually everything goes there.

      Stuff that requires lookups, like virtual addresses (the 'virtual' file) or transports (the 'transport' file), is set up in child files, flat text. The 'postmap' program compiles the text files into .db format, which lets Postfix do fast queries on them.

      You should probably expect to spend a day or two setting up a server the very first time you use it. Nothing is that hard, but it can be a little frustrating figuring out where to look for a given feature. Everything is easy, there's just a lot of it.

      Once you have it running, the configuration becomes practically self-documenting, so it's *really* easy to make changes. Sendmail is write-only... you can get it working, come back a week later, and have _no_ idea what you're looking at. Postfix isn't like that... if it works, it will generally be pretty obvious how and why it works. (and it will usually be pretty clear about why things AREN'T working, too.)

      If it has a weak point, it's probably that the documentation is rather scattered... expect to do a lot of googling while setting up.

      It's really worth the effort. It's one of the best pieces of free software out there. And it's one-time only effort, unlike sendmail. :)

    13. Re:The inevitable 'use postfix!' post.... by kindbud · · Score: 1

      Unlike sendmail, it was designed to be secure. I'll take the one for which security was not an afterthought, thankyouverymuch.

      So you're getting rid of Unix too? It was designed the same way as sendmail.

      --
      Edith Keeler Must Die
    14. Re:The inevitable 'use postfix!' post.... by mabu · · Score: 1

      Thanks for the info. I'm going to look into it.

      My setup is probably somewhat standard. I'm curious how it fits into a Postfix setup.

      With sendmail you have several different config file/systems:

      1. RBLs
      2. local-host-names
      3. aliases
      4. virtusertable (why 3-4 aren't consolidated is a good example of where sendmail is problemmatic)
      5. access table

      How does Postfix handle these items?

      There are many things about Sendmail that bother me. Most notably is the lack of respect for domain-specific user accounts. I.e. if you have a user account of "office", without explicit redirects for other hosts on the mailserver, office@ any domain on your server will go to that account. Does Postfix handle that scenario differently? Does it require each account name to be implicit?

      Also, how would you use the access table feature in Postfix? If you want to hard-code hosts you will/will-not accept mail from?

    15. Re:The inevitable 'use postfix!' post.... by Malor · · Score: 2, Informative

      Sendmail is awkward in this area, because the new features/tables have been added over time. Postfix abstracts deciding whether to accept mail a little bit. You use smtpd_recipient_restrictions in your main.cf, which lists a series of tests to be done on each mail. RBLs are listed individually, one per line. An example would be reject_rbl_client relays.ordb.org. You can list as many as you like; I have six.

      Most of the other tests use external .db files for speed. These are flat text lists of two arguments each; source and either destination or action, and are compiled into a binary lookup file with the postmap command. (you have to run postmap on a file every time you change it.) How the two arguments are parsed depends on the context in which you call it. They all have the same basic format... argument1 argument2.

      Some of the possible tests are:

      A check_helo_access clause points at a file with one or more SMTP HELO tests. On my server, for instance, anyone that says they're in my domain, or that they're any of my IP addresses, or that they're 127.0.0.1, get immediately bounced. This file is formatted as source and REJECT or OK.
      check_recipient_access lets you specify a list where particular recipients will be accepted or rejected; most sites accept postmaster mail unconditionally, as an example. Again source and REJECT or OK.
      check_client_access points at a list of IP addresses, with REJECT or OK.
      (there are several more possibilities as well, I won't talk about all of them.)

      Postfix goes through all the tests listed in its smtpd_recipient_restrictions clause, looking for an OK or a REJECT. If it gets either, it stops further testing, and immediately processes the mail. If it gets no response from any of its tests, it accepts the mail. You could put an explicit deny rule last, if you wanted to reverse that behavior.

      I haven't used sendmail in a very long time, so I'm not sure what local-host-names does. If that's 'who can relay through me', that's usually done by setting the my_networks argument, and then using a permit_mynetworks clause in smtpd_recipient_restrictions. That's not normally done through a file lookup, although you could if you wanted.

      Aliases and virtual domains are done through /etc/aliases (same format as sendmail, for compatibility), and the virtual file. The virtual file can list as many domains as you like. Each line, like all other database lookup files, is a source/target pairing, interpreted a bit differently than the files above.

      If the source is just a naked word, it's assumed to be a user, and you can redirect mail from one user account to another this way. If the source is user@domain, then only exact address matches will be redirected to the target. And if the source is @domain, it redirects everything from that domain to a specific place.

      Some examples:

      root useraccount -- redirects from root to that user
      test@example.com useraccount -- sends only mail to test@example.com to useraccount. Other addresses are rejected.
      @example.com useraccount -- send all mail for example.com that isn't matched by someone else to useraccount. Can be used as a catchall.

      Postfix has two concepts for domains.. the main one it serves, and all the rest, which are virtual. If you have a user 'joe', and someone sends mail to 'joe@example.com', joe will only get the mail if that's your primary domain. If it's virtual, joe@example.com will bounce, unless you explicitly set up a redirect. /etc/aliases is used only for the primary domain. I believe if you point 'joe@example.com', through the virtual file, at the 'jane' account, and /etc/aliases redirects 'jane' to 'bob', bob will get the mail. (test this to be sure... and this is a bad way to do it anyway, you really only want to alias once.)

      I suspect the access table is just handled through the tests I

    16. Re:The inevitable 'use postfix!' post.... by mabu · · Score: 1

      Thanks very much for the info. I really appreciate it!

    17. Re:The inevitable 'use postfix!' post.... by Bob+Uhl · · Score: 1
      So you're getting rid of Unix too? It was designed the same way as sendmail.

      As soon as there's a usable alternative to Unix which is better, yes. Plan 9 was better, but isn't very useful. Windows is useful (in that there's a good community around it), but not better.

      But there are usable alternatives to Sendmail which are more secure--so why not use them?

  15. Re:What? Another one? by Rekolitus · · Score: 1

    Actually, QMail is the one designed with security in mind. As far as I'm aware it's never had any vulnerabilities. See security guarantee.

  16. Re:Wait by roosterx · · Score: 1

    people use sendmail on windows?

  17. Insufficient data. by jd · · Score: 4, Insightful
    Sendmail is a big program. It also has several components. This tells me that things like selinux and other mandatory access control systems MAY prevent the attack from taking over the PC. What impact there is on such systems depends on what component the failure is in and what rights that component must have.


    There are also multiple ways of configuring sendmail when compiling it, which tells me that whilst an upgrade may be important, it may be much more important for some users than others.


    Also, saying it doesn't affect Windows is unclear. Does it not affect Windows when you use some official .exe? When you compile it yourself? When compiled/run via Cygwin? If you run under Wine, do you see the bug or not? Are all versions of Windows safe, or would the bug be exposed under certain versions?


    The report, as described, is about as useful as saying "we think we know a way by which under certain circumstances that we know, another may think they know a way by which you might have an increased chance of being struck by an asteroid". If you don't know what the way is, or what those circumstances might be, the information has little value. Sure, it has some in that they provide a bugfixed release, but we don't know how long the bug has existed and therefore have absolutely bugger all way of quantifying what the risk is that a server has already been compromised. It only prevents uncompromised servers from being attacked by this method in future.


    Just because the press release is dated XYZ does not mean that every Black Hat under the sun hasn't got a CD-ROM filled with exploits for it and a list of backdoors on cracked sites from three years back. XYZ is merely the date the rest of us know about it. You don't maintain a secure system by assuming all crackers only know the exploits you've fixed. You maintain a secure system by assuming at least one cracker has the means to discover the exploits you've neither heard of nor have patches for - ie: by assuming you're running buggy software and taking the necessary steps to limit what those bugs can do.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Insufficient data. by myowntrueself · · Score: 1

      "Sendmail is a big program."

      When my eyes grazed over your text I initially read that as "Sendmail is a big problem"

      Do you know why the "sendmail book" has a bat on the cover? ;)

      --
      In the free world the media isn't government run; the government is media run.
    2. Re:Insufficient data. by jrl · · Score: 1

      > Also, saying it doesn't affect Windows is unclear. Does it not affect Windows when you use some official .exe? When you compile it yourself? When compiled/run via Cygwin? If you run under Wine, do you see the bug or not? Are all versions of Windows safe, or would the bug be exposed under certain versions?

      The function that is being exploited is doing syslog functions (sm_syslog). Not sure what the differences are with the windows version (haven't looked at it yet).

      We have independently researched and verified that this bug is legit. More details to follow later tonight/tomorrow on the usuall lists (daily dave, full-disclosure, etc).

      > Sure, it has some in that they provide a bugfixed release, but we don't know how long the bug has existed and therefore have absolutely bugger all way of quantifying what the risk is that a server has already been compromised. It only prevents uncompromised servers from being attacked by this method in future.

      They saw this bug coming. We've known about this class of attack on sendmail since before 2001 (see http://seclists.org/lists/bugtraq/2001/May/0271.ht ml as an example). Unfortunately, we're not convinced that the workaround/patch in 8.13.6 is good enough. It only closes this one particular attack vector.

      > Just because the press release is dated XYZ does not mean that every Black Hat under the sun hasn't got a CD-ROM filled with exploits for it and a list of backdoors on cracked sites from three years back. XYZ is merely the date the rest of us know about it.

      The main reason I support full and immediate disclosure is A) It provides the information to organizations that they need to test if they are affected by the reported bug. But more importantly B) it forces one to realize that we need better security controls. Technologies like SE Linux, Trusted Solaris, etc are definitely steps in the right direction. The "find a bug" and "patch a bug" game is fruitless without part B kicking into effect.

      > You don't maintain a secure system by assuming all crackers only know the exploits you've fixed. You maintain a secure system by assuming at least one cracker has the means to discover the exploits you've neither heard of nor have patches for - ie: by assuming you're running buggy software and taking the necessary steps to limit what those bugs can do.

      Agreed. A properly configured SE Linux installation would not have been exploitable for this particular bug.

      Robert E. Lee
      Dyad Security

    3. Re:Insufficient data. by hey! · · Score: 1

      Sendmail is a big program.

      The thing is, if you step back and squint at it, it doesn't look so big.

      It needs to listen to port 25. It needs to be able to set up sockets for relaying mail out. It needs to be able to query DNS. It needs read/write access to the spool area, and write access to the users mail files/directories. It needs to be able to verify user credentials with some service or another. It needs to be able to pipe messages through a spam/virus scanner. It needs to be able to read it's own configuration files.

      The problem is the implementation is complex, and it runs in a complex environment (a general purpose OS running a vareity of services). Because of this, keeping the system secure is like trying to keep mice out of your house. To the mice, the shell of your house looks very pourous, and provides countless means of entry you've never thought of.

      You maintain a secure system by assuming at least one cracker has the means to discover the exploits you've neither heard of nor have patches for - ie: by assuming you're running buggy software and taking the necessary steps to limit what those bugs can do.

      I'm far from an expert in these things, but it seems to me given the forgoing, the best way to achieve this is to contrive some kind of sandbox in which it only has the privileges it needs. This might be a worthwhile policy for any large, obvious service such as email or web, regardless of how much we trust or distrust the underlying codebase.

      Imagine an outward facing sendmail server. It is inside a firewall so that it can't do any outside transactions other than mail. It is connected on the inside to a server that provides DNS, file service (and enforces permissions to the user mail directory and the MTA configuration files), authentication, and spam/virus filtering. It could launch DOS type attacks, or intercept incoming mail, and that's about that. This could be set up on a virtual machine, whose host would continually monitor it's file system for changes; the only thing that should ever change without administrator intervention is the spool directory contents.

      I would be willing to bet that in the next decade virtualization takes off, not because of the convenience of creating "servers" out of thin air, but because of the security advantages of being able to monitor system state and enforce narrow interfaces between services.

      --
      Post may contain irony: discontinue use if experiencing mood swings, nausea or elevated blood pressure.
  18. eh by mnemonic_ · · Score: 1

    A little heavy on the linebreaks son?

  19. Re:hear that? by Anonymous Coward · · Score: 0

    and millions of exim users too :) and tens of milions of postfix users...

  20. Re:hear that? by Anonymous Coward · · Score: 0

    Denying the existence of security holes (qmail's preferred way of "fixing" them) doesn't make them stop existing.

  21. IE and sendmail flaws on the same day? by MadFarmAnimalz · · Score: 5, Funny

    Coincidence? I think not...

    Shared codebase? Hmm?

    --
    Blearf. Blearf, I say.
    1. Re:IE and sendmail flaws on the same day? by Dr.Dubious+DDQ · · Score: 1

      I was WONDERING why sendmail wouldn't display my .png files properly...

  22. CONVERT!! CONVERT!! by AltGrendel · · Score: 1

    Or you could just use the system-switch-mail command and move over to postfix.

    --
    The simple truth is that interstellar distances will not fit into the human imagination

    - Douglas Adams

  23. Security? by Chris+Kamel · · Score: 0, Redundant

    Wait a minute, does this mean that there is software other than Microsoft's that has security issues? I'm flabbergasted.

    --
    The following statement is true
    The preceding statement is false
  24. Re:hear that? by illuminatedwax · · Score: 1

    I didn't say I was gloating (I haven't ever installed an MTA!), but 1 bug that can be easily worked around (instead of requiring a patch) which 99% of the users won't even come across, in 9 years is awfully impressive.

    --
    Did you ever notice that *nix doesn't even cover Linux?
  25. Re:The inevitable 'use postfix!' reactionary rant by Anonymous Coward · · Score: 0

    Yeah I'd say that in 1981 the net was a different place.

    A few clarifications:
    Sendmail is BSD licensed, thats pretty 'free'.

    and

    IIRC this is the first major security advisory since ~1997, give it a rest, one "serious" bug a decade isn't exactly every other week.

  26. Agreed by waldoj · · Score: 3, Interesting

    I ignored posts like this for years, figuring it was like the Linux vs. BSD debates -- just a bunch of zealots. I was wrong.

    Years after I mastered mc files and learned the magic of m4, back around 2002, I succumbed to /. peer pressure and switched to Postfix. It's just like Sendmail, only it doesn't suck. I didn't know Sendmail sucked until I used Postfix. It's easy, it's secure, and my servers haven't once been 0wn3d because of the ubiquitous MTA flaws of Sendmail.

    Some day I'll try Qmail. Baby steps.

    -Waldo Jaquith

    1. Re:Agreed by Vellmont · · Score: 1


      I didn't know Sendmail sucked until I used Postfix.


      You must be a massochist. I remember using sendmail and simply wanting to change my outgoing mail so the from address was me@domain.com instead of me@machine.domain.com. I delved into it like any other project, but decided it wasn't worth it when I found out I had to learn an entire language (m4 or whatever it is), then compile that into another language just to do this one stupid thing. No thanks! A friend recommened postfix, and I've never looked back.

      --
      AccountKiller
    2. Re:Agreed by Anonymous Coward · · Score: 0

      You don't need to try qmail. I've done sendmail, qmail and postfix. There's no earthly reason why you'd use qmail when postfix is available.

    3. Re:Agreed by sedman · · Score: 1

      I never have spent much time with the new fangled m4 stuff, I can get it to do everything I want with the straight sendmail config language. I have been using (and configuring) sendmail since 1990. I have not seen another mail program come close to its capabilities.

    4. Re:Agreed by Anonymous Coward · · Score: 0

      Some day I'll try Qmail. Baby steps.

      baby steps backwards...

    5. Re:Agreed by MichaelSmith · · Score: 1
      Some day I'll try Qmail. Baby steps.

      Back when I ran sendmail I had heaps of problems with it. I bought a book called (I think) sendmail for linux and the conclusion of the book was to run something else. I went to qmail. Since then I have got more into free software (the GNU type) and I can see why the qmail license is a really bad thing. I run netqmail which is packaged as a set of patches with the qmail tarball because Dan Bernstein won't let people extend the source.

      I won't move away from qmail yet but it will happen. I think the time to try qmail was five years ago. If I was in the same position now I would move to postfix.

    6. Re:Agreed by dodobh · · Score: 2, Informative

      Don't bother. qmail is a kludge after you have used Postfix. Having to patch source to get anything done?

      --
      I can throw myself at the ground, and miss.
    7. Re:Agreed by SCHecklerX · · Score: 1

      I'm not asking to be a dick, I'm truly ignorant on this. But does postfix have miltering type things? Is there a version of mimedefang milter for it? How about milter-greylist? Those are MUST HAVES in any mail environment that I administer.

    8. Re:Agreed by Malor · · Score: 2, Informative

      I haven't worked with it much (and milter not at all), but the Postfix equivalent is the 'policy daemon interface'. It's not identical, but quite similar, from what I've read.

    9. Re:Agreed by Malor · · Score: 1

      Oh, and use postgrey to do greylisting.

    10. Re:Agreed by kindbud · · Score: 1

      Qmail is no longer maintained by any coherent group or person, and hasn't been maintained for going on 8 years now. Would you run Windows 98 on today's Internet? It's been maintained just as well as qmail. Well maybe more since Microsoft has released patches for Win98 since 1998. DJB has not. The only patches released for qmail since 1998 are user patches, which DJB explictly disclaims because he has no time or inclination to verify that they are secure. And no one else has done that with qmail user patches, either.

      --
      Edith Keeler Must Die
  27. Re:hear that? by Anonymous Coward · · Score: 0

    Damn this got modded down right fast. And right above a "CHECK OUT OTHER MTAS DUMMY" comment that got modded up to 3...

  28. Courier by temojen · · Score: 1

    Courier is a Great idea. One mail application. Not an MTA and seperate MDAs. Just one. Unfortunately, trying to figure out how to set up just SMTP+POP3 for a single machine with multiple aliases and a few virtual users seems to require knowing how to configure everything

    (If I'm wrong, and there actually is a guide telling how to do this, someone please post a note, I'd like to finally migrate to the new server we got 1.5y ago.)

    1. Re:Courier by HermanAB · · Score: 1

      The guides are at www.postfix.org and at www.dovecot.org.

      --
      Oh well, what the hell...
    2. Re:Courier by incabulos · · Score: 1

      Thats the main reason I like and use Courier. Its so easy, yet is without the limitations of other simple-to-configure mail software, like inability to support maildir, failure to perform well under high load, etc.

      Sendmail on the other hand is a pretty notious MTA in lots of ways. Besides having a config file that only the clinically insane can comprehend, its also a resource hog and has a fairly poor security record by *nix MTA standards. The new SendmailX which is a complete rewrite of the venerable sendmail codebase is a step in the right direction, but will take a while before its sufficiently feature-complete and trusted for general purpose use.

      In the meanwhile there are other alteratives that are as good, or arguably better. Its definately one area in which there is a surfeit of alternatives, which is great!

    3. Re:Courier by gbjbaanb · · Score: 1

      The new SendmailX which is a complete rewrite of the venerable sendmail codebase is a step in the right direction

      no its not. Its already been done - it is called Postfix. That was the original design spec of Postfix, to create a sendmail replacement that looked like Sendmail, yet didn't break. They have extended it over the years to included additional (read optional) configuration options for stuff that sendmail doesn't do well but otherwise it is simply a better-sendmail. Use it.

      Others have mentioned Dovecot as a good replacement POP/IMAP+SMTP server. They're correct that it is very good and designed to be secure (the author has a cash reward for you if you find a flaw!). I thoroughly recommend it.

    4. Re:Courier by Anonymous Coward · · Score: 0
      Sendmail [...] config file that only the clinically insane can comprehend,
      You aren't supposed to be editing the sendmail.cf file any more; for the last decade you've been supposed to use the simple sendmail.mc file and run it through the standard unix preprocessor m4 to create sendmail.cf. Not at all difficult, really, but if you prefer you can use Sendmail Switch or one of the other dumbed-down interfaces.
      its also a resource hog
      Then how come I could use it to run over 400 people's email on a 386 with no problems? That's simply not true. Especially when you compare it to the resources costs of all the other stuff you need to do for email - have you looked at the footprint of SpamAssassin, or virus scanning? Sendmail is not notably small, but it's not a pig either.
      and has a fairly poor security record by *nix MTA standards.
      That's not true either - by any reasonable definition of "security record". Eric Allman and the magical sendmail fairies co-operate with security researchers and OS vendors in a way that should be an example to the industry - they provide fixes sometimes for flaws that aren't even part of sendmail - for example if sendmail exposes a bug in a linux or BSD kernel, they will issue a patch. If you were to compute a ratio of messages sent to security flaws, sendmail would probably outperform everything else, simply because it's the original industrial-strength emailer. But to me, the important thing is not how many bugs there are (I could make the argument that more bugs found simply means more people looking for them) but rather how fast the patches get released and how effective the patches are. Sendmail rulez OK by those metrics.
      The new SendmailX which is a complete rewrite of the venerable sendmail codebase is a step in the right direction, but will take a while before its sufficiently feature-complete and trusted for general purpose use.
      Dunno. If you want a feature-complete rewrite of sendmail that is more secure by design, I'd recommend Wietse Venema's postfix mailer. It's pretty sweet.

      I submitted this story, with more links, 24 hours ago. Wonder why CmdrTaco's boyz sat on it so long?
  29. What the.... by Anonymous Coward · · Score: 0

    Wow, I thought only Microsoft wrote imperfect code! It's going to take me a while to get over this....
    Hopefully this means there will be a reduction in pointless Microsoft bashing on /.

  30. Sendmail - now in its third decade of exploits by Animats · · Score: 0, Troll
    Google: Results 1 - 10 of about 613,000 for sendmail exploit.

    I mean, really. People have been struggling with Sendmail exploits since the 1980s. Dump the turkey. And pull it from every Linux distro. It's time to kill this thing off.

    1. Re:Sendmail - now in its third decade of exploits by Radak · · Score: 5, Insightful

      Results 1 - 10 of about 18,000,000 for linux exploit.

      We've been struggling with Linux exploits since its birth, too. Shall we "drop the turkey" every time a new Linux exploit pops up, too, or should we acknowledge that it's a complicated piece of software whose security generally improves as it matures? I thought so.

      Oh, and just for good measure...

      Results 1 - 10 of about 203,000 for qmail exploit.
      Results 1 - 10 of about 283,000 for postfix exploit.

      I note that those queries generate about 1/3 and about 1/2 as many results, respectively, for products that have existed for about 1/10 as long as sendmail. By your ridiculously flawed "Google logic", qmail and postfix are far more dangerous "turkeys" than sendmail.

    2. Re:Sendmail - now in its third decade of exploits by tqbf · · Score: 2, Informative

      There has never been a remotely or locally exploitable vulnerability in qmail, regardless of what your Google query tells you.

    3. Re:Sendmail - now in its third decade of exploits by raoul666 · · Score: 2, Insightful

      We've been struggling with Linux exploits since its birth, too. Shall we "drop the turkey" every time a new Linux exploit pops up, too, or should we acknowledge that it's a complicated piece of software whose security generally improves as it matures? I thought so.

      We've been struggling with Windows exploits since its birth, too, and most of the /. community does advocate dropping it. Is it not equally complex?

      And now watch my karma vanish in an instant.

      --
      When cryptography is outlawed, bayl bhgynjf jvyy unir cevinpl
    4. Re:Sendmail - now in its third decade of exploits by Radak · · Score: 2, Informative

      There has never been a remotely or locally exploitable vulnerability in qmail, regardless of what your Google query tells you.

      ...which was exactly my point. Googling for a product name followed by "exploit" does not yield results which accurately measure a products actual exploitability, as the original poster suggests.

    5. Re:Sendmail - now in its third decade of exploits by archen · · Score: 1

      The main difference is 'what is windows' and 'what is linux'? Windows comes in a standardized set of packages, home,pro,server,advanced server etc. They mostly include the same things, and even advanced server can be affected by windows media player security holes. In this case you get what Microsoft gives you, and it's fixed when MS fixes it for you.

      Linux on the other hand is what you make of it. Every distro is quite different. Even two people using Gentoo can end up with completely different installations varying from a 'tight ship' to 'security nightmare'. It's the general assumption that if you know what you are doing you CAN secure linux quite well, but with MS you can sort of take many steps, but you still rely on MS to really fix many security problems.

      And yes I do advocate dropping things when an exploit pops up. Sendmail and BIND have a proven history of being buggy and having swiss cheese secuirty, for which most people can use better alternatives. You also have to weight the difference between what often ends up a "denial of service attack" and "attacker obtains control of your machine". If you read MS security bulletins you find enough of the latter to make you paranoid when running windows.

  31. Red Hat Enterprise Errata by Anonymous Coward · · Score: 0
  32. Sendmail by Anonymous Coward · · Score: 0

    I worked on a research project for my proffesor that had to do with sendmail so I am pretty familiar with the data structures and how sendmail works. I don't understand how sendmail's timeout (control.c implementation) works.

    If the problem is in sm_syslog() (in the conf.c file) and it has to do with a static variable I would link it to static char *buf = NULL;
    Later in the function buf gets set to char buf0[MAXLINE];

    I don't know why but that's the first thing tha popped into my head. The damn sendmail code it too much and hard to follow. Plus I don't have much experience with "write(ing) data to invalid parts of the stack (or heap in some scenarios)".

  33. Re:Who the hell still uses sendmail? by Radak · · Score: 4, Informative

    Using sendmail is anomalous to asking for trouble.

    This sentence alone shows what an idiot you are. Go look up anomalous and then come back.

    Back? Okay, good. Let's move on.

    We still use sendmail because it meets our needs and because to those of us who actually know how to use it, it is less of a pain in the ass than your "better" alternatives. Sendmail had a whole slew of security problems many years ago before alternatives were even available, but in recent years, it has really not notably more security issues than any of the other options.

    Face the facts here. Qmail and Postfix certainly have their uses, and are both excellent MTAs, but neither is "way better" than Sendmail for all installations. We each have our own requirements, and Sendmail meets those requirements for a lot of my installations.

  34. new math? by snarlydwarf · · Score: 1

    postfix and qmail have been around for 1/10th the time of sendmail?

    I guess if '10' is binary you're close.

    If you mean ten decimal... you're way off.

    1. Re:new math? by Radak · · Score: 1

      Okay, you're right. Qmail and Postfix have been around longer than I thought. Let's throw in some real numbers then.

      Sendmail is a derivative of Delivermail, which was originally released in 1979, so we'll say Sendmail is 27 years old.

      Qmail was in beta in 1996, so we'll say it's twelve years old, or around 0.44 as old as Sendmail, so the original poster's Google logic suggests it's therefore around 0.75 times as dangerous as Sendmail.

      Postfix was released in 1998, which makes it eight years old, or somewhere around 0.3 as old as Sendmail, so the original poster's Google logic suggests it's therefore around 1.7 times as dangerous as Sendmail.

      So by this logic, Qmail *does* win, but come on. The original point of my post, that ascertaining the security of a product on the number of Google matches you get for its name followed by "exploit" is ridiculous.

    2. Re:new math? by Radak · · Score: 1

      Qmail was in beta in 1996, so we'll say it's twelve years old...

      Did I just say this? Let's try that again with 10 years old. Maybe you CAN accuse me of "new math" now. If we plug in the right age for Qmail, it actually comes out to 0.9 times as dangerous, using Google logic, and still wins, but just by a nose.

  35. Re:Who the hell still uses sendmail? by Anonymous Coward · · Score: 1, Insightful

    Oh only almost every major corporation in the whole world.

    Go back to your mom's basement.

  36. Re:Who the hell still uses sendmail? by iggymanz · · Score: 1

    look at the source code of sendmail: big tangled ball(s) of twine. Then look at the source code of some competing systems, strange, they're actually well-designed and modular! then look at the memory consumption of a sendmail process, vs. what qmail or postfix takes (20% of a sendmail process). I used to use sendmail in the 90's, but I'm glad I've long ago given up that bloated, hard to configure crap.

  37. More information will be available soon... by jrl · · Score: 1

    We've been playing with this bug for a few hours now. We can independently confirm it is exploitable. We will be releasing details about it to the Daily Dave list later tonight.

    This is a funny one to exploit though. It'll take up to two hours to pull off on a stock install. Who ever releases the PoC exploit should include a game of Tetris in the exploit for the poor pen-tester to play while waiting =)

    Cheers,

    Robert E. Lee
    Dyad Security

  38. Red Hat 9 is a pain by Peartree · · Score: 1

    I hope you're not running red hat 9. I'm still running it on one system just because it's a production server for about 600 users. Had to recompile gcc from 3.2.2 to 3.2.3 (not a quick process on a dual xeon 700) to get to sendmail 8.13.6 (from fedora 4 mind you) to build at all. -fpie was the culprit. was running sendmail 8.13.1 purely for greetpause.

  39. Re:What? Another one? by stor · · Score: 1

    I used to be a Qmail fan. I had a couple of Qmail+Patches mailservers that stayed up and fairly secure for years. For the past few years though, it's Postfix all the way for me.

    You need to apply about 50 patches to get a decent Qmail MTA, at which time all the security guarantees vanish. This is a problem because Dan seems unwilling to apply the patches that make Qmail a usable MTA. Big concurrency patch anyone?

    wtf is it with Dan Bernstien's World?

    He couldn't use standard SysV init scripts to start Qmail, no... we need the "supervise" and /services cruft! Xinetd? Nahh fuck it, I'll write "ucspi-tcp" instead and force that down everyone's throat. Configuration files in /etc? Nahh, we'll create some wierd-ass Bernstien World hierarchy for that too.

    Dr B's software is mostly useful in theory, not in practise.

    Just use Postfix or Exim: you'll save yourself a lot of pain. It doesn't treat your Unix box like it's just a mere application launcher.

    Cheers
    Stor

    --
    "Yeah well there's a lot of stuff that should be, but isn't"
  40. Google logic by Anonymous Coward · · Score: 1, Funny

    Results 1 - 10 of about 119,000 for yo mama exploit. (0.23 seconds)

    Does that mean she's twice as secure as the leading mail transport agents?

  41. Flaimbait by LordOfTheNoobs · · Score: 0, Flamebait

    It is obvious the author left out the word 'knows'. If you couldn't tell this, you are a bit slow in the head. If you could, you are an asinine prick. Your choice.

    --
    They're there affecting their effect.
  42. Indeed it has by Anonymous Coward · · Score: 0
  43. How can it POSSIBLY be... by rice_burners_suck · · Score: 1

    ... that there's a bug in Sendmail?! Who would have thunk of such a thing?!?! Ok, ok, sarcasm aside, as much as people say that Sendmail is a configuration nightmare and a clunky and huge application, it is a very powerful tool and is quite mature, as things go. If only there were a configuration tool that allowed its full power (or close to it) to be used without causing too many headaches, Sendmail would kick every other MTA's butt.

    1. Re:How can it POSSIBLY be... by pe1chl · · Score: 1

      You must be new on the block. There have been times that sendmail was the most insecure application on the Unix system!
      It had to run suid root and accepted data from many sources. It also had lots of extensibility that resulted in calls to external programs.

      At some point, critical bugs were found as frequently as in MSIE today. The phrase "sendmail bug of the month club" was often heard.
      Just as with MSIE, after fixing a lot of problems and making some architectural changes, things seem to be more safe right now. But the occasional problem still appears.

  44. Re:The FreeBSD mailing list is a little less alarm by Anonymous Coward · · Score: 0
    The End of FreeBSD

    [ed. note: in the following text, former FreeBSD developer Mike Smith gives his reasons for abandoning FreeBSD]

    When I stood for election to the FreeBSD core team nearly two years ago, many of you will recall that it was after a long series of debates during which I maintained that too much organisation, too many rules and too much formality would be a bad thing for the project.

    Today, as I read the latest discussions on the future of the FreeBSD project, I see the same problem; a few new faces and many of the old going over the same tired arguments and suggesting variations on the same worthless schemes. Frankly I'm sick of it.

    FreeBSD used to be fun. It used to be about doing things the right way. It used to be something that you could sink your teeth into when the mundane chores of programming for a living got you down. It was something cool and exciting; a way to spend your spare time on an endeavour you loved that was at the same time wholesome and worthwhile.

    It's not anymore. It's about bylaws and committees and reports and milestones, telling others what to do and doing what you're told. It's about who can rant the longest or shout the loudest or mislead the most people into a bloc in order to legitimise doing what they think is best. Individuals notwithstanding, the project as a whole has lost track of where it's going, and has instead become obsessed with process and mechanics.

    So I'm leaving core. I don't want to feel like I should be "doing something" about a project that has lost interest in having something done for it. I don't have the energy to fight what has clearly become a losing battle; I have a life to live and a job to keep, and I won't achieve any of the goals I personally consider worthwhile if I remain obligated to care for the project.

    Discussion

    I'm sure that I've offended some people already; I'm sure that by the time I'm done here, I'll have offended more. If you feel a need to play to the crowd in your replies rather than make a sincere effort to address the problems I'm discussing here, please do us the courtesy of playing your politics openly.

    From a technical perspective, the project faces a set of challenges that significantly outstrips our ability to deliver. Some of the resources that we need to address these challenges are tied up in the fruitless metadiscussions that have raged since we made the mistake of electing officers. Others have left in disgust, or been driven out by the culture of abuse and distraction that has grown up since then. More may well remain available to recruitment, but while the project is busy infighting our chances for successful outreach are sorely diminished.

    There's no simple solution to this. For the project to move forward, one or the other of the warring philosophies must win out; either the project returns to its laid-back roots and gets on with the work, or it transforms into a super-organised engineering project and executes a brilliant plan to deliver what, ultimately, we all know we want.

    Whatever path is chosen, whatever balance is struck, the choosing and the striking are the important parts. The current indecision and endless conflict are incompatible with any sort of progress.

    Trying to dissect the above is far beyond the scope of any parting shot, no matter how distended. All I can really ask of you all is to let go of the minutiae for a moment and take a look at the big picture. What is the ultimate goal here? How can we get there with as little overhead as possible? How would you like to be treated by your fellow travellers?

    Shouts

    To the Slashdot "BSD is dying" crowd - big deal. Death is part of the cycle; take a look at your soft, pallid bodies and consider that right this very moment, parts of you are dying. See? It's not so bad.

    To the bulk of the FreeBSD committerbase and the developer community at large - keep your eyes on the real goals. I

  45. First in two years by Kelson · · Score: 4, Insightful

    Oddly, this is the first security fix I can remember for Sendmail in about two years. Just to check my memory, I looked at Secunia's report and they only list 5 vulnerabilities since January 2003.

    2 in March 2003
    1 in August 2003
    1 in September 2003
    1 in March 2006

    2.5 years between vulnerabilities? Not too shabby, IMHO.

    There is, however, one unpatched vulnerability, though the worst it can do is hide details from the log.

    1. Re:First in two years by moro_666 · · Score: 1

      1 bug that let's take over the sendmail process and do pretty much anything that the hacker/cracker wants, is more than enough for 2.5 years.

      only 1 remote hacker in your machine is enough to destroy your 2.5-years work without blinking and you think this is good ? i certainly don't.

      --

      I'd tell you the chances of this story being a dupe, but you wouldn't like it.
    2. Re:First in two years by beheaderaswp · · Score: 1

      Heh,

      I have 20 Linux servers pointed towards the internet. Six of them carry mail via sendmail. One rootable vulnerability in 2.5 years is FREAKING HEAVEN.

      And I've not looked into this, but is this vulnerability even out in the open?

      --
      Another consultant who stuck it out.

      "We are the Priests, of the Temples of Syrinx..."
    3. Re:First in two years by mrsbrisby · · Score: 1

      I have 20 Linux servers pointed towards the internet. Six of them carry mail via sendmail. One rootable vulnerability in 2.5 years is FREAKING HEAVEN.

      Switch to qmail.

      Zero vulnerabilities- and zero root-vulnerability potential in 9 years should give you an orgasm.

    4. Re:First in two years by PitaBred · · Score: 1

      Zero increase in functionality, zero help from the developer, all patches user-contributed and must be manually compiled... sure gives me an orgasm alright. Except not at all.

    5. Re:First in two years by mrsbrisby · · Score: 1

      So you'd rather have a root whole every 2.5 years?

      I mean, once qmail is installed- I don't have to mess with it. Zero upgrades is a good thing in this situation.

    6. Re:First in two years by PitaBred · · Score: 1

      And you don't have any kind of spam filtering, address blocking, a draconian source distribution mechanism, the need to have a completely different way to start up just that one service because that's the way DJB thinks it should be... no thanks. Give me something that works WITH the system, not against it. I'd waste more time filtering my junk mail and such for my users and trying to make sure the system upgraded cleanly elsewhere without breaking qmail's config than I ever would having to monitor for a root exploit and rebuild a box from that. And that's even assuming that someone did root it before it was patched, and being as there's not really even any proof-of-concept code out, yet there's already a patch, it's very unlikely that it'd happen.
      Zero upgrades is NOT a good thing. It means you aren't able to keep up with the changing landscape of email.

    7. Re:First in two years by mrsbrisby · · Score: 1

      Right. Just so we're clear, you think root exploits are better to have than spam.

      Here's the problem: You also think other people make that decision too.

      I don't have a problem with address blocking (tcprules, badmailfrom, rbls, and .qmail file egreps), my spam levels (spamassassin, dcc, and a few other things), and I don't upgrade so your other shit is moot anyway.

      I also understand what djb's reasoning for daemontools is, and I understand exactly how it's better than /etc/init.d or /etc/rc- so I don't have any ignorance getting in my way.

      I think the benefits over /etc/inittab aren't as great- but almost nobody uses /etc/inittab for some paranoid (read: stupid) reason.

      I also have zero "patches" applied to Qmail.

      Zero upgrades is NOT a good thing. It means you aren't able to keep up with the changing landscape of email.

      No it doesn't. Qmail allows users to "keep up" by being modular. I replace and augments the pieces that I'm interested in changing. Sendmail makes that impossible by not being modular, and it has rootable exploits - as you say, recently about "every 2.5 years".

      Really, init.d sucks, I don't even bother using it anymore. Daemontools is great, /etc/inittab when not available.

  46. Re:fp by Anonymous Coward · · Score: 0

    Regarding your sig -

    shouldn't that be 'watashi wa nihongo ga wakaranai'?

    IIRC, you 'nihongo o hanasu' or 'nihongo de hanasu',
    but you 'nihongo ga wakaru'

  47. What about the servers? by edunbar93 · · Score: 1

    The flaw could allow remote attackers to take control of users' PCs.

    Um, unless they mean take control of end user's PCs, what about the sendmail servers that are sending and receiving the email?

    I have to wonder how far Slashdot is going with the whole "linux is da bomb for the desktop!" ccrowd.

    --
    "No problem. I have the capacity to do infinite work so long as you don't mind that my quality approaches zero."-Dilbert
    1. Re:What about the servers? by dohcvtec · · Score: 1

      Hey, this is the Slashdot way; I bet about 1,000 people submitted this story, many with nice write-ups and links to credible, respectable news sources. But, this being Slashdot, the one that gets posted on the front page contains only a terse summary of the situation and a link to some lame PC rag.

      --
      -- Never hit a man with glasses. Hit him with a baseball bat.
  48. Re:The FreeBSD mailing list is a little less alarm by jrl · · Score: 1

    An attacker needs interactive access to the port sendmail is listening on. I'm not sure what your definition of "multi-user system" is trying to imply. If you were running a desktop distro that had sendmail available to the network, an attacker could exploit it.

    Robert E. Lee
    Dyad Security

  49. All the way, baby. by twitter · · Score: 1
    I have to wonder how far Slashdot is going with the whole "linux is da bomb for the desktop!" ccrowd.

    The average desktop does not run sendmail or anything other than simple mail clients that use their ISP's SMTP sever. Their ISP won't let them. There's a good chance that server will be running sendmail, so users of nicer distributions are thwarted twice by "security measures", but that's all a different issue. Yes, Exim under Debian was easy to set up and worked great for desktop users.

    In any case, Linux desktop users are still far better off than Windoze users. Kmail, Evolution and Thunderbird are all much better packages than Outlook and other Windoze only mail clients. Even when a dozer bothers to look outside their start menu and gets Thunderbird or some other nice mail program Bill Gates wants to break, the dozer has only plugged one of hundreds of holes. Windoze has a half life of 12 minutes on any network, sooner or later the user suffers. When they do, they have to pull out their "original" software and then get hosed before they can finish downloading the patches. A free software user who's suffered some kind of failure will download a brand new CD image or do a net install and have the latest and greatest every time. Free software quality and diversity will prevent the kind of universal exploits of the Windoze world, regardless of "market share".

    --

    Friends don't help friends install M$ junk.

    1. Re:All the way, baby. by Anonymous Coward · · Score: 0
      Windoze world

      ROFL, I guess in your mind code that is 20 years old (and supposed to be one of the shinging examples of open source, no less) and is still spewing critical vulnerabilities is a non-issue, eh?

      What a hoot. "All the way baby", indeed. That's the spirit!

  50. Sendmail has a bat on the cover because... by jd · · Score: 1

    ...it uses SMTP-over-ultrasonics! And the admins are vampires. And it flies best after dark.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
    1. Re:Sendmail has a bat on the cover because... by myowntrueself · · Score: 1

      Thats a good one

      Here are some more...

      The diet of the North American brown bat consists principally of bugs.
      Sendmail is a software package principally composed of bugs.

      or this one...

      Bat guano is a good source of ammonium nitrate, a major ingredient in things that can blow up in your face, like sendmail.

      If I recall correctly, there is a whole list in 'the unix haters handbook' ;)

      --
      In the free world the media isn't government run; the government is media run.
  51. Re:Wait by hdparm · · Score: 1

    People use Windows?

  52. Super gray area by Lost+Found · · Score: 1

    I must admit, it's sad to see that Dan hasn't patched the qmail-smtpd portability problem. I don't think you can call it anything but a bug.

    If it's a vulnerability, it's a *very* unlikely one, for the simple reason that almost no configuration on earth gives a single qmail-smtpd 2GB+ of memory.

    If I were Bernstein, I'd have given the $500 away and renewed the guarantee. I'd have said that the bug was tremendously unlikely to ever work, and impossible for it to work if you followed good practices in your installation. I'd have stated that the $500 was given away simply because it was a gray area.

    But hey, I'm not Dan. What I am is a proud qmail user. It's still beyond a doubt the most secure MTA on the planet.

    A lot of people rave about Postfix, but I'll never forget just how 'secure' that mailer originally was. The reason this qmail stuff is getting much attention at all is precisely because of qmail's great fame for its security. If someone found a 64 bit portability problem in Windows (hell, there are probably a zillion), you'd never hear about it. Just the way the cookie crumbles I guess.

    1. Re:Super gray area by cburley · · Score: 1
      I must admit, it's sad to see that Dan hasn't patched the qmail-smtpd portability problem. I don't think you can call it anything but a bug.

      If it's a vulnerability, it's a *very* unlikely one, for the simple reason that almost no configuration on earth gives a single qmail-smtpd 2GB+ of memory.

      It's not a vulnerability in qmail-smtpd that I can see. It is one, probably only theoretically, in qmail-popup (which does the username/password authentication for POP3 access in qmail).

      But it is a bug, and I agree it (and similar bugs) should be fixed in an official release of qmail (not just a patch, which is what netqmail is).

      Note that I wrote the web page, to which I link above and to which the GP linked, about ten months ago, and it has been widely read and linked to. But nobody has yet seen fit to hire me (or even request of me as a volunteer!) to fix the pertinent bugs, nor have I bothered to do so myself!

      I think that's consistent with your impression of qmail, security-wise: people who really look at the big picture realize that complaining about qmail's "vulnerabilites" is, at best, a waste of breath; nobody wants to also waste money on trying to "solve" non-problems.

      --
      Practice random senselessness and act kind of beautiful.
  53. Re:What? Another one? by Anonymous Coward · · Score: 1, Interesting

    You need to apply about 50 patches to get a decent Qmail MTA, at which time all the security guarantees vanish.

    You need to apply one: netqmail. Or qmail-ldap,which I prefer.

    He couldn't use standard SysV init scripts to start Qmail, no... we need the "supervise" and /services cruft! Xinetd? Nahh fuck it, I'll write "ucspi-tcp" instead and force that down everyone's throat.

    His software came out before xinetd. And even so, that implementation isn't standard across distros. Plus /service is just an easy way to run things ... link a folder under there and have a ./run file in it and you're good.

    ucspi-tcp is good too because it has easy mechanisms for black/whitelisting people.

  54. I wish I could mod your post +1, stupid by croto · · Score: 0

    I was going to ask why you waste your time like that... and I realized that I'm two times dumber by replying. Whatever.

  55. More detailed information on how to exploit bug... by jrl · · Score: 2, Informative

    Jack from Dyad Security just posted this link:
    http://www.rapturesecurity.org/jack/exploiting_sen dmail.html

    Quoted:
    written in a rush, pardon the mess ;]

    not that ive gotten that far but here is my (confirmed by mark, thanks) attack....

    step 1)
            connect to sendmail server say something like
            helo me\r\n
            mail from: myemail@hotmail.com
            rcpt to: root
            data

    step 2)
            wait for server to say go ahead
            send about 32767 characters inside a header
            note what time it is

    step 3)
            wait until you get:
            451 4.4.1 timeout waiting for input during message collect

    step 4)
            note what time it was when that message happened

    step 5)
            youll be dropped back into smtp command mode, now there is a static pointer inside sm_syslog thats your attack vector, youll need to recreate the collect timeout and race into sm_syslog
            resend the helo crap

    step 6)
            wait for server to say go ahead
            send about 32767 characters inside a header
            and wait the time delta from the earlier 2 measurements

    step7)
            send more header data (so that its now greater than 32768 bytes)

    hopefully sendmail will now race and crash inside sm_syslog because:
    a) we just sent sendmail into sm_syslog due to the fact that we sent > the max amount of header data
    b) we have a timeout (SIGALARM, longjmp thingy) that should be pending about the same exact time that
    we entered sm_syslog

    Also posted is a PoC to test if you are vulnerable. This needs a lot more work, and is not an exploit, but is a start:
    http://rapturesecurity.org/jack/sendmail_tester_th ingy.tar.gz

  56. Avaliable here by prandal · · Score: 1

    Sendmail 8.13.6 for RedHat 9, Fedora Core 1 through 5, and RHEL 3 and 4 (and CentOS) is available here:

    http://www.city-fan.org/ftp/contrib/mail/

    Phil

  57. Re:What? Another one? by DrSkwid · · Score: 1

    Not by force or design

    # /etc/rc.local

    if [ -x /var/qmail/rc ]; then
                    csh -cf '/var/qmail/rc &'
    fi

    # /etc/inted.conf

    smtp stream tcp nowait qmaild /var/qmail/bin/tcp-env tcp-env /var/qmail/bin/qmail-smtpd

    --
    There are places where the networks are not touching,and there are places where they are-Boeing's Lori Gunter
  58. WTF does sendmail do? by shish · · Score: 1

    How hard can it be to move mail from A to B? Speaking as someone who's never written a mail server, I didn't think it was complicated enough to have so many security holes... (Serious explanations of what it does to warrant the complexity would be appreciated~)

    --
    I mod down anyone who says "I will be modded down for this", regardless of the rest of their comment
    1. Re:WTF does sendmail do? by WWWWolf · · Score: 1

      Basically Sendmail was written in the age when moving mail from place A to B actually was difficult: Different headers, different cultures, different mail storage methods, different kinds of addresses. With some tweaking you could make it act as a mail gateway to some madman-designed proprietary network where addresses were kilometers long and had numbers in them, or like.

      Of course, nowadays it's a little bit easier so it's kind of easy to write a more secure mail transport agent from ground up, all you need to worry about is SMTP...

    2. Re:WTF does sendmail do? by frostyboy · · Score: 1

      If all you're doing is "moving mail from A to B," it's not too hard. In that case you should me using postfix or qmail or whatever. If you're trying to move 50,000 messages an hour from A to B, use milter filtering, set up multiple inbound and outbound processing queues based on complex rules, and/or doing other hairy things with mail relaying, you see the situation can get quite a bit more complex.

      --
      Who is General Failure? And why is he reading my disk????
    3. Re:WTF does sendmail do? by mrsbrisby · · Score: 2, Interesting

      Basically Sendmail was written in the age when moving mail from place A to B actually was difficult

      No. Sendmail was written when moving mail was easy- they just thought it was going to get harder so they overengineered it.

      The whole message rewriting header/scrambling thing has NEVER been needed to transfer to/from uucp hosts, the 7bit fantasy network, or other messaging networks- it was ALWAYS performed in the gateways to those other networks.

      Source routes should never have existed- There should never have been a reason why the person sending the message might know more about the messaging server than the server itself.

      There's no reason a user should ever send mail to a program- users only ever sent mail to addresses, and by exposing programs as "a special kind of address" - they made it possible to yes, use UUCP without the mail administrators' permission, but they also opened the whole slew of bugs in sendmail that popularized the mid '90s.

      Sendmail _never_ had to be this complicated. They did it this way because of equal parts stupidity and hubris, and pretending it was anything else means it'll happen again (see IPV6 for more details).

      By the way, I've had zero difficulty getting qmail- which itself doesn't understand how to send mail over uucp, Fido or Citnet, to actually transfer mail bidirectionally with all of these networks. Love or hate qmail, if the naive mailbox-to-user approach was good enough for all these networks, it would've worked for sendmail.

  59. Not quite by Anonymous Coward · · Score: 0

    Generally they use their own built-in SMTP server to do it, rather than use the host's server.

    1. Re:Not quite by Nintendork · · Score: 1

      Someone give this guy a cookie. He's right. Modern viruses either attach to a particular email client and use the configured SMTP server (Typically the ISP, Exchange, corporate SMTP server, etc.) or they use their own SMTP service.

  60. IN SOVIET RUSSIA... by Anonymous Coward · · Score: 0

    Sendmail use YOU!

  61. Re:Who the hell still uses sendmail? by Neo-Rio-101 · · Score: 0, Troll

    You're just upset because you spent a great deal of time learning its configuration by heart only to find out there are now better programs. That has nothing to do with the fact that Sendmail actually does suck compared to other MTAs. If that hurts your feelings, tough break... *shrug*

    --
    READY.
    PRINT ""+-0
  62. Come on...? by dud83 · · Score: 1

    Security flaws in sendmail dæmon, when did that become news? :p
    Who uses sendmail anymore hehe... qmail/postfix/exim/etc etc, all sendmail compatible.
    Don't be square slashdot, get with the flow biatch! :D

    1. Re:Come on...? by pixr99 · · Score: 1

      Who uses sendmail anymore hehe... qmail/postfix/exim/etc etc, all sendmail compatible.

      Have you ever actually used "etc" as your MTA? There are *so many* configuration files and scripts. One would think that is all that etc consists of!

  63. It's Unpossible! by jalefkowit · · Score: 1

    A security hole? In Sendmail? Now you're just talking crazy talk.

  64. Strange... by idontgno · · Score: 1
    talking about systems not vulnerable to this vuln...

    According to the Sun security advisory related to this (thanks SANS Internet Storm Center), Solaris 8 isn't vulnerable, although it comes with Sendmail 8.11.x or 8.12.x (depending on your patch frequency)--versions in the vulnerable range.

    I've been a Solaris admin for a long time and I find this to be a rather bizarre inconsistency. Why would Sun claim non-vulnerability when mere cursory examination of installed release shows vulnerability?

    Any /.ers with more insight into Sun's reasoning out here? If so, can you share it?

    --
    Welcome to the Panopticon. Used to be a prison, now it's your home.
  65. ms exchange server by Sigg3.net · · Score: 1

    Actually it's the Microsoft Exchange Server that does alle the security.

    It's got an 80% downtime and keeps lagging out, so if you check back in a few years when the mail gets through we'll maybe have a problem. But then we'll be like all Windows Vista n shit, and sendmail will be all transparent, so you can see where the error is.

    The real question is whether they'll remove sendmail from Duke Nukem Forever because of this?

  66. Be careful if you use Debian! by Anonymous Coward · · Score: 0

    The upgrade script erases your sendmail.cf! Make sure you do a "chattr +i /etc/mail/sendmail.cf" before doing the "apt-get dist-upgrade" to protect yourself. You'll see an error message when Debian tries to destroy your sendmail.cf, but you can safely just ignore it.

  67. MOD PARENT UP by Anonymous Coward · · Score: 0

    +5 Informative

  68. didn't think I'd ever say this to an OS dev by Anonymous Coward · · Score: 1, Funny

    the hardest part of the process was making sure that I'd be awake at 8:00 AM (PST).

    Try man at. :)

  69. Re:Who the hell still uses sendmail? by mrsbrisby · · Score: 1

    Face the facts here. Qmail and Postfix certainly have their uses, and are both excellent MTAs, but neither is "way better" than Sendmail for all installations. We each have our own requirements, and Sendmail meets those requirements for a lot of my installations.

    No, what you mean to say, is neither is a complete replacement for Sendmail. And that's true- Sendmail does things that Qmail and Postfix don't do.

    Unfortunately, that's [also] part of the problem. Sendmail is so much more complicated, that it's harder to audit- and being a single giant ball unnavigatable feces, you should never reprimand anyone for trying to get away from it- nay, you should be attempting to get away from it yourself!

    The trick is to see if your messaging infrastructure can be expressed in terms of Qmail and Postfix. If it can (and it usually can) then you'll be much happier because your infrastructure will be much simpler and easier to audit.

    It'll also show you exactly what needs to change- for me, it was stronger controls over delivery scheduling. But because Qmail is modular, I could simply change that part and wasn't tied otherwise to the crap that is Sendmail.

  70. Implementing more relay blacklisting by mabu · · Score: 1

    When you take time to update Sendmail, also consider adding some hard coded relay blacklist entries. This is an access-based RBL that hangs up on known broadband DUL space containing zombies. A nice addition to a well tweaked Sendmail setup.

  71. Re:What? Another one? by mabu · · Score: 1

    I couldn't have expressed it better myself. When all the hooplah about Qmail surfaced many years ago, I jumped on the bandwagon. It was fast, but the software is, in a word, arrogant as hell. It expects to be set up a specific way, which is not a prerequisite for the max efficiency, security or compatibility it purpports to claim.

    I seem to recall reading the manual where it said something like, "If you don't understand how to set this program up, use another MTA."

  72. Sun Solaris 8 sendmail update ... by Anonymous Coward · · Score: 0

    http://www.kb.cert.org/vuls/id/834865
    http://www.kb.cert.org/vuls/id/MIMG-6MPUH2
    Solaris 8 will be patched to update sendmail to version 8.13.6+Sun following the 8.11.7p2+Sun patches.

  73. In Korea... by Anonymous Coward · · Score: 0

    ...only old people use sendmail

  74. Sandboxing by jd · · Score: 1
    This is the idea behind the class of Operating Systems the old DoD "Orange Book" listed as "B-class", but is implemented in other ways on other systems. B-class systems use Mandatory Access Controls (MACs) for all files, applications, ports, system calls, memory, packets, etc. Not all systems protected everything, and but a fair number protected a lot. I believe Trusted Irix required a special MAC-enabled memory controller, for example.


    The advantage of the MAC system was that it created virtual systems per user per program (as the effective MAC had to be the intersection of the two sets of rights, as MAC prohibits someone from inheriting a right they wouldn't otherwise have) but requires very little overhead, as it's all managed in a single instance of the OS. There's no overhead from virtualization.


    MAC has two drawbacks - to be thorough (and fast), you do need specialized hardware. It's also non-trivial to write thoroughly. SELinux, for example, is only a tiny subset of what would be needed even to reach the old B1 standard. As far as I know, there are NO patches or combinations thereof for Linux that meet that criteria, and I'm absolutely certain we're not going to see a B3-compliant Linux any time soon (that's when the standards get really strict).


    Virtualization takes some of the load off MAC, but unless you're prepared to run a few hundred virtual machines, won't be able to sandbox on anything like the scale you'd want to get decent security. It does limit the need for some of the specialized hardware, though, which will make things easier.


    The "ideal" is to get as close to EAL7 (Orange Book A1) standard, where there is mathematical evidence that the software is fully sandboxed, as possible. However, that isn't easy and would take a lot of VERY skilled mathematicians a LONG time to do well.


    To get it perfect, you'd need to generate the complete OS formal specification, then rewrite Linux completely from scratch from that specification. It's doable, but I'm estimating you'd need 100,000+ mathematicians and another 10,000 coders to be able to re-engineer and re-code the kernel fast enough for it to still be relevent. When you add in thigns like GCC, Glibc, X11, KDE/Gnome, and all the other major pieces of software, you might easily be looking at a quarter of a million individuals needed - about 25 billion dollars a year.


    The US Government could afford that, but I seriously doubt it could get hold of that much manpower. Not without crippling every industrialized country in the northern hemisphere in the process.


    As perfection is not practical, then we should look at how close we can get there before it goes beyond the resources that exist. Virtualization will be a major part of that, MAC will be another, source validation (by as many means as possible) will be yet another.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)