# HG changeset patch # User Paul Boddie # Date 1446334111 -3600 # Node ID 6195cb90cb0cc1e77e6d4fcec3e361a09a22bee4 # Parent 185546131948ef5711c80b0a12641abb66d305ac Provided a simple form of local SMTP routing for the LDAP integration method, albeit for virtual users only. diff -r 185546131948 -r 6195cb90cb0c conf/postfix/ldap/lmtp_generic --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/ldap/lmtp_generic Sun Nov 01 00:28:31 2015 +0100 @@ -0,0 +1,1 @@ +/^local+(.*)@example\.com$/ ${1}@example.com diff -r 185546131948 -r 6195cb90cb0c conf/postfix/ldap/master.cf.items --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/ldap/master.cf.items Sun Nov 01 00:28:31 2015 +0100 @@ -0,0 +1,2 @@ +lmtp unix - - n - - lmtp + -o lmtp_generic_maps=regexp:/etc/postfix/ldap/lmtp_generic diff -r 185546131948 -r 6195cb90cb0c conf/postfix/ldap/transport.items --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/ldap/transport.items Sun Nov 01 00:28:31 2015 +0100 @@ -0,0 +1,4 @@ +# Local delivery to Cyrus: +#local@example.com lmtp:unix:/var/run/cyrus/socket/lmtp +# Local delivery to Dovecot: +#local@example.com lmtp:unix:/var/run/dovecot/lmtp diff -r 185546131948 -r 6195cb90cb0c docs/wiki/MailIntegration--LDAP --- a/docs/wiki/MailIntegration--LDAP Sun Nov 01 00:20:47 2015 +0100 +++ b/docs/wiki/MailIntegration--LDAP Sun Nov 01 00:28:31 2015 +0100 @@ -61,8 +61,26 @@ `virtual_alias_maps_resources.cf` }}} +Where [[../LocalSMTP|local SMTP routing]] is being performed, the following +files are also useful: + +{{{#!table +'''File''' || '''Purpose''' +== +`lmtp_generic` +|| Configures LMTP delivery for local recipients +== +`master.cf.items` +|| Enables LMTP delivery for local recipients +== +`transport.items` +|| Defines LMTP delivery methods for local recipients +}}} + These files can be incorporated into the Postfix configuration. On Debian -systems, `main.cf.example` can be merged into `/etc/postfix/main.cf`, +systems, `master.cf.items` can be merged into `/etc/postfix/master.cf`, +`main.cf.example` can be merged into `/etc/postfix/main.cf`, +`transport.items` can be merged into `/etc/postfix/transport`, whereas the remaining files would be installed into `/etc/postfix/ldap`. The following files are common to LDAP and [[../Simple|simple]] integration