Administration
  Home arrow Administration arrow Page 8 - Getting Started with Sendmail
The Best Selling PC Migration Utility.
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Getting Started with Sendmail
By: O'Reilly Media
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 17
    2005-07-07

    Table of Contents:
  • Getting Started with Sendmail
  • The cf directory structure
  • The cf/m4 directory
  • 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

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Route your faxes to your email inbox. Private, secure fax numbers available from CallWave. Choose your fax number.

    Getting Started with Sendmail - 1.5 Compiling sendmail with SASL Support
    (Page 8 of 13 )

    Problem

    sendmail must be compiled with SASL support before it can be configured to offer the AUTH protocol extension.

    Solution

    Check the sendmail compiler options. If sendmail was compiled with the SASL flag, it does not need to be recompiled. If sendmail was not compiled with SASL support, add SASL to the -D flags used to specify compiler environment information, add sasl to the -l flags used to select libraries for linking, and recompile sendmail. After recompiling sendmail, reinstall and restart it.

    Discussion

    Use the -d0.1 flag to check the compiler options of the sendmail binary. The SASL flag should be clearly shown in the “Complied with:” list, as in this example:

      #sendmail -bt -d0.1
      Version 8.12.9
       
    Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MIME7TO8 MIME8TO7
                       NAMED_BIND NETINET NETUNIX NEWDB PIPELINING SASL
                       SCANF USERDB XDEBUG
    ============ SYSTEM IDENTITY (after readcf) ============ 
          (short domain name) $w = chef
      (canonical domain name) $j = chef.wrotethebook.com 
             (subdomain name) $m = wrotethebook.com
                  (node name) $k = chef ========================================================
      ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) 
      Enter <ruleset> <address>
      >
    /quit

    If the flag is not displayed, create a site.config.m4 file in the devtools/Site directory that contains the following commands:

      APPENDDEF(`conf_sendmail_ENVDEF', `-DSASL')
      APPENDDEF(`conf_sendmail_LIBS', `-lsasl')

    Recompile, reinstall, and restart sendmail, as in this example:

      # cd /usr/local/src/sendmail-8.12.9
     
    #
    ./Build –c
     
    ...many lines of output deleted...
     
    # cd /usr/local/src/sendmail-8.12.9/sendmail
     
    #
    ./Build install
     
    ...many lines of output deleted...
     
    # kill -HUP `head -1 /var/run/sendmail.pid`

    See Also

    Recipes 1.2, 1.3, 1.4, 1.6, and 1.7 provide additional examples of compiling sendmail. Chapter 7 covers SASL and AUTH configuration. The sendmail book covers AUTH configuration in section 10.9 and compiling sendmail in section 2.2. See the sysadmin.html file in the SASL documentation directory for additional information about SASL configuration.

    More Administration Articles
    More By O'Reilly Media


       · quite a good article!
       · Really Nice Article
     

    Buy this book now. This article was excerpted from chapter one of The Sendmail Cookbook, written by Craig Hunt (O'Reilly Media, 2004; ISBN: 0596004710). Check it out at your favorite bookstore. Buy this book now.

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway