Debian 10, mail server Exim4: Difference between revisions
From Andreida
(Blanked the page) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
'''Work in progress!''' |
|||
== Goals == |
|||
{| class="wikitable" |
|||
! Done |
|||
! Task |
|||
! Info |
|||
|- |
|||
| [X] |
|||
| Using [https://www.debian.org/ Debian 10] |
|||
| |
|||
|- |
|||
| [ ] |
|||
| [https://wiki.debian.org/Exim 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 === |
|||
* get Debian from https://www.debian.org/ |
|||
* install 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 |