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
|
#!/bin/sh
set -a
# The mail domain.
MAIL_DOMAIN=example.com
# How messages are delivered to mailboxes.
# See the MailIntegration/LocalSMTP and MailIntegration/LMTP documents.
# Choices: LocalSMTP, LMTP
MAILBOX_DELIVERY=LocalSMTP
# Whether a special lmtp group will be used even with local SMTP.
# See the SystemUsers document.
# Choices: yes, no
MAILBOX_DELIVERY_LMTP_GROUP=no
# The location of the LMTP socket used to communicate with a mail
# storage solution.
LMTP_SOCKET=/var/run/cyrus/socket/lmtp
# Whether local system users are supported.
# See the MailIntegration/LocalSMTP document.
# Choices: yes, no
LOCAL_SYSTEM_USERS=no
# How the users are managed.
# See the MailIntegration/Simple and MailIntegration/LDAP documents.
# Choices: Simple, LDAP
USER_DATABASE=Simple
# LDAP-specific details.
# See the MailIntegration/LDAP document.
# Choices: ldap, ldaps
LDAP_SCHEME=ldap
LDAP_HOST=localhost
LDAP_PORT=
LDAP_BASE_DN="dc=example,dc=com"
LDAP_SERVICE_BIND_DN="uid=imip-agent,ou=Special Users,dc=example,dc=com"
LDAP_SERVICE_PASSWORD=
# Computed values. Do not edit!
MAIL_DOMAIN_QUOTED=`echo $MAIL_DOMAIN | sed 's/\./\\\./g'`
if [ "$MAILBOX_DELIVERY" = 'LocalSMTP' ]; then
MAILBOX_DELIVERY_OPTIONS="-L"
if [ "$MAILBOX_DELIVERY_LMTP_GROUP" = 'yes' ]; then
MAILBOX_DELIVERY_GROUP=lmtp
else
MAILBOX_DELIVERY_GROUP=www-data
fi
else
MAILBOX_DELIVERY_OPTIONS="-l $LMTP_SOCKET"
MAILBOX_DELIVERY_GROUP=lmtp
fi
if [ "$LOCAL_SYSTEM_USERS" = 'yes' ]; then
POSTFIX_LOCAL_SYSTEM_ENABLE=
else
POSTFIX_LOCAL_SYSTEM_ENABLE=#
fi
if [ ! "$LDAP_PORT" ]; then
if [ "$LDAP_SCHEME" = 'ldaps' ]; then
LDAP_PORT=636
else
LDAP_PORT=389
fi
fi
if [ "$USER_DATABASE" = 'Simple' ]; then
APACHE_LDAP_ENABLE=#
APACHE_SIMPLE_ENABLE=
else
APACHE_LDAP_ENABLE=
APACHE_SIMPLE_ENABLE=#
fi
# Substituted variables.
SUBSTITUTED='$MAIL_DOMAIN $MAIL_DOMAIN_QUOTED \
$MAILBOX_DELIVERY_OPTIONS $MAILBOX_DELIVERY_GROUP \
$APACHE_LDAP_ENABLE $APACHE_SIMPLE_ENABLE \
$POSTFIX_LOCAL_SYSTEM_ENABLE \
$LDAP_SCHEME $LDAP_HOST $LDAP_PORT $LDAP_BASE_DN $LDAP_SERVICE_BIND_DN $LDAP_SERVICE_PASSWORD'
|