Debian 10, mail server Exim4: Difference between revisions

From Andreida
Line 100: Line 100:
apt-get install spamassassin
apt-get install spamassassin
systemctl enable spamassassin.service
systemctl enable spamassassin.service

=== Install Dovecot ===
* install it
apt-get install dovecot-imapd
* set mail location in /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir
* set separator
separator = /
* edit /etc/dovecot/conf.d/15-mailboxes.conf
vi /etc/dovecot/conf.d/15-mailboxes.conf
* modify the structure if needed

Revision as of 12:10, 20 September 2020

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
  • edit /etc/exim4/update-exim4.conf.conf
CHECK_RCPT_SPF = true

Blacklist

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

install Spam Assassin

apt-get install spamassassin
systemctl enable spamassassin.service

Install Dovecot

  • install it
apt-get install dovecot-imapd
  • set mail location in /etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir
  • set separator
separator = /
  • edit /etc/dovecot/conf.d/15-mailboxes.conf
vi /etc/dovecot/conf.d/15-mailboxes.conf
  • modify the structure if needed