Forward Mail to SMTP Server
by dervish on May.02, 2011, under Linux
1. Edit/create the following options in /etc/mail/sendmail.mc
:
define(`SMART_HOST’, `your-smtp-server.com’)
FEATURE(authinfo)dnl
2. Edit/create /etc/mail/authinfo
and add the following line:
AuthInfo:<your-smtp-server> "U:<your-smtp-user>" "P:<your-smtp-password>" "M:DIGEST-MD5"
3. Build new sendmail.cf and authinfo.db
make -C /etc/mail
4. Restart sendmail:
/etc/init.d/sendmail restart
5. Send test email message
mail user@host.com
Optional test: sendmail -bv user@host.com
Leave a Reply
You must be logged in to post a comment.