Slashdot Mirror


Postfix

honestpuck writes "After many years bashing my head against sendmail in all it's gory details I had amassed a fair amount of knowledge and documentation on handling the Mail Transfer Agent (MTA) in Linux and Mac OS X. This caused a fair amount of teeth gnashing when I discovered it had gone the way of all flesh in OS X Panther to be replaced with Postfix." To un-gnash his teeth, honestpuck used Kyle D. Dent's Postfix: The Definitive Guide (published by O'Reilly); read on for his review of the book. Postfix: The Definitive Guide author Kyle D. Dent pages 260 publisher O'Reilly and Associates rating 8/10 - Excellent book, a little thin on details in a few places reviewer Tony Williams ISBN 0596002122 summary An excellent guide to installing, configuring and running Postfix

Fortunately, my first needs were simple and I came to realise that Postfix was a much easier system to install and maintain. Now that my needs are more complex, I was glad when this book hit my desk at exactly the same time as I started upgrading the corporate servers from Mac OS 9 to OS X Server.

Postfix: The Definitive Guide seems to fit the bill. It is a well-written and well-constructed guide to mail systems in general and Postfix in particular. (Oh, and speaking of definitive, could someone at O'Reilly provide a definitive answer to both reviewers and their own editors as to that colon? This is the second 'Definitive Guide' I've reviewed in as many months, and they are sprinkled with instances of each book's title, sometimes including that colon, sometimes leaving it out.)

The book starts with a good overview of the underlying technology in Chapters 1 and 2. I can't blame Dent for my slight confusion in the section on addresses and headers - having RFC822 superseded by RFC2822 was just a little too much coincidence for this particular "bear of little brain." He then follows it with a chapter discussing Postfix's architecture, important since Postfix uses a much more modular approach than the sendmail monolith, with each part of the mail handling process a different executable and the single queue turned into five.

Once the background is well covered, Dent then gets onto the nitty-gritty of configuring and administering Postfix. He has certainly covered everything I needed, including spam handling, multiple domains, relaying, SASL authentication and using LDAP. Once I'd finished grokking all that, and getting it integrated into my servers, I had a corporate email system up in three sites that replaced and improved upon a couple of thousand dollars worth of proprietary dreck. Happy is an understatement.

Dent's writing is sometimes a little patchy, though never bad. The technical detail does seem overpowering in places, though, and I occasionally found myself reading a section through more than once with a configuration file open in front of me. There are certainly spots where a little more hand holding and care with the writing would have been appreciated. (If you are a little more cognizant of the interstices of mail systems then you may not have the same problem.)

I did, however, appreciate the appendices enormously. The four appendices cover configuration parameters, Postfix commands, installation, and an FAQ. My system came with Postfix compiled and installed just as I required it so I didn't get a chance to thoroughly test out Dent's installation procedure (though it looks good); the other three continue to be useful.

If you want to have a look for yourself, then the usual O'Reilly page is complete with a table of contents and index, but this time no example chapter is provided (how come, O'Reilly?). You can also get an expanded version of the FAQ in Appendix 4 from Dent's website. A better example of Dent's writing style is an excellent article on troubleshooting with Postfix logs at O'Reilly's Onlamp.com.

This is an excellent book, Dent has explained the underlying methodology and use of Postfix well, taken the reader through all aspects of this MTA system and explained both the why and the how. I would recommend this book (and, as a result Postfix) to anyone looking for an MTA and a guide to configuring and running it.

You can purchase Postfix: The Definitive Guide from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

77 of 161 comments (clear)

  1. Postfix Enabler by momerath2003 · · Score: 5, Informative

    Mac OS X users can find a cool, donation-ware (read: non-crippleware) GUI for the buil-in postfix server, Postfix Enabler. It allows some advanced configuration of the postfix server.

    It has some handy instructions for setting up Mac OS X's Mail.app to interface with the Postfix server as well.

    --
    I had but a simple dream, to destroy all humans.
  2. beats the hell outta sendmail... by Chuck+Bucket · · Score: 5, Interesting

    after admin'ing sendmail for two years, I switched to Postfix a month ago, and wow, what a difference. recommended, and I'd think a book would only be needed for someone that was deploying this in a large organization.

    CB

    1. Re:beats the hell outta sendmail... by cayenne8 · · Score: 5, Informative

      Yup...was very new to setting up an email server. I found this thread very helpful for setting up a simple home email system. Also way down in the thread is help and links for using spamassasin and other heuristic spam filters...

      --
      Light travels faster than sound. This is why some people appear bright until you hear them speak.........
    2. Re:beats the hell outta sendmail... by pdp11e · · Score: 3, Informative

      I agree. There is a world of difference between the Postfix and Sendmail.
      Many years ago I was "vi /etc/whatever" kind of guy whenever a service needed to be configured or tweaked. As I've got older I've learned to appreciate good tools for the system administration. One of the best (IMHO) is the Webmin. It has an awesome Postfix configuration module and it takes 10 minutes to have (non-trivial) mail-server up and running. But even with the Webmin Sendmail is still a bitch to configure.

    3. Re:beats the hell outta sendmail... by wohlford · · Score: 5, Informative

      I'm a real big fan of Security Sage's postfix configuration. The cover pretty much everything interesting regarding Postfix except LDAP. Jason

      --
      Jason Wohlford
    4. Re:beats the hell outta sendmail... by adamruck · · Score: 2, Informative

      If you wanna spend a couple of bucks, try cpanel. Its webmin on steriods.

      --
      Selling software wont make you money, selling a service will.
  3. I'm not trolling, really... by SharpFang · · Score: 4, Interesting

    ...but comparing how complex sendmail configuration is, and how simple is it to configure Postfix, does a guy who ate his teeth on Sendmail really need -a book- to learn something SO much easier?
    (while Sendmail config file reminds raw binary, Postfix is all easy, understandable and well commented options)

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
    1. Re:I'm not trolling, really... by pe1chl · · Score: 2, Insightful

      Does anybody edit sendmail.cf directly?

    2. Re:I'm not trolling, really... by zulux · · Score: 5, Funny

      Configuring sendmail is easy!

      dd if=/dev/random of=./sendmail.cf

      then hit Ctrl-C when you think you have enough configuring done. Small installs need about 30 seconds, enterprise installs need a few minuites.

      --

      Moneyed corporations, non-working 'poor' and criminal prisoners are turning productive citizens into tax-slaves.

    3. Re:I'm not trolling, really... by M.+Silver · · Score: 4, Interesting

      We bought the book, since we're switching from Sendmail to Postfix Real Soon Now, and you're right. We really didn't need it. "Thin on details" meant, for me, "thin on all the details that were the whole reason for buying the book instead of just reading MAN PAGES. GEEZ!"

      It's a nice, well-written book. It just should have been "Learning Postfix." And then I would have known not to buy it.

      "Practical mod_perl" is another misnamed book. It's really "Practical[ly everything you could ever need to know about running an Internet server that happens to have] mod_perl [on it.]" Heck, I bet it'll tell me how to run Postfix in the next chapter or so. In more depth than the Postfix book.

      --

      Slashdot's token middle-aged housewife
  4. it took you this long to switch from sendmail? by Vellmont · · Score: 4, Insightful

    I thought everyone without a huge legacy setup had switched from the archaic sendmail to something decent like postfix, or qmail long ago.

    A few years ago I simply wanted to re-write my host.domain.tld address on outgoing email to be simply host.tld. I bawked at the stupidities of learning a crappy sendmail language, then re-compiling it into yet another crappy language just to do this. A friend told me about postfix, and I've never looked back. I think only the massochistic, or those hopelessly lost in a legacy sendmail mess use sendmail these days.

    --
    AccountKiller
    1. Re:it took you this long to switch from sendmail? by chef_raekwon · · Score: 4, Insightful

      I thought everyone without a huge legacy setup had switched from the archaic sendmail to something decent like postfix, or qmail long ago.

      am i the only dork that decided to learn sendmail, and now have no issue with its configuration??
      sheesh. i didnt think it was that hard -- ofcourse, i can see its complexity with a huge organization...but once its setup up, count on never having to touch it until an exploit is found (and these days, it seems rare for sendmail).
      oh well....
      back to that cf file.

      --
      We're like rats, in some experiment! -- George Costanza
    2. Re:it took you this long to switch from sendmail? by [tsa] · · Score: 3, Interesting

      > am i the only dork that decided to learn sendmail, > and now have no issue with its configuration??

      No, you aren't. sendmail just works. Oh, and I
      badly failed trying to configure postfix.

    3. Re:it took you this long to switch from sendmail? by silas_moeckel · · Score: 4, Insightful

      Nope learned it loved it and if you want a nice GUI buy it. Will people never learn if they want a nice happy easy sendmail you can buy it. The guys that write it sell a nice administration front end. It even handles multiple instances on various boxen so it scales ok to enterprise and ISP settings. Why does everybody bitch that sendmail is hard to setup does everybody just dred the idea of forking out a hundred bucks for a nice front end to a mail server thats been around the block and is about as defacto a standard as they come?

      OK I may just be jaded because sendmail has gotten me though some tough times and nasty issues at a time when uucp was still common.

      --
      No sir I dont like it.
    4. Re:it took you this long to switch from sendmail? by prockcore · · Score: 5, Funny

      I thought everyone without a huge legacy setup had switched from the archaic sendmail to something decent like postfix, or qmail long ago.

      I would never run qmail, and wouldn't recommend anyone use qmail.

      Any program that just dies with the error message "cannot start: hath the daemon spawn no fire?" doesn't belong in an enterprise server.

    5. Re:it took you this long to switch from sendmail? by dasunt · · Score: 2, Funny

      Any program that just dies with the error message "cannot start: hath the daemon spawn no fire?" doesn't belong in an enterprise server.

      Luckily, although qmail might have abandoned you with its error message, other F/OSS software authors have heard your plea:

      To emphasize the highly professional nature of Nmap, all instances of "fucked up" in error message text has been changed to "b0rked".

      ( I'm half tempted to email in a patch to qmail that adds the configure flag of --idonthaveasenseofhumor )

    6. Re:it took you this long to switch from sendmail? by biggleswat · · Score: 2, Interesting

      Almost sounds like Multics error message...

    7. Re:it took you this long to switch from sendmail? by proberts · · Score: 2, Interesting

      http://www.porcupine.org/postfix-mirror/newdoc/UUC P_README.html

      I found the most attractive features of Postfix were having to do far less security patches, and the fact that my MTAs used far less resources, necessitating fewer upgrades.

      YMMV.

      Paul

      --
      http://www.pauldrobertson.com
  5. honestpuck by Anonymous Coward · · Score: 5, Funny

    I had always wondered how he managed to have so much time to read all these different books, and then on top of reading them, writing a pretty nice review of it.. the following line explains it all to me:

    I was glad when this book hit my desk at exactly the same time as I started upgrading the corporate servers from Mac OS 9 to OS X Server

    And I'm posting this anonymously because I know there are many of you who wondered the very same thing.. ;)

    1. Re:honestpuck by Anonymous Coward · · Score: 2, Funny

      post a link to a critical review he's submitted

      Well, this book got an "8". Since on slashdot, the average review is a "9", this review could be considered critical.

    2. Re:honestpuck by honestpuck · · Score: 5, Insightful

      I was in two minds about replying to this. I decided that since I let the last two similar comments slide it was about time to raise my voice again.

      First. If you'd like a "critical" review (in fact most reviews raise at least one or two criticisms of a book, I think you mean "negative") then you only need to go back as far as my last review, "Learn How to Program Using Any Web Browser". If you want to read a review where I totally pan a book then try my review of Online! The Book.

      Second, I enjoy reading technical books and I enjoy writing. Slashdot just happens to be an open site for book reviews. From the number of book reviews that receive a large number of comments I'd say a lot of people enjoy reading them. From the number Timothy passes through the system I'd say he is fairly often short of reviews. Perhaps the negative, unknowing, unthinking comments of people such as yourself is one reason for that shortage. I've certainly noticed that the number of comments such as yours far outnumber the compliments that reviewers get.

      Third. No one pays me to write these reviews. I do get to have my user id linking to my website. Last quarter that made a grand total of $21, which I took as an Amazon Gift Certificate to (patrially) feed my book habit. My guess is about 3/4 of that was due to getting my reviews published here.

      Fourth. Yes, some of the books I review are sent to me by publishers. Some I buy, some are borrowed from friends. I just did a quick check and over the last few months I've refused to have sent to me by publishers about the same number I've said "yes" too. Both of the book reviews I mentioned above are actually of books sent to me by publishers so I believe I can truthfully say I am not influenced by how a book comes to me.

      Finally, if you think my reviews are those of a "paid shill" you have two perfect solutions. Either write your own reviews or just don't read mine.

      Tony Williams

  6. Re:Thank Apple for by Anonymous Coward · · Score: 2, Offtopic

    Actually, you're all wrong, nice speach though.

    Apple has contributed very little to FreeBSD, all of the contributions have been to the userland; NONE to the kernel.
    No, I'm not complaining, I'm very glad that Apple released a nice test suite that allowed us to find some rather nasty NFS bugs; but other than that, Apple has does no more than helping FreeBSD get the recognition it deserves, which is no little thing by the way.

    The FreeBSD realation with Apple is technically one-sided, Apple benefits, FreeBSD doesn't. On the political side, they both benefit from the BSD push. Which is good, but it could be better, for FreeBSD at least.

  7. Postfix shortcomings by Lxy · · Score: 3, Interesting

    I have also read this book, reviewed it, and submitted it. Obviously honestpuck is more interesting than me, and I can accept that :-).

    Good book, but even with Kyle's help I still can't get procmail working with postfix. Postfix has its own filtering mechanism, including spam filtering. It doesn't seem to allow 3rd party apps like procmail and spamassassin to play with it, though. I can't find info on Gogole either. Is anyone using procmail or spamassassin with postfix?

    --

    There is no reasonable defense against an idiot with an agenda
    :wq
    1. Re:Postfix shortcomings by Anonymous Coward · · Score: 2, Informative

      Check out this article....

      http://techie.org/Projects/TNMailServer-Full.asp x

    2. Re:Postfix shortcomings by boobsea · · Score: 5, Informative

      Didn't google very well did you?

      here you go:

      http://www.geekly.com/entries/archives/00000155.ht m

      Good luck.

    3. Re:Postfix shortcomings by kaisyain · · Score: 3, Informative

      master.cf:
      mailbox_command = /usr/bin/procmail -p

      main.cf:
      smtp inet n - n - - smtpd -o content_filter=spamfilter
      spamfilter unix - n n - - pipe flags=Rq user=spam argv=/usr/local/sbin/spamfilter.sh -f ${sender} -- ${recipient}

      Both of which are documented in files linked to from http://www.postfix.org/docs.html

    4. Re:Postfix shortcomings by Howard+Beale · · Score: 3, Informative

      I used this article as the basis for my smtp gateway and it works fairly well:

      http://lawmonkey.org/anti-spam.html

    5. Re:Postfix shortcomings by jtosburn · · Score: 4, Informative
      Postfix is both well documented, and well supported. From the well commented main.cf :
      # The mailbox_command parameter specifies the optional external
      # command to use instead of mailbox delivery.
      [some snipping]
      #mailbox_command = /some/where/procmail
      #mailbox_command = /some/where/procmail -a "$EXTENSION"

      So not enabled by default, but easily remedied if you absolutely MUST have procmail. You can also enable it on a per-user basis by leaving those lines commented, and then using a .forward file in your home directory that calls procmail.

      As for playing with spamassassin or other 3rd party programs, no problem. A quick check of the Documentation page at www.postfix.org reveals all kinds of good info. The consensus on postfix-users is to use amavisd-new, and then call antivirus and/or spam filters from there.

      Good luck!
    6. Re:Postfix shortcomings by outcast36 · · Score: 3, Informative

      You can also use amavisd. In addition to running your mail through spamassassin, this approach also lets you throw a virus scanner into the mix.

      here's a link

    7. Re:Postfix shortcomings by Hayzeus · · Score: 3, Interesting

      To avoid duplicating the zillion responses you shall receive pointing out that you can use procmail directly as the delivery agent (google or just check main.cf), I'll just point out postfix also honors sendmail .forward files as well, allowing procmail to be invoked that way as well. If you were invoking procmail this way using sendmail, you should have to make 0 changes when you switch to postfix. The only thing I've seen it break so far is the majordomo approval function, and this is covered in the faq.

  8. i stopped reading after i ran into this... by ltwally · · Score: 2, Funny
    "...upgrading the corporate servers from Mac OS 9 to..."

    yeah.. that was about where I gave up on this review. Anyone that runs MacOS 9 as a server ... not someone I think I'd be taking advice from for my network.

    --



    /dev/random
    1. Re:i stopped reading after i ran into this... by Dynedain · · Score: 2, Insightful

      dont blame the tech for what bones management decided to throw at him

      our servers are mostly OS9 as well because the old computers migrate into servers and our office is mostly mac-based (blame the person who's name is on the company for making that decision 15 years ago)

      I'd rather hear from someone who has a tough situation and how they figured a way out of it than from someone who has all the resources they want

      --
      I'm out of my mind right now, but feel free to leave a message.....
    2. Re:i stopped reading after i ran into this... by Anonymous Coward · · Score: 4, Funny

      I was in the middle of upgrading my corporate database server to Access 2000, but had to stop and type this post to wholeheartedly agree with you.

    3. Re:i stopped reading after i ran into this... by Zapman · · Score: 2, Interesting

      I can think of several reasons that MacOS might be needed as a server... Largeish publishing house using Quark Express comes to mind... it was only released for OSX, what, 6 months ago? For most corperations of any size, that's moving pretty quick.

      Besides, remember that even those you consider to be stupid often have good advice. This is one of those instances. Postfix is wonderful. Simple, secure, fast, powerful, extensible... Weitze did an amazing job writing it. He was the guy who wrote TCPWrappers (back in the days before xinetd put some resonable security into inetd) and the origional network analysis tool Satan, so you know it's written with security in mind.

      I've got it pushing 6-8 gigs of email a day in one install using pretty lame hardware (uniproc, 2 SCSI drives at RAID 1). We've loved it, and had some great success with it.

      --
      Zapman
    4. Re:i stopped reading after i ran into this... by CharAznable · · Score: 4, Interesting

      You'd be surprised.. OS 9 is a very secure OS.. there is no root shell to spawn after smashing the stack, for instance.

      --
      The perfect sig is a lot like silence, only louder
    5. Re:i stopped reading after i ran into this... by Shisha · · Score: 4, Insightful

      Somehow, I have the feeling that you have never been in charge of anything than your home network.

      Sorry that's just my impression, but a matter of fact is that IT managers don't allow willy/nilly upgrades. In fact the chances are that in real life, you're managing something that was not designed by you. So you have to put up with whatever is there. And if it works... sort of ... then you'll find it hard to persuade anyone to bless an upgrade.

      Same goes for coding; you take over project someone else has started and it might well be that you'll find yourself learning COBOL. You think that writing a CPU simulator in Java is stupid and inefficient; who cares we want it to run faster and you do whatever is needed to make that happen. That's life.

      Ever seen an S390? Do you know how much IBM charges for fixing these? Do you have an idea how slow they are? But just taking the risk of upgrading to something new usually isn't worth it in real life.

      Btw. he wasn't giving any advice on running a network, just a book review.

    6. Re:i stopped reading after i ran into this... by Otter · · Score: 4, Insightful
      Classic MacOS systems aren't bad servers for low intensity use. They're extremely secure, for one thing, and the available server software packages were pretty good and very straightforward to use. Quite a few places ran their DNS and mailserver off an old Mac SE for well into the Internet age.

      Anyway, who better to write a review of an introductory Postfix book than an admin just switching to Unix?

    7. Re:i stopped reading after i ran into this... by ScottSpeaks! · · Score: 2, Interesting
      our office is mostly mac-based (blame the person who's name is on the company for making that decision 15 years ago)

      I'd file that under "You all thought I was crazy, but who's laughing now?" I'm at the tail end of a migration of my own business from mostly Windows with one Mac and one Linux box, to a mix of OS X and Linux and a legacy Windows box... and lovin' it.

      On the topic of Postfix, I switched from Sendmail (which I'd been tinkering with for a few years) to Postfix when I switched from RedHat to Mandrake, and found it mostly painless. The only problem was that Mandrake's default install of Apache and Postfix apparently left an open proxy (not relay) exploit enabled, and I was briefly sending out spam for some low-life.

  9. Postfix? by Anonymous Coward · · Score: 5, Funny

    p
    / | \
    m / u
    / \
    t s
    / \ / \
    o d h i

    1. Re:Postfix? by ScottSpeaks! · · Score: 4, Informative

      It says "mod this up" in tree format. At every fork, process the left branch, then the right, then the node at the fork itself. When you reach a leaf, use that letter. Later, rinse, recurse.

  10. Begun now by LittleLebowskiUrbanA · · Score: 3, Funny

    the great Qmail/Postfix flame war has.

  11. Postfix doesn't require a book by hey · · Score: 3, Informative

    It has no impossible-to-understand langauge, the options have reasonable names, they do what they suggest... it just works.

    1. Re:Postfix doesn't require a book by misleb · · Score: 4, Insightful

      A book can't hurt. Postfix can do a lot more than what a stock main.cf suggests.

      --
      "THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
  12. The sooner sendmail is consigned... by myowntrueself · · Score: 4, Funny

    to the dustbin of history the better.

    Q. Why does the 'sendmail book' have a bat on the cover?

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

    or;

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

    (And many others, courtesy of 'the unix haters handbook' (worth a read)).

    Obviously, the people who designed the sendmail configuration file system can't have been smoking crack, it wasn't invented back then.

    So what was it that they were on? LSD?

    --
    In the free world the media isn't government run; the government is media run.
  13. Next book to buy by dimss · · Score: 2, Interesting

    This is next book to buy. I like postfix. Five years (or so) ago it was unknown rpm that came with fetchmail in Mandrake. Now I use it on all of my mail servers. And I use it for free.

  14. This book is great... by Mysticalfruit · · Score: 4, Informative
    I recently bought it from BookPool.com and it was cheap!

    Disclaimer: My buddy works at bookpool (but their prices really are great!)

    I've been using this book to migrate our existing sendmail gobbilygook mailsystem to a sane well documented postfix system and I've found the book to be a great help as I've had to do a one to one comparision between sendmail and postfix for configuration stuff.

    Plus Dent's writing style is excellent and the book is well laid out.

    --
    Yes Francis, the world has gone crazy.
  15. M4 actually has some benefits by Anonymous Coward · · Score: 2, Interesting

    If you have a complex setup, it is easier to modify a file with your specific settings, and use M4 to push those settings into the "real" config file. This is fairly future-proof.
    I'm not saying it is the best way, but there was a reason.

  16. Here's a cut'n'paste of the entire book. by Bender+Unit+22 · · Score: 4, Funny

    ---[snip]---
    Postfix, it just works!
    ---[snip]---

  17. Sendmail under Panther by b1t+r0t · · Score: 2, Insightful
    I already had a nice M4 file with a working configuration, and wanted to move from Linux to Panther. It was simple. Just compile it on a 10.2 box.

    Sendmail was incompatible with xcode, probably because of the latest version of GCC. I just checked, and it seems to have been fixed in 8.12.11. At the time it was easier to find a 10.2 box than to dig up the compiler switch command and remember to switch it back afterwards.

    --

    --
    "Open source is good." - Steve Jobs
    "Open source is evil." - Microsoft
  18. Re:Thank Apple for by Gheesh · · Score: 2, Insightful

    The FreeBSD realation with Apple is technically one-sided, Apple benefits, FreeBSD doesn't.

    Well, I thought that was what the BSD license's for. You write code, a company comes in, takes it, does whatever suits them without any need of giving back. If you want a reciprocal relationship, license the code under the GPL.

  19. Re:Thank Apple for by jeremyp · · Score: 4, Informative

    Darwin doesn't use the FreeBSD kernel. It has its own (open source) kernel based on Mach, so it has nothing to contribute back to the FreeBSD kernel.

    --
    All I want is a secure system where it's easy to do anything I want. Is that too much to ask ~~ Randall Munroe
  20. An explanation by jared_hanson · · Score: 4, Informative

    Performing post order tree traversal on this tree yeilds:

    modthisup

    For those of you too long out out CS class, just remember: left, right, root.

    --
    -- Fighting mediocrity one bad post at a time.
  21. Re:Thank Apple for by Anonymous Coward · · Score: 2, Interesting

    Actually, it does, UFS driver updates they made would be welcome. Actually, many systemcalls in the MacOS X are directly from FreeBSD, so they would be welcome to contribute back the the PPC tree.

  22. Why? by EvilStein · · Score: 3, Interesting

    There are still quite a few Mac OS 9 servers - running Webstar or AppleShare IP, or maybe even Eudora Internet Mail Server.

    It's actually not a bad platform at all and can be quite reliable.

  23. Another Postfix book is coming soon by EvilStein · · Score: 4, Informative

    Richard Blum wrote one - it's now quite outdated.

    Ralf Hildebrandt & someone else (sorry, forgot who) are working on another very current Postfix book as well. Keep an eye on Amazon.com for it.

    I've also read the O'Reilly Postfix book and found it to contain a lot of information. It's nice to have around.

    1. Re:Another Postfix book is coming soon by ISPpfy · · Score: 4, Informative
      The Ralf Hildebrandt & Patrick Koetter book "The Book of Postfix" can be found on Amazon here:

      http://www.amazon.com/exec/obidos/ASIN/159327001 1/qid=1077836565/sr=2-3/ref=sr_2_3/002-8092152-647 2869


      It isn't out yet, however.

      It's published by "No Starch Press," which must have some relationship with O'Reilly since it was in their latest catalog as well.
    2. Re:Another Postfix book is coming soon by LaissezFaire · · Score: 2, Interesting

      (Replying to my own message. Ugh.) Ralf's postfix page is here.

    3. Re:Another Postfix book is coming soon by Shaleh · · Score: 2, Informative

      O'Reilly recently started acting as their distributor. No Starch handles the actual content.

  24. postfix instead of sendmail - that's a good thing by fanatic · · Score: 3, Interesting
    This caused a fair amount of teeth gnashing when I discovered it had gone the way of all flesh in OS X Panther to be replaced with Postfix

    I replaced sendmail wwith postfix on all my non-isiolated machines last year after the sendmail vulnerability-of-the-week treadmill got very old.

    it was *really* simple to do.

    postfix: the ultimate sendmail patch.

    --
    "that's not encryption - it's a new perl script that I'm working on..." - from some Matrix parody
  25. About sendmail.cf by Crag · · Score: 3, Insightful

    This is pure conjecture on my part, but I suspect the syntax (and I use the word loosely) of the sendmail.cf file was evolved for ease of parsing via whatever code originally implemented sendmail. It's very nearly a binary format.

    I'm no sendmail appologizer, but the only time anyone should be messing with .cf files is when they're writing new recipies. The sendmail.m4 file is dead simple to work with.

    As for me, I've been using qmail since '97 and I recommend it to anyone with the patience to change the way they think about MTA configuration. It's well worth the one week of agonizing confusion. You'll wonder why anyone would do it any other way.

    1. Re:About sendmail.cf by thogard · · Score: 2, Interesting

      Sendmail is the only existing MTA that can do hacks like SPF with just changes to the config file.

      Since sendmail may have been started with inetd on a slow machine, sendmail.cf was designed to be very fast to parse. How fast? A decade ago the parser could do millions of lines a second on fast hardware for the day. Thats not a major deal now but it did help on a pdp11 or an early vax.

      Sendmail is not static and its still evolving. It was the 1st open source program that worked around insecure OS bugs and is the only major MTA that continues to do so.

  26. On the evil of colons in book titles by LaissezFaire · · Score: 2, Interesting
    The Chronicle has an article by Jennifer Jacobson on the possible evil of colons in book titles. It seems that it's hard to impossible to print a book these days without one. The article contains a small joke about colonoscopies."

    I found the article referenced by Arts & Letters Daily.

  27. Re:Thank Apple for by Anonymous Coward · · Score: 2, Informative
    Of note:

    http://netbsd.org/gallery/products.html#darwin

    ``NetBSD is used by Apple for a large portion of the user-space commands and tools in their Darwin project, and Darwin is the UNIX-based core used by MacOS X. NetBSD source tends to pay attention to issues of portability and correctness, and is virtually all BSD licenced, which avoids commercial problems with the GNU General Public Licence. At least one of the Apple developers has access to the NetBSD source tree and has fed back some useful changes.''


    FreeBSD or NetBSD is more than the kernel alone. Contributing to either doesn't have to be in the form of changes to /usr/src/sys. It could just be to /usr/src. :D

    Now "some useful changes" might be a man page type correction... I don't know. You're welcome to scan Net's cvsweb.
  28. Yet another convert. here... by Anonymous Coward · · Score: 3, Informative

    I ran sendmail for nearly a decade at various jobs and on various systems. I switched to Postfix a few months ago after trying out SuSE 8.1 Linux (love it, btw) and I'm hooked! I now run Postfix as an Internet-to-interior "smtp firewall" between the Internet and my internal Lotus Domino servers, and the pcre body_checks filters that became available in the first couple days of the MyDoom virus storm proved to be invaluable in keeping about a thousand viruses per hour from being relayed thru my SuSE Linux/Postfix "smtp firewall" and hammering away at the Trend Scanmail antivirus on my Domino server.

  29. editting sendmail.cf by MrChuck · · Score: 5, Informative
    I've made a LOT of money taking people's old sendmail configs and turning them into managable m4s. Esp when 4-5 system admins have passed through and just made "a little tweak."

    Postfix seems ok, I'd recommend it for folks setting up straightforward machines who didn't know sendmail

    But people whine that "sendmail is too complex" and at the same time they WANT complex things to happen.

    I had a guy come up to me at an event and shout:
    Guy: Sendmail is too hard.
    ok
    Guy: and is there any way to make it only send large (> 1MB) messages out after 7PM when my ISDN rates are lower?
    sure. 5 lines in your m4 file.

    Sendmail.cf is a binary. It is intended to be read and parsed quickly by a binary. Sendmail still runs on 4MB Sun 3 machines. You don't edit /bin/ls to effect a change there, you edit "ls.c".
    Similarly, you edit the .mc file to effect a change in the .cf.

    More, when sendmail changes major revisions (eg. you fianlly move from Sendmail 8.8 to 8.12), you regen your .cf and, barring some minor changes to remove defunct features or take advantage of new ones, you have a new working .cf file. You can't just move a 8.8 cf file to an 8.12 machine and expect it to work well and use new features.

    Having worked on HUNDREDS or THOUSANDS of config files (one set went onto 10,000 machines at a site), there's NOTHING you can do in the .cf that can't be done in the .mc.

    That said, the rule language is painfully ... complex? No, just the opposite. It's painfully simple. My experience with 6502 assm and a BASIC that had neither ELSE nor AND/OR options helped to make me really good at writing sendmail rules.

    Dealing with booleans (just to ruleset^Wsubroutine saving buffer, put time in buffer.
    Is message less than 1MB? then return
    is time after 1900 hrs? Yes? return dsmtp.
    Is time < 700 hrs? Yes? return dsmtp.
    Otherwise just return.
    In calling routine, look for return value and if it's dsmtp, put the saved buffer to the dsmtp mailer. Otherwise continue with the saved buffer.

    Hard? No, not really.

    Painful? You betcha. I'd love to have variables and ANDs and ELSEs. I've taken to putting complex logic in a perl milter at the RCPT TO phase and calling it a day.

    sub choosemailer {
    if ((($time > 1900) || ($time < 700)) && $size > 1MB) THEN $mailer=dsmtp
    }

    But the rulesets are just read by a parser. It's not rocket science (just computer science).

    It would be nice to have (perl) regex's and such built in.

    And that's where Postfix starts to have an advantage. I can live without UUCP for that. I'd just hope that new sendmail versions might rethink the whole language for processing mail. It's good to have competition. (qmail2 also looks promising to raise the envelope).

    But lets just recall that's its not about Sendmail vs postfix vs exim vs qmail.

    It's any of these VS Exchange/Notes/Gropewise. And we're losing.

    1. Re:editting sendmail.cf by Anonymous Coward · · Score: 2, Informative

      It would be nice to have (perl) regex's and such built in.

      Postfix supports PCRE (perl-compatible regular expression) and plain regexps

      And that's where Postfix starts to have an advantage. I can live without UUCP for that.

      Postfix supports UUCP

    2. Re:editting sendmail.cf by Iamnoone · · Score: 2, Interesting

      I can vouch for this guy and his sendmail work - he is a miracle worker. He transformed the sendmail config's for a 2,000 + person company that I was at. If you are required to use sendmail, it might save you alot of headaches to have him sculpt your config. A real old school UNIX freak, an artist in the sendmail medium...

  30. *sigh* Humor impaired? by FredFnord · · Score: 3, Interesting

    So the point was that you are the admin for a corporate network that ran on MacOS 9, and now runs on MacOS X.

    And therefore, since the administration is so easy, you have plenty of time to read and review books.

    See? He made a funny.

    (Mind you, this is funny because it's true. If you'd said the same thing except about moving your servers from Windows NT 4 to Windows 2003 Advanced Server, he could have said the same thing, and it would've been funny because it was so outrageously false.)

    -fred

    --
    Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
    1. Re:*sigh* Humor impaired? by honestpuck · · Score: 3, Informative

      I agree, the original comment about why I had the time to review all those books *was* funny.

      The comment I was replying to was the one accusing me of being a "paid shill".

      Tony

  31. Postfix for speed by hanksdc · · Score: 4, Informative

    While a lot of the comments here (at least those +3 and above) mention Postfix's ease of management vs. that of Sendmail, one point that hasn't received a lot of attention is how the two compare in terms of efficiency. My experience with Sendmail in a high-load environment tells me it's a monolithic, bloated, resource pig. But that was when I was still somewhat new to the admin game, so I'm sure with some expertise it can be tuned.

    Postfix, on the other hand, 'out of the box' was wonderful, (not to mention easy to use) and when I learned to tune things like filesystem parameters, optimal disk subsystem layout, and such it only got better. Our Postfix installation where I work continues to amaze me with how much mail it processes each day, with little or no maintenance, even under heavy load (1M+ incoming messages/day between 5 dual-CPU, 2-disk SCSI PIII-class machines). My gut feeling is that with some beefier boxes, and a pile of disks I could get that down to 2 machines handling the same amount of traffic.

    Another plus for Postfix is its flexibility, and, if you need to get so deep, its hackability. The code is extremely clean, modular, and easy to work with.

  32. Well, yes... by devphil · · Score: 2, Insightful


    ...those of us with a very early Slackware box (which came with sendmail but no sendmail docs) didn't know that there was such a thing as the M4 files. We had some helpful comments in the .cf file for what the lines did, but that was it.

    When we did find docs, it was just for the .cf file, not the installation-and-regeneration docs. (Which didn't really exist then.)

    I became very good at editing sendmail.cf, and then came the day, years later, when I had to do it from absolute scratch, and downloaded the full tarball for the first time, and discovered the installation docs, which pointed me to the M4 files. Then I gave up in disgust and found qmail.

    Having done my own rewriting rulesets, I became acutely aware of what's involved in processing an email. The knowledge gained helped me figure out qmail, in spite of its craptacular documentation.

    --
    You cannot apply a technological solution to a sociological problem. (Edwards' Law)
  33. PostFix + MYSQL + Cyrus Rocks!!! by Anonymous Coward · · Score: 2, Interesting

    No one has mentioned the great mysql integration. That was what turned me on to Postfix. The domain info can be stored in MySQL. Combine with Cyrus IMAP/POP (and the MySQL PAM module), I can run almost my entire hosting busines without real system users.

    Virtual users with mysql ROCK! Add a record in mysql,
    and a couple folders on the server(via cron jobs that also check the MYSQL database) and voila!

    I don't like to plug my business on slashdot, so I'll post anonymously, but this setup has worked wonderfully for a long while for my companies modest needs.

    It is nice having virtual users. In fact my shared hosting servers can be run without any real system accounts for the end users., (I try to keep "advanced" accounts that have shell access on other servers...)

    FTP users are all virtual too! (Pure FTP), even the DNS is mysql powered (PowerDNS). Make admin pretty easy, I just spend most of my time writing frontends to it...

    ANyway POSTFIX is great by itself, but combined with some additional open source goodness and the sum totoal just rocks...

    1. Re:PostFix + MYSQL + Cyrus Rocks!!! by jallen02 · · Score: 2, Informative

      One better... :)

      I had also known Sendmail was a little tedious to learn. My main job is software development, but we are a small company so I multi task as system admin for about 10 systems, mostly Linux with a couple of internal windows systems.

      None of the email systems are REAL painful to get working, even Sendmail. I can learn and understand these types of things easily with the years of experience I have. The thing is in a small company I have to squeeze every minute I can out of a day because my time means a lot. If I can spend half the time learning the ins and outs of a particular server app I am doing a good thing. So when I had to set up our first non shared systems in a data hosting facility I was very happy.

      I decided QMail had enough of a popular following and a reasonable enough featureset and great security track record that we could live with QMail. So I installed QMail, read books, tweaked and eventually installed. Got everything working: SMTP+POP3 with selective relaying based on who had just popped. Worked great. Then it came time to set QMail up on a different server as we were shuffling services around to free up the server we currently used for mail. I was not looking forward to doing QMail again. I didn't like managing it the way we had it set up and didn't really feel I had the time to mess around with it, so I looked for alternatives.

      I found Postfix. I downloaded it, compiled it, installed it and read through all of the configs and docs.Within an hour I was so amazed at the simplicity of Postfix and how much sense the configs made, I was in shock. Then I read a little more and searched around and found how easy IMAP was to get working as well. I then found an IMAP server that supported MySQL and found that Postfix also supported MySQL for domains/user configurations. That is all it took for me to be completely sold. I would have preferred more options for the RDBMS, but I wasn't going to complain much.. MySQL isn't to resource hungry. Performance wasn't a concern as I only needed mail for a pretty small group of people. As it is this setup is very READ heavy with the data being almost static (just needing a nice easy programmatic way to be updated when required) so it plays nicely into MySQLs performance forte.

      In one day of configuration and code writing I had Postfix doing all of our SMTP, Courier IMAP (which includes POP3) all on the same backend. I had web mail setup and working. All of our mail storage was now centralized which only makes it easier given some of us travel around a lot and still need our mail.The best part, I wrote a web based management tool to manage domains, accounts, and aliases for our mail system. No more unix command line, log onto the application fill in a form or two and its done. Setup a new domain for email? Fill in a few forms and voila it's all done. I think it was one of the most pleasant experiences setting up a network service I administer I have ever had. (I realize that I am a programmer and not everyone will have the knowledge to hammer out a management tool in a small timeframe like that, but for us it simply works).

      Thats my story for Postfix!

      (P.S. we just have our system send a welcome email and the Maildir folders automaticaly get created after the first incoming message. Postfix handles this for you. :) )

      Jeremy

  34. postfix by oohp · · Score: 2, Informative

    Postfix is very good and not crippled by stupid DJB style "licenses" like qmail. I'm using in on all my boxes (FreeBSD, Linux) and one of them delivers large amounts of mail. Very fast delivery, supports all kinds of stuff (maildirs, MySQL, LDAP, delivery to Cyrus, etc.) has some builtin unsolicited bulk email controls and some resource controls and it doesn't require 1e13 users on the system like qmail does. I'm surprised people still use Sendmail (and argue that it's somehow "better"). Very cool piece of software. I'd like to thank Wietse Venema and IBM for it.

    Some would argue about the license (especially BSD people who also argue about GPL being not liberal enough) but it's OSI approved so most arguments are vapour.

  35. Anti-SPAM Postfix, Amavisd-new, SpamAssassin by frankie_guasch · · Score: 2, Informative

    here is a fine guide to build a Fairly-Secure Anti-SPAM Gateway Using OpenBSD, Postfix, Amavisd-new, SpamAssassin, Razor and DCC.

    You can follow the steps and build it with Linux too. This entire procedure has been developed with security as a primary focus. These are the main tools it shows:

  36. Re:Postfix Enabler -- solution for free by davids-world.com · · Score: 3, Informative

    Mac OS X users could alternatively safe the money and read a description of how to enable postfix on OS X for free in ten minutes. In Panther, it's just one or two lines in configuration files, essentially. If you want SASL authentication and other things, the nicely-designed GUI of Postfix Enabler is probably worth a few bucks!

  37. A request for Wietse... by h3 · · Score: 3, Interesting

    I've long wished that Wietse Venema would turn his attention next to a replacement for BIND. Can you imagine it? I get wistful thinking about it.

    In this day and age of DNS and MTAs synergizing to combat spam, it kind of makes some sense, doesn't it?

    I use tinydns myself but the DJB way has also irked me. Which is why I turned to postfix after evaluating qmail long ago. sendmail's security problems and horrid config made it out of the question.

    Kinda like BIND. Though the config isn't as bad as sendmail.cf (and tinydns's data file is about as bad), I'd like to see what Wietse would come up with...

    -h3