Debian 10, mail server Exim4: Difference between revisions

From Andreida
Line 54: Line 54:


== Installation ==
== Installation ==
=== Installation of exim ===
* get Debian from https://www.debian.org/
* get Debian from https://www.debian.org/
* install exim
* install exim
Line 65: Line 66:
* check for port 25
* check for port 25
ss -apn | grep exim
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 /etc/exim4/exim4.conf.localmacros
vi /etc/exim4/exim4.conf.localmacros
* 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

Revision as of 11:35, 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 /etc/exim4/exim4.conf.localmacros
vi /etc/exim4/exim4.conf.localmacros
  • 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