LWN.net Logo

Sendmail configuration

Sendmail configuration

Posted Feb 2, 2011 23:03 UTC (Wed) by rfunk (subscriber, #4054)
In reply to: LCA: Lessons from 30 years of Sendmail by rfunk
Parent article: LCA: Lessons from 30 years of Sendmail

Thinking about this more...

The original problem was that sendmail.cf was considered to be too low-level and overly-flexible. It's like an assembly language for address rewriting.

The "solution" was to put a simple macro language on top of it, combined with a set of boilerplate configurations.

The real problem with that solution, other than m4's syntax rivaling sendmail.cf's syntax in ugliness, is that the person trying to avoid the assembly language of sendmail.cf is limited to the few boilerplate configurations that someone else has provided (and if we're lucky, documented). It's like we got something like a macro assembler for address rewriting, when what was needed was something much higher-level.

And that higher level is what we have with pretty much every other major MTA around today. They don't have the total flexibility of sendmail.cf, but they're both more flexible and easier to deal with than sendmail.mc (which is intended to be easier to deal with but less flexible than sendmail.cf).


(Log in to post comments)

Sendmail configuration

Posted Feb 3, 2011 1:20 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

>And that higher level is what we have with pretty much every other major MTA around today. They don't have the total flexibility of sendmail.cf

They do. They just use external modules for that, which is a GOOD thing. I have a set of nice Python scripts to process mail from automatic monitoring systems, and they work just fine with Postfix.

Sendmail configuration

Posted Feb 3, 2011 13:12 UTC (Thu) by nix (subscriber, #2304) [Link]

They don't. Virtually all currently-live MTAs other than sendmail are constrained to RFC822-format email addresses, for instance. sendmail is not.
(These days, of course, that is a completely useless 'feature', but there's no denying that supporting it is a kind of flexibility that sendmail possesses that other MTAs do not.)

Sendmail configuration

Posted Feb 3, 2011 23:35 UTC (Thu) by Cyberax (✭ supporter ✭, #52523) [Link]

I think that can be done in qmail (well, everything can be done in qmail) and I think it can be done in Postfix.

Sendmail configuration

Posted Feb 3, 2011 23:11 UTC (Thu) by brianomahoney (subscriber, #6206) [Link]

There is nothing wrong with the 'sendmail.cf' syntax except that you need a programmer, not an admin, to make major changes. The syntax and semantics of sendmail rules are one of the best documented of all configs.

Sendmail configuration

Posted Feb 3, 2011 23:41 UTC (Thu) by rfunk (subscriber, #4054) [Link]

Yes, sendmail.cf is well-documented and logical, but (at least for modern times) it's too terse and low-level.

It's more procedural than declarative, which is why you need a programmer to change it.

There's really no excuse for its alphabet soup of mailer flags.

And yet I'll happily take sendmail.cf over sendmail.mc.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds