Debian 10, mail server Exim4

From Andreida

Work in progress!

Goals

Done Task Info
[X] Using Debian 10
[ ] Exim 4 as mail server
[ ] Using self created certificate
[ ] Dovecot for imap access
[ ] SquirrelMail as web client
[ ] SpamAssassin for spam filtering
[ ] Access from Thunderbird
[ ] Access from Outlook/Mail
[ ] Backup of mails to a different system
[ ] virtual users
[ ] Server side use of SpamAssains header tags to move junk to junk folders (sieve?)

Installation

Installation of exim

apt-get install exim4-daemon-heavy
  • configure it
dpkg-reconfigure exim4-config
  • apply the configuration
update-exim4.conf
  • restart exim
service exim4 restart
  • check for port 25
ss -apn | grep exim

TLS / Custom certificate

  • edit /usr/share/doc/exim4-base/examples/exim-gencert
vi /usr/share/doc/exim4-base/examples/exim-gencert
  • change DAYS to a larger number (20000?)
  • look at content of /etc/exim4
ls -l /etc/exim4
  • execute /usr/share/doc/exim4-base/examples/exim-gencert
  • look at content of /etc/exim4
ls -l /etc/exim4
  • Edit update-exim4.conf.conf
vi /etc/exim4/update-exim4.conf.conf
  • add use of tls
MAIN_TLS_ENABLE = yes
  • apply
update-exim4.conf
service exim4 restart

SPF (Sender Policy Framework)

apt-get install spf-tools-perl
CHECK_RCPT_SPF = true

Blacklist

  • set the variable
CHECK_RCPT_IP_DNSBLS = zen.spamhaus.org
  • apply
update-exim4.conf
service exim4 restart