7.7. Configuring IMAP and POP3 Email
Having mail delivered to the system mailboxes in /var/spool/mail is fineas long as the users are using an MUA running on the Fedora system. If a user is running his MUA on another systemEvolution on another Fedora system in the local network, or perhaps Outlook on a Windows machinethen the user needs IMAP or POP3 access to the remote mailbox.
7.7.1. How Do I Do That?
126.96.36.199. Creating your own certificate
[ req ] default_bits = 1024 encrypt_key = yes distinguished_name = req_dn x509_extensions = cert_type prompt = no [ req_dn ] # country (2 letter code) #C=FI # State or Province Name (full name) #ST= # Locality Name (eg. city) #L=Helsinki # Organization (eg. company) #O=Dovecot # Organizational Unit Name (eg. section) OU=IMAP server # Common Name (*.example.com is also possible) CN=imap.example.com # E-mail contact emailAddressemail@example.com [ cert_type ] nsCertType = server
Edit these two lines to contain the hostname of the system and the mail administrator's email address:
# Common Name (*.example.com is also possible) CN=bluesky.fedorabook.com # E-mail contact emailAddressfirstname.lastname@example.org
# SSLDIR=/etc/pki/dovecot /usr/share/doc/dovecot-1.0/examples/mkcert.sh
188.8.131.52. Disabling Encryption
# Disable SSL/TLS support. #ssl_disable = no
Uncomment this line and change the value to yes:
# Disable SSL/TLS support. ssl_disable = yes
184.108.40.206. Starting Dovecot
# service dovecot start
7.7.2. How Does It Work?
Dovecot enables MUAs to access mailboxes over a network connection using the POP3 or IMAP protocols. POP3 is primarily used to fetch mail from a mailbox so that it can be used elsewhere; IMAP is used to manipulate email messages and folders while leaving them on the server.
$ telnet bluesky.fedorabook.com pop3 Trying 172.16.97.102... Connected to 172.16.97.102 (172.16.97.102). Escape character is '^]'. +OK Dovecot ready. USER chris +OK PASS bigsecret +OK Logged in. LIST +OK 2 messages: 1 615 2 609 . RETR 1 +OK 616 octets Return-Path: <email@example.com> Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by localhost.localdomain (8.13.5/8.13.5) with ESMTP id k232Hf26026693 for <firstname.lastname@example.org>; Thu, 2 Mar 2006 21:17:41 -0500 Received: (from root@localhost) by localhost.localdomain (8.13.5/8.13.5/Submit) id k232HfOb026692 for chris; Thu, 2 Mar 2006 21:17:41 -0500 Date: Thu, 2 Mar 2006 21:17:41 -0500 From: Jason Smith <email@example.com> Message-Id: <200603030217.k232HfOb026692@localhost.localdomain> To: firstname.lastname@example.org Subject: Book Cover Nice! . QUIT +OK Logging out.
IMAP is also human-readable, but a bit more complex.
In its default configuration, Dovecot uses the input mailboxes in /var/spool/mail as the IMAP INBOX folder and the POP3 data source. This ensures that other applications (such as a local MUA like Evolution) can be used to access the same messages.
7.7.3. What About...
220.127.116.11. ...IMAP folders other than the INBOX?
7.7.4. Where Can I Learn More?