Sendmail configures SASL library with SMTP authentication

zhaozj2021-02-11  253

Sendmail configuration with SMTP authentication

Environment: Redhat Linux 6.0 (kernel 2.2.14) Sendmail-8.10.2 Cyrus-SASL-1.5.21 Outlook Express 5.0 1. Preparation 1. First download the SASL library, the function library provides functions required for secure authentication, download The address is (ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/), version 1.5.21. 2. Download Sendmail (http://www.sendmail.org), version of Sendmail over 8.10.0 supports SMTP authentication. 3. Note Select the client email software. Not all client email software supports SMTP authentication feature, several common version requirements are like this: Netscape Messenger version To 4.6 Outlook and Outlook Express To 5.0 or above Eudora Pro version of 4.3 more Foxmail This feature is not supported. Each software authentication method is different, and it is slightly different when compiling the SASL library. I will introduce the setting method of the most common Outlook Express 5.0. Second, install the SASL library 1. Unzip Cyrus-SASL-1.5.21.tar.gz to your selected directory 2.cd cyrus-sasl-1.5.21 3 ./configure --enable-login --with-pwcheck Outlook Expresss uses Login authentication methods, SASL libctions are not supported, so they are especially joined in generating profiles. In addition, Outlook password authentication methods are not default, so they need to join --with- PWCHECK options. The SASL library can be compiled and installed below. Make Make Install 4. By default, all library functions are installed into the / usr / local / lib directory, but the library function used by Sendmail is under directory / usr / lib, so you need to do some adjustments. CD / usr / lib ln / usr / local / lib / sasl / ./sasl -s cp / usr / local / lib / libsa *. You can also avoid this step, before you run the configure script, modify it before step 3 The default path is OK. Open the configure file to find this line ac_default_prefix = / usr / local (in front of the file), change to ac_default_prefix = / usr, which is more convenient. 5. New Directory / VAR / PWCHECK, which is used by the PWCHECK command, which is a background program that is responsible for checking the user's input password, using the SHADOW password file with the root permission. 6. Create file sendmail.conf in the / usr / lib / sasl directory, add the following line PWCHECK_METHOD: PWCheck This SASL library function is installed. Third, compile and configure Sendmail 1. Unzip Sendmail software to your desired directory, enter the sendmail-8.10.2 directory. Create config.site.m4 files in the devTools / site / directory, add the following two lines, compile the SMTP authentication function into Sendmail. AppendDef (`conf_sendmail_libs ',` -lsasl') 2. Returned to sendmail directories back to Sendmail directories, start compiling Sendmail.

转载请注明原文地址:https://www.9cbs.com/read-3686.html

New Post(0)