The Book of Postfix 103
The Book of Postfix | |
author | Ralf Hildebrandt + Patrick Koetter |
pages | 464 |
publisher | No Starch Press |
rating | 9 |
reviewer | Danny Yee |
ISBN | 1593270011 |
summary | understanding and implementing Postfix mail systems |
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.
Dumb Question... (Score:5, Interesting)
Re:Dumb Question... (Score:5, Insightful)
Re:Dumb Question... (Score:5, Informative)
However, if you want added functionality, security, filtering, spam / virus control, you need to understand what you are doing if you want to use an open source *nix-compatible mail server.
If you just want something "easy" (read: click and drool), expose Exchange to the Internet and pay through the nose for security software that is behind the times.
If you understand how the internals of a richly-functional mail server work, you too may achieve >99.99% spam and virus filtering with 0.0001% false positives. And do it much cheaper.
Re:Dumb Question... (Score:2)
That's insightful?
I believe the question was why is it so complicated. You haven't answered it. Why should Open Source or UNIX mail servers be less easier to use than proprietary or non-UNIX systems?
Re:Dumb Question... (Score:2)
Re:Dumb Question... (Score:4, Insightful)
People assume these things, and I don't think it's warranted. I think the UI for the security is probably just badly designed. Many people would say Windows sets users up as admins because that's easy, and doing things securely would be hard. But is 'type your admin password to continue' like Fedora or OS X uses really that hard?
Re:Maybe the problem is that you're fucking braind (Score:2)
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.
Re:Dumb Question... (Score:4, Interesting)
Mailservers are complex that is why. Just take a look at Exim to see what happens when a mailserver gets a bit too complex. In Exim you have this whole transport pipeline that the message must pass through before it gets delivered. Along the way you can change headers, filter for spam, virus check and about a million other things including sender id.
Thankfully (at least in debian) it comes with a script that will do quite a few basic configurations after asking a few questions. Your e-mail needs may not be as complex as others, but when a site needs a an e-mail server to handle 10,000+ e-mails an hour, streamlining and tweaking the process allows things to be much smoother. I admit I am not anywhere near an expert when it comes to SMTP servers, but I can see the value in wanting to make things run smooth and streamlining the process is a part of that.
Personally, I've found that postfix is pretty easy to set up and maintain compared to other daemons out there. As far as I am concerned, anything has to be better than configuring Sendmail, though I guess it has become a lot more secure over the years.
I'm sure others will have a lot more to say on this subject.
Re:Dumb Question... (Score:1, Informative)
It has gotten more secure, sure, but that still doesn't stop a large number of attackers from successfully compromising the system.
And, on top of that, Sendmail is hell to configure.
Again, much love for Postfix.
Re:Dumb Question... (Score:3, Informative)
Standard configs [postfix.org]
You shouldn't need to really configure much more than that.
Re:Dumb Question... (Score:3, Interesting)
Pages and pages of stuff that you already have to understand to understand. I agree, mail servers are needlessly complex. All I want to do is receive mail and send it to 3 users on my machine, and have them be able to send mail via TB to the server without it become a spam relay. Why is this so damn hard.
Maybe it isn't but they people that document mail servers don't have a clue.
Why is it so damn hard to have the mail server require a user and passwor
Re:Dumb Question... (Score:4, Informative)
Mail server documentation is written for IT professionals and system administrators who know what they are doing.
This is not meant for end users.
And if you had bothered to read those links, they are newbie friendly and actually explain in depth what the changes you are doing do to the mail system.
Also, MUAs are supposed to submit mail on 587/tcp via SMTP. I recommend you follow that rule.
Re:Dumb Question... (Score:3, Informative)
The default postfix config that comes with Fedora Core is probably all you need. FC installs sendmail by default, so you need to install postfix and switchmail (and probably dovecot, if you want pop3/imap capability:
A
Re:Dumb Question... (Score:1)
Re:Dumb Question... (Score:2)
Because spammers (read: "the people who shameless use the resources of innocent third parties to shove unwanted advertising down our throat") are getting more clever about finding open relays.
Yes it sucks, but yes, the moment you're on the net you have to play like the big boys and do everything right.
Re:Dumb Question... (Score:1)
Why is the that the same program that receives mail from the outside world is the one that accepts connections from clients. This is silly and contributes to the spam problem.
Maybe that's because mail delivery from MUA and other MTAs are done (sometimes, not always) over one standard protocol - SMTP?
I'm sorry, really, but with this level of understanding you have no business whatsoever in configuring mail servers. Ask your sysadmin to do it for you.
Re:Dumb Question... (Score:2)
I understand it, I just don't think it needs to be as hard as it is. My server is running just fine.
Why are IT people such jerks.
Re:Dumb Question... (Score:1)
I'm sorry for sounding like a jerk in a grandparent post, I've just seen too much horribly misconfigured mail systems, sending shit in HELO and all that. And their beady eyed admins asking me why the fuck is their mail being rejected. Sorry again.
You see, mail systems require a truckload of flexibility because many mail configurations exist and many tasks must be solved. You don't really think that sendmail's flexibility was just a conspiracy of sysadmins to make their job indispensible, right?
Mail in
Re:Dumb Question... (Score:2)
Here's an example: I run a Linux desktop. I have a server that runs a mail server, and use it for sending and receiving email via SMTP and POP3.
They don't have to be so complex if you're only using it for one or a few users, and especially if you are using it for local delivery only. Postfix is not designed for what you described, so it is a bit of an overkill. Take a look at mailx and TistedMail. There probably others out there as well. I left smail o
Re:Dumb Question... (Score:2)
They're not. If you think they are, this probbaly indicates you have no clue whats involved in running a large mail installation.
Seems like you have to be a PhD Rocket Scientist to change the most simplest thing.
Rather ironically I'm currently taking over mail service from a department of Rocket Scientists who no longer have the in house skillset to do it themselves.
Re:Dumb Question... (Score:1)
Fortunately, according to Charles Fitzgerald [com.com], Microsoft is about to put the rocket scientists who do AJAX programming out of work when they release their new AJAX development platform, so there will be plenty looking for Postfix admin jobs.
Re:Dumb Question... (Score:1)
Reliability, Security, Spamblocking are hard (Score:2)
Re:Dumb Question... (Score:2)
1.) Email is the killer application of the internet. Not everyone uses mysql. EVERYONE uses email. Without email, the internet is useless to a large group of netziens.
2.) Email is the *MOST COMPLICATED* thing that happens on t
Because users need needless complexity too (Score:2)
Re:Dumb Question... (Score:1)
Correct grammar might help.
Re:Dumb Question... (Score:2)
I already do a lot of that stuff... (Score:1)
Re:I already do a lot of that stuff... (Score:2)
Re:I already do a lot of that stuff... (Score:1)
Great timing (Score:3, Informative)
I also reviewed The Book Of Postfix [debian-adm...ration.org] this week.
I also enjoyed it, and recommended it.
Re:Great timing (Score:2, Funny)
How to tell when it's time for you to read some alt.sysadmin.recovery.
Just picked this book up a month ago (Score:5, Informative)
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!
Re:Just picked this book up a month ago (Score:2, Insightful)
Re:Just picked this book up a month ago (Score:2)
I must say I'm a little surprised at the strength of the negative opinions on sendmail (in the comments) so far. It's not that bad. I now use postfix or exim as my default mailserver on most machines, but sendmail still has a significant "it's known, it's documented, it's mature, if you can follow the instructions then it should Just Work" advantage. Note that I did say "should". ;-)
But then I'm usually happiest with Debian's wonderful set-it-all-up-for-me exim-config script :).
"Yes, I'm installing a s
Grey listing.. (Score:4, Informative)
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/ [puremagic.com]
Re:Grey listing.. (Score:1)
I concur.
Greylisting has its drawbacks, and can cause problems in some cases, but it's singlehandedly reduced my incoming SPAM by at least a third.
The attraction is that it's 100% automatic, and requires no retraining, etc.
Re:Grey listing.. (Score:2)
kashani
Re:Grey listing.. (Score:2)
greylisting is a beautifully simple concept that works insanely well. I only picked up on it thanks to the recent
Re:Grey listing.. (Score:2)
FWIW, in my experience a 5 minute timeout is every bit as effective as a 4 hour (?!?!?) delay, so don't assume that more is better.
<plug>More good ideas at Free Software Magazine [freesoftwaremagazine.com].</plug>
Slashvertisement, but... (Score:2, Funny)
MOD THIS GARBAGE DOWN! (Score:2, Troll)
If you are looking just to bitch about slashdot, you could easily find better things to complain
Re:MOD THIS GARBAGE DOWN! (Score:2)
Re:MOD THIS GARBAGE DOWN! (Score:1)
That's how book reviews on Slashdot _always_ work.
Someone writes a review and submits it to slashdot. They don't submit someone else's review - that would be a copyright issue at best, and plagiarism at worst.
It just happens that in this case the person who submitted the review also has it on his web site, so he linked to it. That's fair enough if you ask me, and
Re:MOD THIS GARBAGE DOWN! (Score:1)
An apology (Score:2)
Re:An apology (Score:1)
Shouldn't that be... (Score:3, Funny)
Re:Shouldn't that be... (Score:2)
Re:I would tend to disagree a little (Score:1)
Missing: advantages of postfix (Score:1, Offtopic)
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 i
Re:Missing: advantages of postfix (Score:1)
You've outlined an (important IMHO) advantage yourself.
Re:Missing: advantages of postfix (Score:2, Insightful)
I can't speak for anyone else, but I usually just skip right past advantages and disadvantages in these such books.
Re:Missing: advantages of postfix (Score:2)
Let me put it this way:
When I read the line in the submission: Do you run a mail server using Postfix? If so, then you should..., I internally finished it with "...blow your head off?".
~Will
Re:Missing: advantages of postfix (Score:2)
One thing that I think really goes unnoticed about Postfix is that it is a drop-in rep
Re:Missing: advantages of postfix (Score:1)
Re:Missing: advantages of postfix (Score:2)
I stated that I enjoyed the book, and I would recommend it, since I have been running Postfix for quite sometime, I used the book as a backup to the older Richard Blum book. I have not yet had the opportunity to proof-read the entire book. I've only been though parts that has been revised as of the latest few releases of Postfix.
Yes, I am glad you have posted an errata, as I said
Re:Missing: advantages of postfix (Score:1)
Re:Missing: advantages of postfix (Score:1)
From the description (Score:2, Funny)
Dissapointed (Score:3, Funny)
PostFix crosslisted in hardware? (Score:2, Insightful)
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.
Re:Hmm (Score:1)
If you don't understand a post, don't moderate it.
Postfix [wikipedia.org] is an alternative notation to infix. [wikipedia.org] For example 2 + 5 becomes 2 5 +. So "The Book of Postfix" becomes "The Book Postfix of". Maybe it isn't funny after all, but it isn't a troll by any reasonable definition.
-Peter
over 800 book reviews? (Score:1, Offtopic)
Fewer Open Relays (Score:1)
Re:Fewer Open Relays (Score:1)
Re:Fewer Open Relays (Score:1)
2. How do you plan to enforce this? Mandatory licensing for sysadmins? No thanks.
3. "Administrates"? "out where"? "hopefully it helps"?
Re:Comparisons with Blum? (Score:1)
Another source of postfix information :) (Score:3, Informative)
Say hello to us in irc.
We're always happy to help.
Re:Another source of postfix information :) (Score:2)
Just call me f3ew
Re:qMail (Score:2)
This is an easy and simple way to get Qmail going.
Mutt (Score:2)
Re:Mutt (Score:2)
Re:Mutt (Score:3, Informative)
Try ssmtp [debian.org]. I use it when running mutt on Win32 under Cygwin.
yep (Score:1)
Re: (Score:2)
It's not Ralf Hildebrandt (Score:2)
It is Ralf "Ficken" Hildebrandt!
Don't mod me down, that is his official name - at least for those who know him.