Part 01: Ubuntu: install and configure SMTP server with Exim
Step 1: edit file /etc/exim4/conf.d/main/03_exim4-config_tlsoptions
add line: MAIN_TLS_ENABLE = yes
AUTH_SERVER_ALLOW_NOTLS_PASSWORDS = yes
AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS = yes
Step 2: create user
sudo /usr/share/doc/exim4-base/examples/exim-adduser
data will store in file /etc/exim4/passwd
Step 3:
sudo chown root:Debian-exim /etc/exim4/passwd
sudo chmod 640 /etc/exim4/passwd
Step 4: edit file /etc/exim4/conf.d/auth/30_exim4-config_examples
Comment all line, only uncomment these lines:
plain_server: driver = plaintext public_name = PLAIN server_condition = "${if crypteq{$auth3}{${extract{1}{:}{${lookup{$auth2}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}" server_set_id = $auth2 server_prompts = : .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS server_advertise_condition = ${if eq{$tls_in_cipher}{}{}{*}} .endif login_server: driver = plaintext public_name = LOGIN server_prompts = "Username:: : Password::" server_condition = "${if crypteq{$auth2}{${extract{1}{:}{${lookup{$auth1}lsearch{CONFDIR/passwd}{$value}{*:*}}}}}{1}{0}}" server_set_id = $auth1 .ifndef AUTH_SERVER_ALLOW_NOTLS_PASSWORDS server_advertise_condition = ${if eq{$tls_in_cipher}{}{}{*}} .endif
Step 5:
sudo systemctl restart exim4.service