The Book of Postfix
When The Book of Postfix arrived, I jumped straight to the chapter "Understanding SMTP Authentication", since that was something I wanted to get working. This explains the problem -- how to allow travelling users with unknown IP addresses to send mail through a mail server without opening it up to spammers -- and clearly lays out the options: SMTP-after-POP or -IMAP, SMTP authentication, certificate-based relaying using TLS, or some kind of VPN. "If you want something simple, independent, and secure, SMTP AUTH is probably for you."
The remainder of the chapter explains how to set up a backend for SMTP authentication -- a choice between saslauthd and other options -- and the following chapter then explains how to configure Postfix to use it. This approach is typical of The Book of Postfix, which tackles many topics with paired chapters, the first covering background, theory and any ancillary systems and the second covering the actual Postifx configuration. It also emphasises progressive implementation accompanied by testing, which is most reassuring when modifying production servers.
Other chapters in Part III, "Advanced Configurations", cover running Postfix chrooted, using TLS (two chapters), mail gateways and multiple domains. There's also a chapter that works through building a complete mail system for an organisation. Part IV covers tuning and the appendices cover installing Postfix (for Debian or Redhat Linux, or from source) and troubleshooting.
Moving backwards, the hundred and twenty pages in part II cover content controls. Some basic postmaster background is followed by pairs of chapters on each of message transfer restrictions, built-in content filters, and external content filters. I've been working through these, improving my anti-spam controls, and they're proving really helpful; my next step will be implementing amavisd-new.
Part I explains how to set up a host to run Postfix, with ancillary services such as DNS, NTP and syslog, then how to set up a simple single domain configuration, either on a permanently connected machine or on a dialup machine. It then gives a brief description of Postfix's basic anatomy. Part I is concise -- just fifty pages -- but it offers everything most people will need for a basic setup.
There's no cruft in The Book of Postfix: it's a fairly chunky book, but none of it is padding. Excerpts from configuration files include just the right amount of context and the diagrams (and a very few screenshots) are integrated with the text and tightly focused. Given the scope, it's probably overkill for basic Postfix users, though the first fifty pages would make an excellent "getting started" guide for them.
There are some omissions. There's no general explanation of how the master.cf file works, for example, or of rewriting -- neither "masquerading" nor "canonical" appear in the index or glossary. The "Anatomy of Postfix" chapter could definitely have been more comprehensive.
How does The Book of Postfix compare with the O'Reilly book Postfix: the Definitive Guide ? The Book of Postfix is nearly twice the length and provides much more detailed step-by-step explanations and more on ancillary systems -- it explains how to set up backends for SMTP authentication, for example, rather than just telling you that you need one.
I highly recommend The Book of Postfix to anyone using Postfix and wanting to do more than the basics with it.
Danny Yee has written over 800 other book reviews. You can purchase The Book of Postfix from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
Why are mail servers so needlessly complicated? Seems like you have to be a PhD Rocket Scientist to change the most simplest thing.
The only reason I'd read the Book of Postfix is if I actually wanted to understand what the heck I was doin'
What's a sig?
I also reviewed The Book Of Postfix this week.
I also enjoyed it, and recommended it.
We had been running sendmail as the MTA for our mail gateway (for a medium size university). I had been getting fed-up with sendmail, and have had a collegue raving about postfix for a long time.
Long story short: This book has let me (in less then a month) not only switch our mail servers over to postfix, but let me do things more efficiently (in terms of stopping spam at the SMTP receive stage) and many other things better then I had with sendmail before.
I'm not going to make this a sendmail vs. postfix thread, but if you're going to use postfix, this book is a great resource!
For anyone using Postfix, I would highly recommend setting it up to work with Postgrey http://isg.ee.ethz.ch/tools/postgrey/.
This reduced the spam at our installation by over 80% overnight, and has so far had no complaints of false positive.
For a detailed explanation of how this works, see here..http://projects.puremagic.com/greylisting/
...at least its honest and to the point!
"You a mail server run Postfix using do?"
I agree that this book is a very useful tool, however, I disagree with the writer of the review. Some of the sections on SMTP protocol and behavior seem entirely superfluous, especially for anyone who even knows what Postfix is.
However, the book is, overall, a good read, and a great tool. Definitely recommended.
I've run heavy-load MTAs under qmail for some time now, and since djb won't bring it in to the current century, integrating all of the new features necessary for today's SMTP world becomes more and more hacky and patchy. Thankfully, gentoo eases it for me by including all of the most useful patches in its qmail ebuild, but some features remain unintegrated or can't easily be done early in the SMTP conversation.
I'd love to see a simple, objective, and comprehensive comparison made between postfix, exim, and qmail (include sendmail if you like, although I won't use sendmail for admittedly emotional and historic reasons).
Once you've made the commitment to go postfix, though, this review makes it sounds like this book might be a good resource.
$0.02,
ptd
I'm an animal lover -- they're delicious!
..I had hoped that it would be a Hildebrant illustrated guide to Postfix.
I just type my sig in the reply form...
I am dissapointed. I clicked on this link expecting it to be about Forth or PostScript or HP. Boy was I sadly mistaken.
Why not fork?
Come on. A book review is an advertisement? Get a fucking clue. Just because a review endorses a product does not mean that they paid for that endorsement (I realize there are exceptions *cough*Tom's Hardware*cough*) It was a detailed review to boot! In case you didn't know, reviews are there to let people know what a product is like, therefore providing a service to people that may find the information useful.
If you are looking just to bitch about slashdot, you could easily find better things to complain about. Next time don't waste my bandwith (and time) with your idiotic comments.
zosxavius photography
In Korea, only old people use email.
Let's review:
hardware = something you can kick when it breaks, or, kick to break it
software = the little 0's and 1's that live in hardware.
Shouldn't it be "The Book Postfix of"?
-Peter
ok. but can someone please explain to me how someone has all the time to read over 800 books, in-depth, and write a decent review on them all? even at it for a full-time job. hmm...
abcdefghijklmnopqrstuvwxyz
It should be obligatory to read such a book for everyone who administrates a mail server, because hopefully it helps to decrease the number of open relays out where.
Postfix by Richard Blum was the quintessential guide to Postfix. But, do to newer releases of Postfix, it is now somewhat out of date. I had very much hoped that Richard Blum would revise it but, that does not seem to be in the cards, yet.
Can anyone who has read both Blum's and this new Postfix book offer any comparisons between the two.
irc.freenode.org #postfix
Say hello to us in irc.
We're always happy to help.
Thanks to a vacation autoresponder loop this past weekend, I had the pleasure of cleaning up ~1.5 million messages. Took me 10 minutes to write the script and I was out smoking a fag.
Are there any comprehensive documents on getting qMail up and running on a simple network? a starting place for us newbies?
Bill Stewart
New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
This post is ancillary to the discussion at hand, but I use Postfix for one reason only: to get mail from my favorite email client (mutt) to my ISP's server, which requires authentication and sometimes encryption. And for that purpose alone, it's a pain in the butt. I see how Postfix is a great program for people running servers or routing hundreds of messages of day. I only need it because Mutt's dogmatic adherence to the Unix philosophy (each tool does one trick and one trick only, but interfaces nicely with other tools) means I need to go through a lot of work to get my mail to the ISP. SUSE made this easy for me, through YAST2, which dealt with all the tricky configuration necessary to get Postfix talking to my server, but I never understood how it worked. When I moved to Kubuntu I was forced to dive into the Postfix config files more deeply than I felt confident doing. I'd love either a mutt patch that provides SMTP-auth capability (whoops, google is my friend: http://www.geocities.com/win32mutt/patches.html - why isn't it used by default?) or a simple DEB package that provides mini-SMTP-auth capability for people like me that only send out 10-20 emails per day, and always to our smarthost.
If this were Usenet, I'd killfile the lot of you.
Just read the Postfix list sometime - people who want to rewrite headers for some virtual domains but not others, then filter those for spam and bounce the spam with a 500-error variant based on the phase of the moon, all the while rejecting 50000-message per minute mail bombs and extracting every 300th incoming spam to convert into a realtime blackhole list, then offering users a choice whether they want TLS or SMTP-after-POP, all the while making sure the CEO doesn't get any spam and that outgoing mail headers are rewritten to obfuscate the originating subdomain based on what floor the email is sent from.
Postfix is perfect for that kind of stuff.
Give a man a fish and you have fed him for today. Teach a man to fish, and he'll say "WHERE'S MY FISH, YOU IDIOT?"
"It's a little known fact, but mail servers were the 10th plague that God visited upon the egyptians." -j.d. illiad frazer btw koetter has been a huge help for years with his postfix/cyrus/tls howto on the web.
The only reason why I'm even using Postfix at the moment is because Trend Micro went and basically made their whole Interscan Messenging Security Suite co-dependant on it... and since customer wants support, we pretty much have to do what Trend wants in that regard.
I managed to hack it to work on qmail and qmail-scanner, and it turned out to be much faster than postfix. It's just that Postfix is a safer bet than qmail I guess.
(DJB, if you are reading this then PLEASE update qmail and try to incorporate other people's patches. Your codebase is slowly being patched to hell and is slowly becoming a PITA to administer. Thanks.)
READY.
PRINT ""+-0
It is Ralf "Ficken" Hildebrandt!
Don't mod me down, that is his official name - at least for those who know him.
Sorry. I was cranky and quick on the trigger. I'm real sick of all the slashdot whiners and complainers. Please accept my apology. I will now bow my head in shame for a while.
zosxavius photography
I'm actually quite competant at both Sendmail and Postfix. I wasn't actually talking about myself. You just assumed I was, and made yourself look like a dick as a result.
Qmail isn't Open Source you fucking idiot.