Meine kleine Dokumentation

Die Installationsdokumentation zu MeineKleineFarm.net

Benutzer-Werkzeuge

Webseiten-Werkzeuge


dovecot_installation

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen RevisionVorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
dovecot [2016/11/09 20:44] xenadmindovecot_installation [2020/02/04 19:50] (aktuell) xenadmin
Zeile 1: Zeile 1:
-====== Dovecot ====== +====== Dovecot Installation & Konfiguration ====== 
-<WRAP center round alert 60%> +===== Quelle ===== 
-Baustelle Work in Progress +  * http://www.binarytides.com/install-postfix-dovecot-debian
-</WRAP>+  * https://sys4.de/en/blog/2013/03/25/outlook-2013-special-use-mit-dovecot/ 
 + 
 +==== 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 /etc/dovecot/conf.d/ /etc/dovecot/conf.d.BAK cp -arf /etc/dovecot/conf.d/ /etc/dovecot/conf.d.BAK
- 
 cd /etc/dovecot/conf.d cd /etc/dovecot/conf.d
 +
 +mkdir -p /var/mail/vhosts/meinekleinefarm.net
 +mkdir -p /var/mail/vhosts/mgs-ullrich.de
 +groupadd -g 5000 vmail
 +useradd -r -g vmail -u 5000 vmail -d /var/mail/vhosts -c "Dovecot virtual mail user"
 +chown -R vmail:vmail /var/mail/vhosts/
 +</code>
 +
 +==== 10-mail.conf ====
 +<code bash>
 nano 10-mail.conf nano 10-mail.conf
 </code> </code>
Zeile 15: Zeile 26:
 </code> </code>
 </hidden> </hidden>
-\\ 
  
-<code bash> 
-mkdir -p /var/mail/vhosts/meinekleinefarm.net 
-mkdir -p /var/mail/vhosts/mgs-ullrich.de 
- 
-#groupadd -g 5000 vmail 
-#useradd -r -g vmail -u 5000 vmail -d /var/mail/vhosts -c "Dovecot virtual mail user" 
-#chown -R vmail:vmail /var/mail/vhosts/ 
-chown -R mail:mail /var/mail/vhosts/ 
  
 +==== 10-master.conf ====
 +<code bash>
 nano 10-master.conf nano 10-master.conf
 </code> </code>
Zeile 56: Zeile 60:
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== 10-auth.conf ====
 <code bash> <code bash>
 nano 10-auth.conf nano 10-auth.conf
Zeile 75: Zeile 81:
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== 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=/var/mail/vhosts/%d/%n+  args = uid=vmail gid=vmail home=/var/mail/vhosts/%d/%n
 } }
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== Dovecot Users PasswdFile ====
 <code bash> <code bash>
 doveadm pw -l doveadm pw -l
Zeile 113: Zeile 123:
 </hidden> </hidden>
  
-=== 10-ssl.conf ===+ 
 +==== 10-ssl.conf ====
 <code bash> <code bash>
 nano 10-ssl.conf nano 10-ssl.conf
Zeile 119: Zeile 130:
 <hidden 10-ssl.conf -edit> <hidden 10-ssl.conf -edit>
   * <code txt>   * <code txt>
 +ssl = required
 +ssl_cert = </etc/letsencrypt/live/meinekleinefarm.net/fullchain.pem
 +ssl_key = </etc/letsencrypt/live/meinekleinefarm.net/privkey.pem
 +</code>
 +</hidden>
  
 +
 +==== 10-logging.conf ====
 +<code bash>
 +nano 10-logging.conf
 +</code>
 +<hidden 10-logging.conf -edit>
 +  * <code txt>
 +log_path = /var/log/dovecot.log
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== 15-mailboxes.conf ====
 <code bash> <code bash>
-nano +nano 15-mailboxes.conf
 </code> </code>
-<hidden 123 -edit>+<hidden 15-mailboxes.conf -edit>
   * <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:
 +  #mailbox virtual/All {
 +  #  special_use = \All
 +  #  comment = All my messages
 +  #}
 +
 +  # If you have a virtual "Flagged" mailbox:
 +  mailbox virtual/Flagged {
 +    special_use = \Flagged
 +    auto=no
 +    comment = All my flagged messages
 +  }
 +}
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== Setup logrotate ====
 <code bash> <code bash>
-nano +nano /etc/logrotate.d/dovecot
 </code> </code>
-<hidden 123 -edit>+<hidden logrotate.d/dovecot -edit>
   * <code txt>   * <code txt>
 +/var/log/dovecot*.log { 
 +  missingok 
 +  notifempty 
 +  delaycompress 
 +  sharedscripts 
 +  postrotate 
 +    doveadm log reopen 
 +  endscript 
 +}
 </code> </code>
 </hidden> </hidden>
-\\+ 
 + 
 +==== Fin ==== 
 +<code bash> 
 +systemctl restart dovecot 
 +</code>
dovecot_installation.1478724284.txt.gz · Zuletzt geändert: 2016/11/09 20:44 von xenadmin