File: MailboxIntegration

package info (click to toggle)
imip-agent 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,056 kB
  • sloc: python: 9,888; sh: 4,480; sql: 144; makefile: 8
file content (116 lines) | stat: -rw-r--r-- 3,786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
= Mailbox Integration =

Use of the imip-agent software should not affect the solutions chosen to store
mail received by your mail system. However, the software does support direct
connections to mail storage solutions employing the LMTP protocol. See the
[[../MailIntegration/LMTP|LMTP guide]] for more information.

It can, however, be useful to see how delivery to various kinds of mailboxes
and mail storage is done, in case you have not already decided on a particular
solution. Tested solutions are as follows:

{{{#!table
'''Solution''' || '''Details'''
==
[[http://www.cyrusimap.org/|Cyrus]] is a mail storage system that exposes
mailboxes using the [[http://tools.ietf.org/html/rfc3501|IMAP]] protocol
||
The Cyrus documentation provides a guide on integrating Cyrus with
[[http://www.cyrusimap.org/docs/cyrus-imapd/2.5.6/install-configure.php#mta|MTAs]].
==
[[http://dovecot.org/|Dovecot]] is a mail server that supports IMAP and
[[http://tools.ietf.org/html/rfc1939|POP3]]. It can be configured to serve
mail stored in traditional mailbox formats
||
The Dovecot documentation provides guides for integrating Dovecot with
[[http://wiki2.dovecot.org/LMTP/Exim|Exim]] and with
[[http://wiki2.dovecot.org/HowTo/PostfixDovecotLMTP|Postfix]].
}}}

== Exim ==

Example configuration files for Exim are distributed in `conf/exim/lmtp`:

{{{#!table
'''File''' || '''Purpose'''
==
`30_exim4-config_cyrus_lmtp`
|| Delivers messages to Cyrus via LMTP
==
`30_exim4-config_dovecot_lmtp`
|| Delivers messages to Dovecot via LMTP
}}}

On Debian systems, these files would be copied into the `/etc/exim4/conf.d/transport`
directory.

The mailbox integration for local system users is also found in the
`conf/exim/lmtp` directory:

{{{#!table
'''File''' || '''Purpose'''
==
`890_exim4-config_cyrus_lmtp_local_system`
|| Routes messages for local system users to Cyrus
==
`890_exim4-config_dovecot_lmtp_local_system`
|| Routes messages for local system users to Dovecot
}}}

Meanwhile, both the `conf/exim/ldap` and `conf/exim/simple` directories
provide the following files. The appropriate file for the chosen configuration
should be used:

{{{#!table
'''File''' || '''Purpose'''
==
`890_exim4-config_cyrus_lmtp_local_lmtp`
|| Routes messages for local virtual users to Cyrus
==
`890_exim4-config_dovecot_lmtp_local_lmtp`
|| Routes messages for local virtual users to Dovecot
}}}

On Debian systems, these files would be copied into the `/etc/exim4/conf.d/router`
directory. Depending on whether system user identities are to be employed for mail
or whether genuine virtual identities (not connected to the system) are to be
employed, one type (`local_system` or `local_lmtp`) of these files should be
selected.

== Postfix ==

Example configuration files for Postfix are distributed in `conf/postfix/lmtp`:

{{{#!table
'''File''' || '''Purpose'''
==
`lmtp_generic`
|| Configures LMTP delivery for local recipients (for installation into
.. `/etc/postfix`)
==
`master.cf.items`
|| Enables LMTP delivery for local recipients
==
`transport.items`
|| Defines LMTP delivery methods for local recipients
}}}

These files provide example definitions for the `master.cf` and `transport`
files that typically reside under `/etc/postfix`. Their contents can be
merged with those files as appropriate.

== Permissions ==

Note that remarks about permissions management in the
[[../MailIntegration/LMTP|LMTP guide]], concerning communication with mail
storage systems such as Cyrus, also apply when getting MTAs such as Postfix
to communicate with those systems. Consequently, it may be necessary to add
the dedicated MTA system user to a specially-created `lmtp` group. For
example:

{{{
adduser postfix lmtp
}}}

See the [[../SystemUsers|system users guide]] for more information on the `lmtp`
group.