email relayMost ISP mail servers require authentication. If yours does not then all you should need is the SMART_HOST entry in sendmail.mc cd /etc/mail edit sendmail.mc and add this before the MAILER entry: define(`SMART_HOST',`smtpout.secureserver.net') dnl smtpout.secureserver.net = your mail server name. Note: if an IP address is used, enclose the IP address with square brackets. dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN') FEATURE(`authinfo',`hash /etc/mail/auth/client-info') dnl /etc/mail/auth/client-info = the absolute path to the auth file that you create dnl define(`RELAY_MAILER_ARGS', `TCP $h 3535') dnl 3535 = your mail servers port number. dnl execute these commands: mkdir auth cd auth create and edit a file client-info to look like this (one line): AuthInfo:your.isp.net "U:root" "I:user" "P:password" substitute only for: your.isp.net = you mail relay host name user = your mail username password = the password that you use to check your mail. execute these commands: chmod 700 client-info makemap hash client-info < client-info cd .. make /sbin/service sendmail restart ================ to test: mail -s (subject) address check the mail queue: mailq -v check log messages: tail /var/log/maillog ====================== You can get a good mail relay account at namebub.com Created by: admin last modification: Thursday 07 of August, 2008 [19:16:08 UTC] by admin |
Login
Search |