Sendmail Cookbook
Home > Computing and Information Technology > Operating systems > Sendmail Cookbook
Sendmail Cookbook

Sendmail Cookbook

|
     0     
5
4
3
2
1




International Edition


About the Book

More often than not, the words "sendmail configuration" strike dread in the hearts of sendmail and system administrators--and not without reason. sendmail configuration languages are as complex as any other programming languages, but used much more infrequently--only when sendmail is installed or configured. The average system administrator doesn't get enough practice to truly master this inscrutable technology. Fortunately, there's help. The sendmail Cookbook provides step-by-step solutions for the administrator who needs to solve configuration problems fast. Say you need to configure sendmail to relay mail for your clients without creating an open relay that will be abused by spammers. A recipe in the Cookbook shows you how to do just that. No more wading through pages of dense documentation and tutorials and creating your own custom solution--just go directly to the recipe that addresses your specific problem. Each recipe in the sendmail Cookbook outlines a configuration problem, presents the configuration code that solves that problem, and then explains the code in detail. The discussion of the code is critical because it provides the insight you need to tweak the code for your own circumstances. The sendmail Cookbook begins with an overview of the configuration languages, offering a quick how-to for downloading and compiling the sendmail distribution. Next, you'll find a baseline configuration recipe upon which many of the subsequent configurations, or recipes, in the book are based. Recipes in the following chapters stand on their own and offer solutions for properly configuring important sendmail functions such as: Delivering and forwarding mail Relaying Masquerading Routing mail Controlling spam Strong authentication Securing the mail transport Managing the queue Securing sendmail sendmail Cookbook is more than just a new approach to discussing sendmail configuration. The book also provides lots of new material that doesn't get much coverage elsewhere--STARTTLS and AUTH are given entire chapters, and LDAP is covered in recipes throughout the book. But most of all, this book is about saving time--something that most system administrators have in short supply. Pick up the sendmail Cookbook and say good-bye to sendmail dread.

Table of Contents:
Preface; 1. Getting Started; 1.1 Downloading the Latest Release 1.2 Installing Sendmail; 1.3 Compiling Sendmail to Use LDAP 1.4 Adding the regex Map Type to Sendmail; 1.5 Compiling Sendmail with SASL Support; 1.6 Compiling Sendmail with STARTTLS Support 1.7 Compiling in STARTTLS File Paths; 1.8 Building a sendmail Configuration; 1.9 Testing a New Configuration; 1.10 Logging Sendmail; 2. Delivery and Forwarding; 2.1 Accepting Mail for Other Hosts; 2.2 Fixing the Alias0 Missing Map Error; 2.3 Reading Aliases via LDAP; 2.4 Configuring Red Hat 7.3 to Read Aliases from a NIS Server; 2.5 Configuring Solaris 8 to Read Aliases from a NIS Server; 2.6 Forwarding to an External Address 2.7 Creating Mailing Lists; 2.8 Migrating Ex-users to New Addresses; 2.9 Delivering Mail to a Program; 2.10 Using Program Names in Mailing Lists; 2.11 Allowing Non-login Users to Forward to Programs; 2.12 Fixing a .forward Loop; 2.13 Enabling the User Database; 3. Relaying; 3.1 Passing All Mail to a Relay 3.2 Passing Outbound Mail to a Relay; 3.3 Passing Local Mail to a Mail Hub; 3.4 Passing Apparently-Local Mail to a Relay; 3.5 Passing UUCP Mail to a Relay; 3.6 Relaying Mail for All Hosts in a Domain; 3.7 Relaying Mail for Individual Hosts; 3.8 Configuring Relaying on a Mail Exchanger; 3.9 Loading Class R via LDAP 3.10 Relaying Only Outbound Mail; 4. Masquerading 4.1 Adding Domains to All Sender Addresses; 4.2 Masquerading the Sender Hostname; 4.3 Eliminating Masquerading for the Local Mailer 4.4 Forcing Masquerading of Local Mail; 4.5 Masquerading Recipient Addresses; 4.6 Masquerading at the Relay Host; 4.7 Limiting Masquerading; 4.8 Masquerading All Hosts in a Domain; 4.9 Masquerading Most of the Hosts in a Domain; 4.10 Masquerading the Envelope Address; 4.11 Rewriting the From Address with the genericstable; 4.12 Rewriting Sender Addresses for an Entire Domain 4.13 Masquerading with LDAP; 4.14 Reading the genericstable via LDAP; 5. Routing Mail; 5.1 Routing Mail to Special Purpose Mailers; 5.2 Sending Error Messages from the mailertable; 5.3 Disabling MX Processing to Avoid Loops; 5.4 Routing Mail for Local Delivery; 5.5 Reading the mailertable via LDAP; 5.6 Routing Mail for Individual Virtual Hosts; 5.7 Routing Mail for Entire Virtual Domains; 5.8 Reading the virtusertable via LDAP; 5.9 Routing Mail with LDAP; 5.10 Using LDAP Routing with Masquerading 6. Controlling Spam 6.1 Blocking Spam with the access Database 6.2 Preventing Local Users from Replying to Spammers 6.3 Reading the access Database via LDAP; 6.4 Using a DNS Blackhole List Service; 6.5 Building Your Own DNS Blackhole List; 6.6 Whitelisting Blacklisted Sites; 6.7 Filtering Local Mail with procmail; 6.8 Filtering Outbound Mail with procmail; 6.9 Invoking Special Header Processing; 6.10 Using Regular Expressions in Sendmail; 6.11 Identifying Local Problem Users; 6.12 Using MILTER; 6.13 Bypassing spam checks; 6.14 Enabling spam checks on a per-user basis; 7. Authenticating with AUTH; 7.1 Offering AUTH Authentication; 7.2 Authenticating with AUTH; 7.3 Storing AUTH Credentials in the authinfo File; 7.4 Limiting Advertised Authentication Mechanisms; 7.5 Using AUTH to Permit Relaying 7.6 Controlling the AUTH= Parameter; 7.7 Avoiding Double Encryption; 7.8 Requiring Authentication; 7.9 Selectively Requiring Authentication; 8. Securing the Mail Transport 8.1 Building a Private Certificate Authority; 8.2 Creating a Certificate Request; 8.3 Signing a Certificate Request; 8.4 Configuring Sendmail for STARTTLS; 8.5 Relaying Based on the CA 8.6 Relaying Based on the Certificate Subject; 8.7 Requiring Outbound Encryption; 8.8 Requiring Inbound Encryption; 8.9 Requiring a Verified Certificate; 8.10 Requiring TLS For a Recipient; 8.11 Refusing STARTTLS Service; 8.12 Selectively Advertising STARTTLS; 8.13 Requesting Client Certificates; 9. Managing the Queue 9.1 Creating Multiple Queues; 9.2 Using qf, df and xf Subdirectories; 9.3 Defining Queue Groups; 9.4 Assigning Recipients to Specific Queues; 9.5 Using Persistent Queue Runners 9.6 Using a Queue Server; 9.7 Setting Protocol Timers 10. Securing Sendmail; 10.1 Limiting the Number of Sendmail Servers; 10.3 Updating to Close Security Holes; 10.4 Patching to Close Security Holes; 10.5 Disabling Delivery to Programs 10.6 Controlling Delivery to Programs; 10.7 Disabling Delivery to Files; 10.8 Bypassing User .forward Files; 10.9 Controlling Delivery to Files; 10.10 Running Sendmail Non-set-user-ID root 10.11 Setting a Safe Default Userid; 10.12 Defining Trusted Users 10.13 Identifying the Sendmail Administrator; 10.14 Limiting the SMTP Command Set; 10.15 Requiring a Valid HELO; 10.16 Restricting Command-line Options; 10.17 Denying DoS Attacks; Index


Best Sellers


Product Details
  • ISBN-13: 9780596004712
  • Publisher: O'Reilly Media
  • Publisher Imprint: O'Reilly Media
  • Height: 230 mm
  • No of Pages: 400
  • Returnable: Y
  • Width: 175 mm
  • ISBN-10: 0596004710
  • Publisher Date: 20 Jan 2004
  • Binding: Paperback
  • Language: English
  • Returnable: Y
  • Spine Width: 25 mm


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Sendmail Cookbook
O'Reilly Media -
Sendmail Cookbook
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Sendmail Cookbook

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!