Mailserver einrichten: Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
Zeile 15: Zeile 15:
sudo apt-get install dovecot-imapd dovecot-pop3d
sudo apt-get install dovecot-imapd dovecot-pop3d
sudo apt-get install dovecot-mysql
sudo apt-get install dovecot-mysql
</pre>
=== Datenbank erstellen ===
<pre style="white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;">
mysql -u root -p
mysql> create database if not exists mails;
</pre>
</pre>



Version vom 10. März 2016, 00:19 Uhr

Voraussetzungen

Für den Betrieb eines Mailservers ist eine Datenbank Voraussetzung - ich habe mich für MySQL entschieden.

Siehe dazu auch MySQL installieren.

Dovecot

Installation

sudo apt-get install dovecot-core
sudo apt-get install dovecot-imapd dovecot-pop3d
sudo apt-get install dovecot-mysql

Datenbank erstellen

mysql -u root -p 
mysql> create database if not exists mails;

Konfiguration

Datei /etc/dovecot/conf.d/10-auth.conf:

# Folgende Zeile auskommentieren:
# !include auth-system.conf.ext

# Folgende Zeile einkommentieren:
!include auth-sql.conf.ext

Datei /etc/dovecot/dovecot-sql.conf.ext:

# Database driver: mysql, pgsql, sqlite
driver = mysql


Zurück zu Ubuntu