|
Untying the Sendmail Gordian Knot |
Here's a Perl script that reveals how your Sendmail configuration rewrites addressesBy Becca ThomasRequest:We're looking for someone to rewrite
The Sendmail program has a dubious reputation: it's difficult to configure and even more difficult to understand. Yet it's still the most universal mail delivery agent used on the Internet. In response to configuration angst, Rob Kolstad and colleagues provide a Perl program that processes pre-Version 8 Sendmail rule-test mode output to help the user configure address rewriting, probably the most difficult part to get right. I've taken a look at their creation and made some modifications of my own to simplify their Perl script. Rule Sets RuleIn my ongoing effort to understand internetworking, I attended
the ``Internet Security With Firewalls'' tutorial presented by
Rob Kolstad and Tina Darmohray at the Winter 1994 Usenix
conference. One utility discussed caught my attention,
Usage Notes. To use Implementation Notes. Lines 8-16 comprise the
configuration section. Line 8 defines the Operation Notes. Lines 18-40 collect command-line options and check their arguments. Status information is displayed for the user by lines 43-47. Lines 50-57 define a handler to trap keyboard-generated interrupt and quit signals so the temporary file can be erased before the script terminates. Lines 61-87 define the formats of the output reports. Line 61
overrides the default page length with the value assigned to the
The main program consists of two primary sections: the first
part (lines 151-198) reports the delivery agent, destination
host, and destination user assigned for each input address
interpreted as the recipient address; the remaining section
reports how the Sendmail configuration will rewrite each input
address interpreted first as a recipient then as the sender
address. Both sections prepend the address with appropriate
rule-set directives and feed the result to the Sendmail program
invoked in rule-test mode (specified by the Part C of the Listing shows some
sample input addresses, and Part D
shows the resulting report produced by In Part C, Part D displays the status
messages, then a section that reports the delivery agents and
associated destination hosts and users. The Sendmail program
didn't name a destination host for the local delivery agents so
the value used to initialize the The Sendmail program selects the Next, You'll need to enhance About the
|
Print This Page Send as e-mail |
Best of the Web
Data deduplication: Declawing the clones
Data deduplication is emerging as a critically important new arrow in the storage administrator's quiver to answer hard questions about the increasing problem in storage growth costs.
Compression, Encryption, Deduplication, and Replication: Strange Bedfellows
One of the great ironies of storage technology is the inverse relationship between efficiency and security: Adding performance or reducing storage requirements almost always results in reducing the confidentiality, integrity, or availability of a system.
WAN Optimization Whitelists and Blacklists
Optimization is a fantastic way of saving money and creating really happy customers at the same time, but it doesn't work flawlessly for all applications.
WAN Optimization as a Managed Service: It's Not About the Cost
This insight examines how organizations outsourcing their WAN optimization initiatives to a third-party go about achieving their goals for application performance, reducing operational costs, and streamlining enterprise infrastructure.





