mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-03 12:14:12 +01:00
Documenation update (LMTP).
This commit is contained in:
@@ -197,13 +197,48 @@ SQLite users
|
|||||||
|
|
||||||
Replace values between ``<>`` with yours.
|
Replace values between ``<>`` with yours.
|
||||||
|
|
||||||
LDA
|
LMTP
|
||||||
===
|
====
|
||||||
|
|
||||||
The LDA is activated by default but you must define a *postmaster*
|
`Local Mail Transport Protocol
|
||||||
address. Open the :file:`conf.d/15-lda.conf` file modify the following line::
|
<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:
|
.. _dovecot_quota:
|
||||||
|
|
||||||
@@ -454,8 +489,7 @@ Use the following configuration in the :file:`/etc/postfix/main.cf` file
|
|||||||
(this is just one possible configuration)::
|
(this is just one possible configuration)::
|
||||||
|
|
||||||
# Stuff before
|
# Stuff before
|
||||||
virtual_transport = dovecot
|
virtual_transport = lmtp:unix:private/dovecot-lmtp
|
||||||
dovecot_destination_recipient_limit = 1
|
|
||||||
|
|
||||||
relay_domains =
|
relay_domains =
|
||||||
virtual_mailbox_domains = <driver>:/etc/postfix/sql-domains.cf
|
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.
|
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.
|
Restart Postfix.
|
||||||
|
|||||||
Reference in New Issue
Block a user