k***@gmail.com
2005-09-28 07:17:18 UTC
i want to use sendmail as a client with AUTH.i config the sendmail
follow the instruction below.but when it did not work.
============================
root:ibmlow:/etc/mail>mail -v ***@tiens.com.cn
Subject: test
test
.
Cc:
Warning: Option: AuthMechanisms requires SASL support (-DSASL)
Warning: Option: DefaultAuthInfo requires SASL support (-DSASL)
***@tiens.com.cn... Connecting to [10.1.200.6] via relay...
220 mail.tiens.com.cn ESMTP Service (Lotus Domino Release 5.0.11) ready
at Wed, 28 Sep 2005 15:01:50 +0800
to meet you
250-HELP
250-AUTH=LOGIN
250-SIZE
250 PIPELINING
505 Authentication required
root... Using cached ESMTP connection to [10.1.200.6] via relay...
postmaster... Using cached ESMTP connection to [10.1.200.6] via
relay...
Closing connection to [10.1.200.6]
=================================
what is wrong with my configuration?
Thank you.
Using sendmail as a client with AUTH
(This section has been written by Benji Fisher. Thanks!)
If you are using sendmail only to transfer e-mail from your local
computer to a mail server that requires SMTP AUTH, follow these
instructions. They assume that sendmail 8.12 or later, and other
software, is already installed on your computer. You should probably be
logged in as root to perform these steps.
1. Change directory to where your sendmail configuration files
(sendmail.mc and sendmail.cf) are located, usually /etc/mail/.
2. Create a safe subdirectory (suggested name auth/):
# mkdir auth
# chmod 600 auth
3. Create a file with your authentication information (suggested
name auth/client-info):
AuthInfo:your.isp.net "U:root" "I:user" "P:password"
filling in your ISP's mail server, your user name, and your
password. (Note: Earthlink, and perhaps other ISP's, requires your full
e-mail address as a user name.)
4. Generate the authentication database and make both files readable
only by root:
# cd auth
# makemap hash client-info < client-info
# chmod 600 client-info*
# cd ..
5. Add the following lines to your sendmail.mc file, filling in your
ISP's mail server:
define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5
CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
6. Generate sendmail.cf:
# m4 sendmail.mc > sendmail.cf
7. Restart the sendmail daemon, e.g., (this depends on your OS):
# kill -HUP `cat /var/run/sendmail.pid`
Note: if FEATURE(`authinfo') is used, then the hostname in the map
entry must match exactly the hostname of the ISP mailserver as
explained in cf/README: Note: searches for domain parts or IP nets are
only performed if the access map is used; if the authinfo feature is
used then only up to three lookups are performed (two exact matches,
one default).
follow the instruction below.but when it did not work.
============================
root:ibmlow:/etc/mail>mail -v ***@tiens.com.cn
Subject: test
test
.
Cc:
Warning: Option: AuthMechanisms requires SASL support (-DSASL)
Warning: Option: DefaultAuthInfo requires SASL support (-DSASL)
***@tiens.com.cn... Connecting to [10.1.200.6] via relay...
220 mail.tiens.com.cn ESMTP Service (Lotus Domino Release 5.0.11) ready
at Wed, 28 Sep 2005 15:01:50 +0800
EHLO ibmlow.tiens.com
250-mail.tiens.com.cn Hello ibmlow.tiens.com ([10.1.240.10]), pleasedto meet you
250-HELP
250-AUTH=LOGIN
250-SIZE
250 PIPELINING
505 Authentication required
root... Using cached ESMTP connection to [10.1.200.6] via relay...
RSET
505 Authentication requiredMAIL From:<> SIZE=1068
505 Authentication requiredpostmaster... Using cached ESMTP connection to [10.1.200.6] via
relay...
RSET
505 Authentication requiredMAIL From:<> SIZE=2092
505 Authentication requiredClosing connection to [10.1.200.6]
QUIT
221 mail.tiens.com.cn SMTP Service closing transmission channel=================================
what is wrong with my configuration?
Thank you.
Using sendmail as a client with AUTH
(This section has been written by Benji Fisher. Thanks!)
If you are using sendmail only to transfer e-mail from your local
computer to a mail server that requires SMTP AUTH, follow these
instructions. They assume that sendmail 8.12 or later, and other
software, is already installed on your computer. You should probably be
logged in as root to perform these steps.
1. Change directory to where your sendmail configuration files
(sendmail.mc and sendmail.cf) are located, usually /etc/mail/.
2. Create a safe subdirectory (suggested name auth/):
# mkdir auth
# chmod 600 auth
3. Create a file with your authentication information (suggested
name auth/client-info):
AuthInfo:your.isp.net "U:root" "I:user" "P:password"
filling in your ISP's mail server, your user name, and your
password. (Note: Earthlink, and perhaps other ISP's, requires your full
e-mail address as a user name.)
4. Generate the authentication database and make both files readable
only by root:
# cd auth
# makemap hash client-info < client-info
# chmod 600 client-info*
# cd ..
5. Add the following lines to your sendmail.mc file, filling in your
ISP's mail server:
define(`SMART_HOST',`your.isp.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5
CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
6. Generate sendmail.cf:
# m4 sendmail.mc > sendmail.cf
7. Restart the sendmail daemon, e.g., (this depends on your OS):
# kill -HUP `cat /var/run/sendmail.pid`
Note: if FEATURE(`authinfo') is used, then the hostname in the map
entry must match exactly the hostname of the ISP mailserver as
explained in cf/README: Note: searches for domain parts or IP nets are
only performed if the access map is used; if the authinfo feature is
used then only up to three lookups are performed (two exact matches,
one default).