mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Merge branch '1.1.x'
This commit is contained in:
@@ -197,13 +197,48 @@ SQLite users
|
||||
|
||||
Replace values between ``<>`` with yours.
|
||||
|
||||
LDA
|
||||
===
|
||||
LMTP
|
||||
====
|
||||
|
||||
The LDA is activated by default but you must define a *postmaster*
|
||||
address. Open the :file:`conf.d/15-lda.conf` file modify the following line::
|
||||
`Local Mail Transport Protocol
|
||||
<http://en.wikipedia.org/wiki/Local_Mail_Transfer_Protocol>`_ is used
|
||||
to let Postfix deliver messages to Dovecot.
|
||||
|
||||
postmaster_address = postmaster@<domain>
|
||||
First, make sure the protocol is activated by looking at the
|
||||
``protocols`` setting (generally inside
|
||||
:file:`dovecot.conf`). It should be similar to the following example::
|
||||
|
||||
protocols = imap pop3 lmtp
|
||||
|
||||
Then, open the :file:`conf.d/10-master.conf`, look for ``lmtp``
|
||||
service definition and add the following content inside::
|
||||
|
||||
service lmtp {
|
||||
# stuff before
|
||||
unix_listener /var/spool/postfix/private/dovecot-lmtp {
|
||||
mode = 0600
|
||||
user = postfix
|
||||
group = postfix
|
||||
}
|
||||
# stuff after
|
||||
}
|
||||
|
||||
We assume here that Postfix is *chrooted* within
|
||||
:file:`/var/spool/postfix`.
|
||||
|
||||
Finally, open the :file:`conf.d/20-lmtp.conf` and modify it as follows::
|
||||
|
||||
protocol lmtp {
|
||||
postmaster_address = postmaster@<domain>
|
||||
mail_plugins = $mail_plugins quota sieve
|
||||
}
|
||||
|
||||
Replace ``<domain>`` by the appropriate value.
|
||||
|
||||
.. note::
|
||||
|
||||
If you don't plan to apply quota or to use filters, just adapt the
|
||||
content of the ``mail_plugins`` setting.
|
||||
|
||||
.. _dovecot_quota:
|
||||
|
||||
@@ -454,8 +489,7 @@ Use the following configuration in the :file:`/etc/postfix/main.cf` file
|
||||
(this is just one possible configuration)::
|
||||
|
||||
# Stuff before
|
||||
virtual_transport = dovecot
|
||||
dovecot_destination_recipient_limit = 1
|
||||
virtual_transport = lmtp:unix:private/dovecot-lmtp
|
||||
|
||||
relay_domains =
|
||||
virtual_mailbox_domains = <driver>:/etc/postfix/sql-domains.cf
|
||||
@@ -474,10 +508,4 @@ Use the following configuration in the :file:`/etc/postfix/main.cf` file
|
||||
|
||||
Replace ``<driver>`` by the name of the database you use.
|
||||
|
||||
Then, edit the :file:`/etc/postfix/master.cf` file and add the following
|
||||
definition at the end::
|
||||
|
||||
dovecot unix - n n - - pipe
|
||||
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
|
||||
|
||||
Restart Postfix.
|
||||
|
||||
Reference in New Issue
Block a user