Page 1 of 1

Implementing Smart Host

Posted: Fri Mar 24, 2006 9:07 am
by kshicks
Hi folks!

How do I implement a smart host with authentification?

I plan to send any mail leaving my server through this smart host / relay host since I've only got a dynamic ip-adress. Also my domain provider requieres auth to use his smtp server.

TIA
Kelsey

Posted: Fri Mar 24, 2006 4:07 pm
by ScalixSupport
Edit /etc/mail/sendmail.cf and add the appropriate entry in the section:

Code: Select all

# "Smart" relay host (may be null)
DSsmarthostname.domain.ext


To use AuthSMTP against your mail relay host, you need to edit your /etc/mail/access file and add something like:

Code: Select all

AuthInfo:smtp.domain.com "U:loginname" "I:loginname" "P:password"



where smtp.domain.com is the smarthost you're trying to send through and loginname and password is the auth info you need to supply to send mail through it. Once you've made those changes, you need to restart sendmail.

I'm concerned about your dynamic ip. Have you sorted how your are going to receive mail?

Regards,
Don

Posted: Fri Mar 24, 2006 5:55 pm
by kshicks
What is the difference between the two login names:
"U:loginname" "I:loginname"

Dynamic ip is no problem since my primary mx record points to my server (updated after every reconnect) and the backup mx points to my "dns provider" (selfhost.de).

Posted: Fri Mar 24, 2006 6:00 pm
by ScalixSupport
A little googling goes a long way:

http://www.sendmail.org/m4/smtp_auth.html

Rachel