On 14-10-01 08:05 AM, Alberto Mijares wrote:
Anybody willing to translate it to english?
On Wed, Oct 1, 2014 at 8:14 AM, Olivier Calzi <[email protected]> wrote:
This is more for french reader but few months ago i have wrote an article
for OpenSMTPD and i said that an another one will follow with more details
abouts IMAP & Webmail. I wrote it few months ago but it was just released
yesterday .
Any review or comments will be interesting.
http://www.unix-experience.fr/2014/serveur-dedie-serveur-mail/
1. Yes, I realize those aren't "images", but there's not much point in
translating code examples... from english to english!
2. Google translate actually does an acceptable job, but this didn't
take long, so...
-Adam
===START===
[Dedicated server] Mail server
Introduction
In this article, we will demonstrate how to deploy a mail server using
OpenSMTPD for SMTP, Dovecot for IMAP, and Roundcube for webmail.
OpenSMTPD has been covered _in a previous article_.
Dovecot is an IMAP and/or POP3 server. Dovecot has been covered
previously _here_.
We shall demonstrate the configuration of OpenSMTPD as well as Dovecot,
the tweaks to get them working, and the configuration of Roundcube on an
Nginx webserver, all running on FreeBSD 9.2.
Configuration
Firewall
Open the ports for IMAP, SMTP, et al. in pf.conf:
[image]
OpenSMTPD
OpenSMTPD v5.4.2:
[image]
This configuration stores mail in Maildir format, not mbox, for better
integration with Dovecot.
This means that there's sometimes a manual step when creating new users
- after adding or changing aliases in /etc/mail/alises, we must run
newaliases, which regenerates the OpenSMTPD aliases database at
/etc/mail/aliases.db.
Dovecot
Dovecot is an IMAP/POP3 server, and can be found in the OpenBSD ports
collection.
[Editor's note: I thought we were deploying on FreeBSD?]
We install it with this command:
[image]
Dovecot is configured to start at boot time by using a text edit to add
this line to /etc/rc.conf.local:
[image]
For more information about the pkg_scripts variable, see:
[image]
Since Dovecot configuration was covered in a previous article, we'll
only cover things that are new or different in this configuration.
We'll start with the file /etc/dovecot/dovecot.conf:
[image]
And the file /etc/dovecot/conf.d/10-logging.conf:
[image]
And the file /etc/dovecot/conf.d/10-ssl.conf:
[image]
By relying on default configuration values, Dovecot is now functional.
Dovecot will look for mail in /home/$user/.Maildir by default. The SSL
certificates can be generated by the script mentioned in the comments,
or can be generated manually by following any number of tutorials.
We can now manually start Dovecot with the following command:
[image]
RoundCube
RoundCube is a webmail system written in PHP. Its first stable release
was in 2008. RoundCube needs a database back-end, in this case we'll
use MySQL, and both RoundCube and MySQL will run on FreeBSD.
Installation
The typical way to install these packages:
[image]
RoundCube is installed into /usr/local/www/roundcube.
Configuration
Initial setup of Roundcube is done through a web browser, but we have to
configure a virtual server in nginx in order to get there.
[image]
A database userid, a database, and database rights must be set up before
configuring Roundcube, using these MySQL commands:
[image]
Before the RoundCube configuration PHP scripts are usable, DNS must be
configured to correspond with the Nginx configuration shown above.
Finally, navigate to the URL http://url-to-roundcube/installer in order
to configure SMTP, IMAP and database-related options.
We may have to configure the timezone explicitly for RoundCube, by
editing the date.timezone variable in php.ini:
[image]
We'll see how to deploy OwnCloud in a subsequent article. This article
has been part of the series dedicated to self-hosting dedicated services.
==END==
--
-Adam Thompson
[email protected]
Cell: +1 204 291-7950
Fax: +1 204 489-6515
--
You received this mail because you are subscribed to [email protected]
To unsubscribe, send a mail to: [email protected]