日期:2014-05-18  浏览次数:20673 次

求救!sendmail认证~~~急
redhat   9上面,
cyrus-sasl-devel-2.1.10-4  
cyrus-sasl-2.1.10-4  
cyrus-sasl-plain-2.1.10-4  
cyrus-sasl-md5-2.1.10-4  
openssl-0.9.8e
sendmail-8-12.4

sendmail.mc配置如下:

/////////////////////////////////////////////////////////////////////
divert(-1)dnl
dnl   #
dnl   #   This   is   the   sendmail   macro   config   file   for   m4.   If   you   make   changes   to
dnl   #   /etc/mail/sendmail.mc,   you   will   need   to   regenerate   the
dnl   #   /etc/mail/sendmail.cf   file   by   confirming   that   the   sendmail-cf   package   is
dnl   #   installed   and   then   performing   a
dnl   #
dnl   #           make   -C   /etc/mail
dnl   #
include(`/usr/share/sendmail-cf/m4/cf.m4 ')dnl
VERSIONID(`setup   for   Red   Hat   Linux ')dnl
OSTYPE(`linux ')dnl
dnl   #
dnl   #   Uncomment   and   edit   the   following   line   if   your   outgoing   mail   needs   to
dnl   #   be   sent   out   through   an   external   mail   server:
dnl   #
dnl   define(`SMART_HOST ',`smtp.your.provider ')
dnl   #
define(`confDEF_USER_ID ',``8:12 ' ')dnl
define(`confTRUSTED_USER ',   `smmsp ')dnl
dnl   define(`confAUTO_REBUILD ')dnl
define(`confTO_CONNECT ',   `1m ')dnl
define(`confTRY_NULL_MX_LIST ',true)dnl
define(`confDONT_PROBE_INTERFACES ',true)dnl
define(`PROCMAIL_MAILER_PATH ',`/usr/bin/procmail ')dnl
define(`ALIAS_FILE ',   `/etc/aliases ')dnl
dnl   define(`STATUS_FILE ',   `/etc/mail/statistics ')dnl
define(`UUCP_MAILER_MAX ',   `2000000 ')dnl
define(`confUSERDB_SPEC ',   `/etc/mail/userdb.db ')dnl
define(`confPRIVACY_FLAGS ',   `authwarnings,novrfy,noexpn,restrictqrun ')dnl
define(`confAUTH_OPTIONS ',   `A ')dnl
dnl   #
dnl   #   The   following   allows   relaying   if   the   user   authenticates,   and   disallows
dnl   #   plaintext   authentication   (PLAIN/LOGIN)   on   non-TLS   links
dnl   #
define(`confAUTH_OPTIONS ',   `A   p   y ')dnl
dnl   #  
dnl   #   PLAIN   is   the   preferred   plaintext   authentication   method   and   used   by
dnl   #   Mozilla   Mail   and   Evolution,   though   Outlook   Express   and   other   MUAs   do
dnl   #   use   LOGIN.   Other   mechanisms   should   be   used   if   the   connection   is   not
dnl   #   guaranteed   secure.
dnl   #
define(QUEUE_DIR,   `/var/spool/mqueue/q* ')dnl
TRUST_AUTH_MECH(`EXTERNAL   DIGEST-MD5   CRAM-MD5   LOGIN   PLAIN ')dnl
define(`confAUTH_MECHANISMS ',   `EXTERNAL   GSSAPI   DIGEST-MD5   CRAM-MD5   LOGIN   PLAIN ')dnl
dnl   #
dnl   #   Rudimentary   information   on   creating   certificates   for   sendmail   TLS: