# HG changeset patch # User Paul Boddie # Date 1446332299 -3600 # Node ID 7105cc03077e853aee1523983437a147d489ada6 # Parent b56bfee3fff15ed2acde02675ff8b3f6d65b1617 Attempted to get local SMTP routing working in Postfix for the simple method. diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/lmtp/main.cf.example --- a/conf/postfix/lmtp/main.cf.example Sat Oct 31 22:13:56 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,7 +0,0 @@ -# Enable one of these... - -# For Cyrus: -#virtual_transport = lmtp:unix:/var/run/cyrus/socket/lmtp - -# For Dovecot: -#virtual_transport = lmtp:unix:/var/run/dovecot/lmtp diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/lmtp/master.cf.items --- a/conf/postfix/lmtp/master.cf.items Sat Oct 31 22:13:56 2015 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -lmtp unix - - n - - lmtp diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/simple/lmtp_generic --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/simple/lmtp_generic Sat Oct 31 23:58:19 2015 +0100 @@ -0,0 +1,1 @@ +/(.*)@local\.example\.com/ ${1}@example.com diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/simple/main.cf.example --- a/conf/postfix/simple/main.cf.example Sat Oct 31 22:13:56 2015 +0100 +++ b/conf/postfix/simple/main.cf.example Sat Oct 31 23:58:19 2015 +0100 @@ -1,7 +1,10 @@ -# Uncomment the virtual_alias_maps_local_system entry to support local system user delivery. +# Uncomment the virtual_alias_maps_local_lmtp entry to support LMTP delivery, +# or the virtual_alias_maps_local_system entry to support local system user +# delivery. virtual_alias_maps = $alias_maps, hash:/etc/postfix/virtual, hash:/etc/postfix/simple/virtual_alias_maps + #, hash:/etc/postfix/simple/virtual_alias_maps_local_lmtp #, hash:/etc/postfix/simple/virtual_alias_maps_local_system sender_bcc_maps = hash:/etc/postfix/simple/virtual_alias_maps_people_outgoing diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/simple/master.cf.items --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/simple/master.cf.items Sat Oct 31 23:58:19 2015 +0100 @@ -0,0 +1,2 @@ +lmtp unix - - n - - lmtp + -o lmtp_generic_maps=regexp:/etc/postfix/simple/lmtp_generic diff -r b56bfee3fff1 -r 7105cc03077e conf/postfix/simple/transport.items --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/simple/transport.items Sat Oct 31 23:58:19 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 b56bfee3fff1 -r 7105cc03077e conf/postfix/simple/virtual_alias_maps_local_lmtp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/conf/postfix/simple/virtual_alias_maps_local_lmtp Sat Oct 31 23:58:19 2015 +0100 @@ -0,0 +1,2 @@ +local+paul.boddie@example.com paul.boddie@local.example.com +local+vincent.vole@example.com vincent.vole@local.example.com