Posted by Anonymous on Wed 26 Oct 2005 at 13:56
This brief guide will explain the steps you can take to get basic SMTP AUTH working with Debian Sarge's exim4 package. (For users connecting to your server, not for forwarding via your ISP)
First of all generate an Exim SSL certificate:
# /usr/share/doc/exim4-base/examples/exim-gencert
Now edit /etc/exim4/exim4.conf.template using your favourite text editor.
Uncomment (don't copy and paste from here because my copy from file cut out end of lines) the following lines:
# plain_server:
# driver = plaintext
# public_name = PLAIN
# server_condition = "${if crypteq{$3}{${extract{1}{:}{${lookup{$2}lsearch{CON$
# server_set_id = $2
# server_prompts = :
# .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS
# server_advertise_condition = ${if eq{$tls_cipher}{}{}{*}}
# .endif
Once that has been done create (or edit if it exists) /etc/exim4/exim4.conf.localmacros
Add the line:
MAIN_TLS_ENABLE = true
To actually setup the users and passwords create /etc/exim4/passwd
Copy output from:
htpasswd -nd usernameforsmtp
And paste it in /etc/exim4/passwd
Repeat for any other logins you'd like to add.
Now you're done. Update your configuration and Restart Exim4:
# update-exim4.conf # /etc/init.d/exim4 restart
This article can be found online at the Debian Administration website at the following bookmarkable URL:
This article is copyright 2005 Anonymous - please ask for permission to republish or translate.