Postby ghost807 » Fri Oct 27, 2006 10:55 am
Using sendmail as a client with AUTH
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.
Change directory to where your sendmail configuration files (sendmail.cf) are located, usually /etc.
Create a safe subdirectory (suggested name auth/):
mkdir auth
chmod 700 auth
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.)
Edit /etc/mail/access and add the same info to the bottom of the file
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.)
Generate the authentication database and make both files readable only by root:
makemap hash access < access.
chmod 600 access*
cd auth
makemap hash client-info < client-info
chmod 600 client-info*
cd ..
Edit /etc/sendmail.cf
#â€