Debian 8: Configure Exim4 SMTP

Linux howto's, compile information, information on whatever we learned on working with linux, MACOs and - of course - Products of the big evil....
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Debian 8: Configure Exim4 SMTP

Post by ^rooker »

I was confused by the files I found in "/etc/exim4" after installing the "exim4" package :?

The right way to configure exim4 on Debian seems to be this:

Code: Select all

$ dpkg-reconfigure exim4-config
This will use the files in /etc/exim4 as templates (therefore the "script-ish" language parts in those files) and put an auto-generated config in:
/var/lib/exim4/config.autogenerated

Links:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

Exim4: STARTTLS authentication on external SMTP server

Post by ^rooker »

In order to send mails over an external SMTP mailserver, using STARTTLS encrypted authentication, you have to add the credentials to the following file:
/etc/exim4/passwd.client
The syntax is explained in the file itself:
# Example:
### target.mail.server.example:login:password
The password is stored in plaintext, so make sure this file is only readable by root (and "Debian-exim" user). This should be the case anyways by default.
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply