I work on a newsletter system for my project and I wanna use exim4 (lightweight version) for sending newaletters (just for newsletters because the mail is hosted separated...on google apps). But there is a way to auth and setup domains and accounts ([email protected], [email protected], etc.) ? Any idea is welcomed! Thanks :)
Debian provides a couple of examples in their default configuration snippets. If you're using Debian and its split configuration system, these should be in
/etc/exim4/auth/30_exim4-config_examples
(if you aren't, it would be afterbegin authenticators
in the configuration file), and then you'd uncomment the section you are using (for instance, this one is for crypted passwords):Note the
server_advertise_condition
. Since the password is sent in clear text over the network, this login type should only be allowed when TLS is being used. CRAM-MD5 does not send the password in plaintext over the network so it does not require TLS, but it does require the server to hold a plaintext copy of the password so it can generate per-session hashes from it. Per Debian's documentation,/some/place/passwdfile
contains accounts of the formetc. The crypt password hashes can be made using (for example)
makepasswd --crypt-md5
ormkpasswd -H md5
. The plaintextpassword is only necessary if you're using CRAM-MD5, since it requires the server to create custom hashes of the password for each login. Adding and removing accounts is simply a matter of adding or deleting lines from the file. Users must log in with the whole email address as their username.