imip-agent

Annotated conf/configure.example

1465:0c623c86704f
2020-08-03 Paul Boddie Changed diagram font to sans-serif.
paul@1109 1
#!/bin/sh
paul@1109 2
paul@1109 3
set -a
paul@1109 4
paul@1109 5
# The mail domain.
paul@1109 6
paul@1109 7
MAIL_DOMAIN=example.com
paul@1109 8
paul@1109 9
# How messages are delivered to mailboxes.
paul@1109 10
# See the MailIntegration/LocalSMTP and MailIntegration/LMTP documents.
paul@1109 11
# Choices: LocalSMTP, LMTP
paul@1109 12
paul@1109 13
MAILBOX_DELIVERY=LocalSMTP
paul@1109 14
paul@1111 15
# Whether a special lmtp group will be used even with local SMTP.
paul@1111 16
# See the SystemUsers document.
paul@1111 17
# Choices: yes, no
paul@1111 18
paul@1111 19
MAILBOX_DELIVERY_LMTP_GROUP=no
paul@1111 20
paul@1111 21
# The location of the LMTP socket used to communicate with a mail
paul@1111 22
# storage solution.
paul@1111 23
paul@1111 24
LMTP_SOCKET=/var/run/cyrus/socket/lmtp
paul@1111 25
paul@1109 26
# Whether local system users are supported.
paul@1109 27
# See the MailIntegration/LocalSMTP document.
paul@1109 28
# Choices: yes, no
paul@1109 29
paul@1109 30
LOCAL_SYSTEM_USERS=no
paul@1109 31
paul@1109 32
# How the users are managed.
paul@1109 33
# See the MailIntegration/Simple and MailIntegration/LDAP documents.
paul@1109 34
# Choices: Simple, LDAP
paul@1109 35
paul@1109 36
USER_DATABASE=Simple
paul@1109 37
paul@1109 38
# LDAP-specific details.
paul@1109 39
# See the MailIntegration/LDAP document.
paul@1109 40
# Choices: ldap, ldaps
paul@1109 41
paul@1109 42
LDAP_SCHEME=ldap
paul@1109 43
LDAP_HOST=localhost
paul@1109 44
LDAP_PORT=
paul@1111 45
LDAP_BASE_DN="dc=example,dc=com"
paul@1109 46
LDAP_SERVICE_BIND_DN="uid=imip-agent,ou=Special Users,dc=example,dc=com"
paul@1109 47
LDAP_SERVICE_PASSWORD=
paul@1109 48
paul@1109 49
paul@1109 50
paul@1109 51
# Computed values. Do not edit!
paul@1109 52
paul@1109 53
MAIL_DOMAIN_QUOTED=`echo $MAIL_DOMAIN | sed 's/\./\\\./g'`
paul@1109 54
paul@1109 55
if [ "$MAILBOX_DELIVERY" = 'LocalSMTP' ]; then
paul@1109 56
    MAILBOX_DELIVERY_OPTIONS="-L"
paul@1111 57
    if [ "$MAILBOX_DELIVERY_LMTP_GROUP" = 'yes' ]; then
paul@1111 58
        MAILBOX_DELIVERY_GROUP=lmtp
paul@1111 59
    else
paul@1111 60
        MAILBOX_DELIVERY_GROUP=www-data
paul@1111 61
    fi
paul@1109 62
else
paul@1111 63
    MAILBOX_DELIVERY_OPTIONS="-l $LMTP_SOCKET"
paul@1109 64
    MAILBOX_DELIVERY_GROUP=lmtp
paul@1109 65
fi
paul@1109 66
paul@1109 67
if [ "$LOCAL_SYSTEM_USERS" = 'yes' ]; then
paul@1109 68
    POSTFIX_LOCAL_SYSTEM_ENABLE=
paul@1109 69
else
paul@1109 70
    POSTFIX_LOCAL_SYSTEM_ENABLE=#
paul@1109 71
fi
paul@1109 72
paul@1109 73
if [ ! "$LDAP_PORT" ]; then
paul@1109 74
    if [ "$LDAP_SCHEME" = 'ldaps' ]; then
paul@1109 75
        LDAP_PORT=636
paul@1109 76
    else
paul@1109 77
        LDAP_PORT=389
paul@1109 78
    fi
paul@1109 79
fi
paul@1109 80
paul@1115 81
if [ "$USER_DATABASE" = 'Simple' ]; then
paul@1115 82
    APACHE_LDAP_ENABLE=#
paul@1115 83
    APACHE_SIMPLE_ENABLE=
paul@1115 84
else
paul@1115 85
    APACHE_LDAP_ENABLE=
paul@1115 86
    APACHE_SIMPLE_ENABLE=#
paul@1115 87
fi
paul@1115 88
paul@1109 89
paul@1109 90
paul@1109 91
# Substituted variables.
paul@1109 92
paul@1109 93
SUBSTITUTED='$MAIL_DOMAIN $MAIL_DOMAIN_QUOTED \
paul@1109 94
 $MAILBOX_DELIVERY_OPTIONS $MAILBOX_DELIVERY_GROUP \
paul@1115 95
 $APACHE_LDAP_ENABLE $APACHE_SIMPLE_ENABLE \
paul@1109 96
 $POSTFIX_LOCAL_SYSTEM_ENABLE \
paul@1109 97
 $LDAP_SCHEME $LDAP_HOST $LDAP_PORT $LDAP_BASE_DN $LDAP_SERVICE_BIND_DN $LDAP_SERVICE_PASSWORD'