Results 1 to 2 of 2
Hey, i ve been looking around to try to find out a way to configure sendmail to use an external smtp server and not connecting to localhost, is there a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-18-2005 #1
- Join Date
- May 2005
how to set up sendmail to use an external smtp
i ve managed the sendmail.mc several times, tried to force sendmail to use the external smtp but nothing.
Just asking a way to connect to some external smtp server that's all.
- 03-26-2007 #2
- Join Date
- Jan 2007
Here you go buddy, sorry for the delay, but hope is helps others.
Change directory to where your sendmail configuration files (sendmail.mc and sendmail.cf) are located, usually /etc/mail/.
Create a safe subdirectory (suggested name auth/):
# mkdir auth
# chmod 700 auth
Create a file with your authentication information (suggested name auth/client-info):
INSIDE THAT FILE PLACE THE FOLLOWING:
AuthInfo:your.isp.net "U:root" "I:user" "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 client-info < client-info
# chmod 600 client-info*
# cd ..
Add the following lines to your sendmail.mc file, filling in your ISP's mail server:
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
# m4 sendmail.mc > sendmail.cf
Restart the sendmail daemon, e.g., (this depends on your OS, this works for redhat and CentOS):
# service sendmail restart