summaryrefslogtreecommitdiffstats
path: root/doc/wiki/LDA.Qmail.txt
blob: d13756dda3e739283da89697849545663924badb (plain)
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
Dovecot LDA with Qmail
======================

System users
------------

The delivery command you need is

---%<-------------------------------------------------------------------------
|/var/qmail/bin/preline -f /usr/local/libexec/dovecot/dovecot-lda
---%<-------------------------------------------------------------------------

(You may need to adjust the paths to match your qmail and dovecot
installations.)  The 'preline' command will add the 'Return-Path:' and
'Delivered-To:' lines, because 'dovecot-lda' doesn't recognize qmail's
environment variables.

For site-wide usage, put that in '/var/qmail/control/defaultdelivery' (assuming
you installed qmail according to LWQ [http://www.lifewithqmail.org/lwq.html]). 
Or, save it as '.qmail' in selected users' home directories.

Virtual users
-------------

Add the '-d' parameter to specify the destination username:

---%<-------------------------------------------------------------------------
|/var/qmail/bin/preline -f /usr/local/libexec/dovecot/dovecot-lda -d $EXT@$USER
---%<-------------------------------------------------------------------------

(This file was created from the wiki on 2019-06-19 12:42)