1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/conf/configure.example Sun Apr 17 18:59:06 2016 +0200
1.3 @@ -0,0 +1,73 @@
1.4 +#!/bin/sh
1.5 +
1.6 +set -a
1.7 +
1.8 +# The mail domain.
1.9 +
1.10 +MAIL_DOMAIN=example.com
1.11 +
1.12 +# How messages are delivered to mailboxes.
1.13 +# See the MailIntegration/LocalSMTP and MailIntegration/LMTP documents.
1.14 +# Choices: LocalSMTP, LMTP
1.15 +
1.16 +MAILBOX_DELIVERY=LocalSMTP
1.17 +
1.18 +# Whether local system users are supported.
1.19 +# See the MailIntegration/LocalSMTP document.
1.20 +# Choices: yes, no
1.21 +
1.22 +LOCAL_SYSTEM_USERS=no
1.23 +
1.24 +# How the users are managed.
1.25 +# See the MailIntegration/Simple and MailIntegration/LDAP documents.
1.26 +# Choices: Simple, LDAP
1.27 +
1.28 +USER_DATABASE=Simple
1.29 +
1.30 +# LDAP-specific details.
1.31 +# See the MailIntegration/LDAP document.
1.32 +# Choices: ldap, ldaps
1.33 +
1.34 +LDAP_SCHEME=ldap
1.35 +LDAP_HOST=localhost
1.36 +LDAP_PORT=
1.37 +LDAP_BASE_DN="ou=People,dc=example,dc=com"
1.38 +LDAP_SERVICE_BIND_DN="uid=imip-agent,ou=Special Users,dc=example,dc=com"
1.39 +LDAP_SERVICE_PASSWORD=
1.40 +
1.41 +
1.42 +
1.43 +# Computed values. Do not edit!
1.44 +
1.45 +MAIL_DOMAIN_QUOTED=`echo $MAIL_DOMAIN | sed 's/\./\\\./g'`
1.46 +
1.47 +if [ "$MAILBOX_DELIVERY" = 'LocalSMTP' ]; then
1.48 + MAILBOX_DELIVERY_OPTIONS="-L"
1.49 + MAILBOX_DELIVERY_GROUP=www-data
1.50 +else
1.51 + MAILBOX_DELIVERY_OPTIONS="-l LMTP_SOCKET"
1.52 + MAILBOX_DELIVERY_GROUP=lmtp
1.53 +fi
1.54 +
1.55 +if [ "$LOCAL_SYSTEM_USERS" = 'yes' ]; then
1.56 + POSTFIX_LOCAL_SYSTEM_ENABLE=
1.57 +else
1.58 + POSTFIX_LOCAL_SYSTEM_ENABLE=#
1.59 +fi
1.60 +
1.61 +if [ ! "$LDAP_PORT" ]; then
1.62 + if [ "$LDAP_SCHEME" = 'ldaps' ]; then
1.63 + LDAP_PORT=636
1.64 + else
1.65 + LDAP_PORT=389
1.66 + fi
1.67 +fi
1.68 +
1.69 +
1.70 +
1.71 +# Substituted variables.
1.72 +
1.73 +SUBSTITUTED='$MAIL_DOMAIN $MAIL_DOMAIN_QUOTED \
1.74 + $MAILBOX_DELIVERY_OPTIONS $MAILBOX_DELIVERY_GROUP \
1.75 + $POSTFIX_LOCAL_SYSTEM_ENABLE \
1.76 + $LDAP_SCHEME $LDAP_HOST $LDAP_PORT $LDAP_BASE_DN $LDAP_SERVICE_BIND_DN $LDAP_SERVICE_PASSWORD'