Installation Dovecot

Installation

cd /usr/ports/mail/dovecot2
make install clean

Optionen

lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq dovecot-2.1.15 qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
x lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk x
x x [x] DOCS      Build and/or install documentation                         x x
x x [x] EXAMPLES  Build and/or install examples                              x x
x x [ ] GSSAPI    GSSAPI support                                             x x
x x [x] KQUEUE    kqueue(2) support                                          x x
x x [ ] LDAP      LDAP support                                               x x
x x [ ] LIBWRAP   TCP wrapper support                                        x x
x x [ ] LUCENE    CLucene FTS support                                        x x
x x [x] MYSQL     MySQL database support                                     x x
x x [ ] PGSQL     PostgreSQL database support                                x x
x x [ ] SOLR      Solr FTS support                                           x x
x x [ ] SQLITE    SQLite database support                                    x x
x x [x] SSL       SSL protocol support                                       x x
x x [ ] VPOPMAIL  vpopmail support                                           x x

Installation Dovecot Sieve

cd /usr/ports/mail/dovecot2-pigeonhole
make install clean

s

Konfiguration

Ich möchte, dass die Mails im Verzeichnis

/mail/USERNAME/mail 

gespeichert werden. Also mal alle Verzeichnisse erstellen:

mkdir -p /mail/
chown -R dovecot:dovecot /mail
chmod 0750 /mail

Konfigfiles kopieren:

cp -r /usr/local/share/doc/dovecot/example-config/* /usr/local/etc/dovecot/
cd /usr/local/etc/dovecot/conf.d
vi 10-mail.conf

Die Maillocation und Home Dir anpassen:

#mail_location =
mail_home =  /mail/%u
mail_location = maildir:~/mail

SSL Zertifikat erstellen

cd /etc/ssl
openssl req -new -x509 -nodes -out server.pem -keyout key.pem -days 3650

cd /usr/local/etc/dovecot/conf.d
vi 10-ssl.conf

ssl_cert =ssl_key =

Im rc.conf aktivieren:

vi /etc/rc.conf
#-----------------------------------------------#
# Mail System
#-----------------------------------------------#
dovecot_enable="YES"

Konfiguration anschauen/testen:

doveconf -n

# 2.1.15: /usr/local/etc/dovecot/dovecot.conf
# OS: FreeBSD 9.1-PRERELEASE amd64  
mail_home = /var/spool/imap/dovecot/%u
mail_location = maildir:~/mail
namespace inbox {
  inbox = yes
  location =
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix =
}
passdb {
  driver = pam
}
ssl_cert =
ssl_key =
userdb {
  driver = passwd
}

Dran denken, dass auch das Postfix Config File entsprechend angepasst werden muss, damit die Mails an den korrekten Ort delivered werden:

vi /usr/local/etc/postfix/main.cf

home_mailbox = mail/
mail_spool_directory = /mail

 

Starten / Testen

/usr/local/etc/rc.d/dovecot start

# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot ready.

# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN] Dovecot ready.

 

Weiteres:

  • http://www.ipsure.com/blog/2011/dovecot-setup-by-also-fixing-roundcube-quota-display-disk-usage-unknown-issues/
  • http://mhoran.wordpress.com/2012/01/25/setting-up-postfix-and-dovecot-to-play-nicely-with-mutt-mbox-maildir-and-freebsd/
  • http://daemon-notes.com/articles/mail/dovecot
  • *

    Du kannst diese HTML tags verwenden: <a> <abbr> <acronym> <b> <blockquote> <cite> <code> <del> <em> <i> <q> <s> <strike> <strong>

  • Kommentar-Feed für diesen Beitrag
nach oben