dovecot_installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
dovecot [2016/11/09 20:46] – [Bearbeite versteckten Absatz] xenadmin | dovecot_installation [2016/11/23 21:06] – ↷ Seitename wurde von dovecot auf dovecot_installation geändert xenadmin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== Dovecot ====== | + | ====== Dovecot |
<WRAP center round alert 60%> | <WRAP center round alert 60%> | ||
Baustelle / Work in Progress | Baustelle / Work in Progress | ||
</ | </ | ||
+ | ===== Quelle ===== | ||
+ | * http:// | ||
+ | * 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 30: | ||
</ | </ | ||
</ | </ | ||
- | \\ | ||
+ | ==== 10-master.conf ==== | ||
<code bash> | <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 / | ||
- | |||
nano 10-master.conf | nano 10-master.conf | ||
</ | </ | ||
Zeile 56: | Zeile 63: | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | ==== 10-auth.conf ==== | ||
<code bash> | <code bash> | ||
nano 10-auth.conf | nano 10-auth.conf | ||
Zeile 75: | Zeile 83: | ||
</ | </ | ||
</ | </ | ||
- | \\ | + | |
+ | ==== auth-passwdfile.conf.ext ==== | ||
<code bash> | <code bash> | ||
nano auth-passwdfile.conf.ext | nano auth-passwdfile.conf.ext | ||
Zeile 93: | Zeile 102: | ||
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 113: | Zeile 123: | ||
</ | </ | ||
- | === 10-ssl.conf === | + | ==== 10-ssl.conf |
<code bash> | <code bash> | ||
nano 10-ssl.conf | nano 10-ssl.conf | ||
Zeile 120: | Zeile 130: | ||
* <code txt> | * <code txt> | ||
ssl = required | 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