dovecot_installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
dovecot [2016/11/09 20:20] – xenadmin | dovecot_installation [2020/02/04 19:50] (aktuell) – xenadmin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Dovecot ====== | + | ====== Dovecot |
- | <WRAP center round alert 60%> | + | ===== Quelle ===== |
- | Baustelle | + | * http:// |
- | </WRAP> | + | * https:// |
+ | |||
+ | ==== Setup ==== | ||
<code bash> | <code bash> | ||
apt install -t jessie-backports dovecot-core dovecot-imapd dovecot-lmtpd -y | apt install -t jessie-backports dovecot-core dovecot-imapd dovecot-lmtpd -y | ||
cp -arf / | cp -arf / | ||
- | |||
cd / | cd / | ||
+ | |||
+ | mkdir -p / | ||
+ | mkdir -p / | ||
+ | groupadd -g 5000 vmail | ||
+ | useradd -r -g vmail -u 5000 vmail -d / | ||
+ | chown -R vmail:vmail / | ||
+ | </ | ||
+ | |||
+ | ==== 10-mail.conf ==== | ||
+ | <code bash> | ||
nano 10-mail.conf | nano 10-mail.conf | ||
</ | </ | ||
Zeile 15: | Zeile 26: | ||
</ | </ | ||
</ | </ | ||
- | \\ | ||
- | <code bash> | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | |||
- | #groupadd -g 5000 vmail | ||
- | #useradd -r -g vmail -u 5000 vmail -d / | ||
- | #chown -R vmail:vmail / | ||
- | chown -R mail:mail / | ||
+ | ==== 10-master.conf ==== | ||
+ | <code bash> | ||
nano 10-master.conf | nano 10-master.conf | ||
</ | </ | ||
Zeile 56: | Zeile 60: | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== 10-auth.conf ==== | ||
<code bash> | <code bash> | ||
nano 10-auth.conf | nano 10-auth.conf | ||
Zeile 75: | Zeile 81: | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== auth-passwdfile.conf.ext ==== | ||
<code bash> | <code bash> | ||
nano auth-passwdfile.conf.ext | nano auth-passwdfile.conf.ext | ||
Zeile 93: | Zeile 101: | ||
userdb { | userdb { | ||
driver = static | driver = static | ||
- | args = uid=mail gid=mail home=/ | + | args = uid=vmail gid=vmail home=/ |
} | } | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== Dovecot Users PasswdFile ==== | ||
<code bash> | <code bash> | ||
doveadm pw -l | doveadm pw -l | ||
Zeile 112: | Zeile 122: | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== 10-ssl.conf ==== | ||
<code bash> | <code bash> | ||
- | nano | + | nano 10-ssl.conf |
</ | </ | ||
- | < | + | < |
* <code txt> | * <code txt> | ||
+ | ssl = required | ||
+ | ssl_cert = </ | ||
+ | ssl_key = </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== 10-logging.conf ==== | ||
+ | <code bash> | ||
+ | nano 10-logging.conf | ||
+ | </ | ||
+ | <hidden 10-logging.conf -edit> | ||
+ | * <code txt> | ||
+ | log_path = / | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== 15-mailboxes.conf ==== | ||
<code bash> | <code bash> | ||
- | nano | + | nano 15-mailboxes.conf |
</ | </ | ||
- | < | + | < |
* <code txt> | * <code txt> | ||
+ | namespace inbox { | ||
+ | # These mailboxes are widely used and could perhaps be created automatically: | ||
+ | mailbox Drafts { | ||
+ | special_use = \Drafts | ||
+ | auto=subscribe | ||
+ | } | ||
+ | |||
+ | mailbox Junk { | ||
+ | special_use = \Junk | ||
+ | auto=subscribe | ||
+ | } | ||
+ | |||
+ | mailbox Trash { | ||
+ | special_use = \Trash | ||
+ | auto=subscribe | ||
+ | } | ||
+ | |||
+ | # For \Sent mailboxes there are two widely used names. We'll mark both of | ||
+ | # them as \Sent. User typically deletes one of them if duplicates are created. | ||
+ | mailbox Sent { | ||
+ | special_use = \Sent | ||
+ | auto=subscribe | ||
+ | } | ||
+ | mailbox "Sent Messages" | ||
+ | special_use = \Sent | ||
+ | } | ||
+ | |||
+ | # If you have a virtual "All messages" | ||
+ | #mailbox virtual/All { | ||
+ | # special_use = \All | ||
+ | # comment = All my messages | ||
+ | #} | ||
+ | |||
+ | # If you have a virtual " | ||
+ | mailbox virtual/ | ||
+ | special_use = \Flagged | ||
+ | auto=no | ||
+ | comment = All my flagged messages | ||
+ | } | ||
+ | } | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== Setup logrotate ==== | ||
<code bash> | <code bash> | ||
- | nano | + | nano / |
</ | </ | ||
- | < | + | < |
* <code txt> | * <code txt> | ||
+ | / | ||
+ | missingok | ||
+ | notifempty | ||
+ | delaycompress | ||
+ | sharedscripts | ||
+ | postrotate | ||
+ | doveadm log reopen | ||
+ | endscript | ||
+ | } | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | |||
+ | ==== Fin ==== | ||
+ | <code bash> | ||
+ | systemctl restart dovecot | ||
+ | </ |
dovecot_installation.txt · Zuletzt geändert: 2020/02/04 19:50 von xenadmin