| dnl # The following allows relaying if the
user authenticates, and disallows dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links dnl # dnl define(`confAUTH_OPTIONS', `A p')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 # Please remember that saslauthd needs to be running for AUTH. 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: dnl # cd /usr/share/ssl/certs; make sendmail.pem dnl # Complete usage: dnl # make -C /usr/share/ssl/certs usage dnl # define(`confCACERT_PATH',`/usr/share/ssl/certs') define(`confCACERT',`/usr/share/ssl/certs/ca-bundle.crt') define(`confSERVER_CERT',`/usr/share/ssl/certs/sendmail.pem') define(`confSERVER_KEY',`/usr/share/ssl/certs/sendmail.pem') |
#¥H¤U¬O¤¹³\¨Ï¥ÎªÌÅçÃÒ¨Órelay¶l¥ó,¦ý¦pªG¨Ï¥Î
plaintextÅçÃÒ¦ý¨S¦³¨Ï¥ÎTLS«h¥\¯à½Ð¤£n¨Ï¥Î³oÓ¥\¯à ¦pªGn§An¨Ï¥ÎLOGIN¤d¸U¤£n¨Ï¥Î³oÓ¶µ¥Ø ¨Ï¥Îdefine (`confAUTH_OPTIONS', `A')´N¦n¤F,¦]¬°¥¦·|¨î¥u¦³½s½X¤~¥i¥H¨Ï¥Î PLAINÅçÃÒ¤èªk¨Ï¥Î¦bMozilaMail /Evolution LOGINÅçÃÒ¤èªk¨Ï¥Î¦bOutlook Express ½Ð°O¦ísaslauthd¥²¶·³Q°õ¦æ,¤~¯à¨Ï¥ÎAUTH #©w¸q«H¥ôªºÅçÃÒ¾÷¨î #©w¸qÅçÃÒªº¾÷¨î ¦pªGn¨Ï¥ÎTLS½Ð¨Ï¥Î¤U±©R¥O cd /usr/share/ssl/certs;make sendmail.pem §¹¾ãªº¥Îªk make -C /usr/share/ssl/certs usage #¤U±³]©w¾ÌÃÒ,keyµ¥³]©w |
| # Directory in which to place saslauthd's listening socket, pid file,
and so # on. This directory must already exist. SOCKETDIR=/var/run/saslauthd # Mechanism to use when checking passwords. Run "saslauthd -v" to get a list # of which mechanism your installation was compiled to use. MECH=pam #MECH=shadow¦n¹³¤]¥i¥H # Additional flags to pass to saslauthd on the command line. See saslauthd(8) # for the list of accepted flags. FLAGS= |
| [root@dns1 ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 dns1.ocean-pioneer.com ESMTP Sendmail 8.13.1/8.13.1; Fri, 3 Feb 2006 13:20:11 +0800 ehlo test 250-dns1.ocean-pioneer.com Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-AUTH LOGIN PLAIN 250-STARTTLS 250-DELIVERBY 250 HELP |

| [root@dns1 ~]# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. 220 dns1.ocean-pioneer.com ESMTP Sendmail 8.13.1/8.13.1; Fri, 3 Feb 2006 13:20:11 +0800 ehlo test 250-dns1.ocean-pioneer.com Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-AUTH LOGIN PLAIN 250-STARTTLS 250-DELIVERBY 250 HELP |

|
S:220 smtp.com ESMTP Sendmail 8.13.1/8.13.1; Fri, 3 Feb 2006 14:51:4 5 +0800# telnet localhost 25 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 bbs.cj.mis.yzu.edu.tw ESMTP Sendmail 8.12.6/8.12.6; Tue, 29 Apr 2003 ehlo localhost 250-bbs.cilab.mis.yzu.edu.tw Hello localhost [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH LOGIN PLAIN 250-DELIVERBY 250 HELP AUTH LOGIN 334 VXNlcm5hbWU6 -Usernameªºbase64½s½X [¶K¤W base64 ½s½X«áªº User Name] 334 UGFzc3dvcmQ6 -Passwordªºbase64½s½X [¶K¤W base64 ½s½X«áªº User Password] 235 2.0.0 OK Authenticated <-- ¥X²{³o¦æªí¥Ü»{ÃÒ¦¨¥\ quit |