- Goto the "Main Configuration Section" and add the option
"host_auth_accept_relay", if it isn't already there. This option is a
host list and defines which hosts are permitted to relay mails, if
they have successfully authenticated themselves. Basically this may be
everyone:
host_auth_accept_relay = *
- If you are using realtime DNS blacklists, you need to
exclude a host, that has successfully authenticated itself. Without
this setting, a client may not send any mails through exim, if it
connects from a blacklisted IP address.
rbl_hosts = ! 127.0.0.1/32 : ${if eq {$authenticated_sender}{} {$sender_host_address}{}}
You may want to exclude your local network, too (preeceed it with an exclamation mark!).
- Turn on support for SSL connections. Exim recognises the
"STARTTLS" command and thus accepts SSL and non-SSL connections on the
same port, by default 25. You need to add the following lines to the
"Main Configuration Section":
# TLS Configuration
tls_advertise_hosts = *
tls_certificate = /etc/ssl/certs/my_certificate.crt
tls_privatekey = /etc/ssl/certs/my_private_key.key
- You need to create a password file. This file holds all valid
username-password pairs, each pair on a separate line. Furthermore, you
need to tell exim how to read your password file. But first decide
whether you want to share the password file between exim and your
IMAP/POP3 server:
- exim only
If you want to use just one password file for exim
alone and not share it with another server service, take the configuration snippet for
UW-IMAPd and create your password file as
/etc/cram-md5.pwd in the form:
<login name> : <password>
Add the lines
found in the appropriate configuration snippet to the last
configuration section "Authentication Configuration" in exim.conf. Save
the password file as: /etc/cram-md5.pwd
Change the permissons and ownership of the password file:
chown root:mail
/etc/cram-md5.pwd
chmod 640 /etc/cram-md5.pwd
Make sure your IMAP/POP3 server can read the password file! You may
need to add it to the "mail"-group (e.g. adduser dovecot mail).
Edit your new password file /etc/cram-md5.pwd
and add your mailusers, one per line.