1 #!/bin/sh 2 3 set -a 4 5 # The mail domain. 6 7 MAIL_DOMAIN=example.com 8 9 # How messages are delivered to mailboxes. 10 # See the MailIntegration/LocalSMTP and MailIntegration/LMTP documents. 11 # Choices: LocalSMTP, LMTP 12 13 MAILBOX_DELIVERY=LocalSMTP 14 15 # Whether local system users are supported. 16 # See the MailIntegration/LocalSMTP document. 17 # Choices: yes, no 18 19 LOCAL_SYSTEM_USERS=no 20 21 # How the users are managed. 22 # See the MailIntegration/Simple and MailIntegration/LDAP documents. 23 # Choices: Simple, LDAP 24 25 USER_DATABASE=Simple 26 27 # LDAP-specific details. 28 # See the MailIntegration/LDAP document. 29 # Choices: ldap, ldaps 30 31 LDAP_SCHEME=ldap 32 LDAP_HOST=localhost 33 LDAP_PORT= 34 LDAP_BASE_DN="ou=People,dc=example,dc=com" 35 LDAP_SERVICE_BIND_DN="uid=imip-agent,ou=Special Users,dc=example,dc=com" 36 LDAP_SERVICE_PASSWORD= 37 38 39 40 # Computed values. Do not edit! 41 42 MAIL_DOMAIN_QUOTED=`echo $MAIL_DOMAIN | sed 's/\./\\\./g'` 43 44 if [ "$MAILBOX_DELIVERY" = 'LocalSMTP' ]; then 45 MAILBOX_DELIVERY_OPTIONS="-L" 46 MAILBOX_DELIVERY_GROUP=www-data 47 else 48 MAILBOX_DELIVERY_OPTIONS="-l LMTP_SOCKET" 49 MAILBOX_DELIVERY_GROUP=lmtp 50 fi 51 52 if [ "$LOCAL_SYSTEM_USERS" = 'yes' ]; then 53 POSTFIX_LOCAL_SYSTEM_ENABLE= 54 else 55 POSTFIX_LOCAL_SYSTEM_ENABLE=# 56 fi 57 58 if [ ! "$LDAP_PORT" ]; then 59 if [ "$LDAP_SCHEME" = 'ldaps' ]; then 60 LDAP_PORT=636 61 else 62 LDAP_PORT=389 63 fi 64 fi 65 66 67 68 # Substituted variables. 69 70 SUBSTITUTED='$MAIL_DOMAIN $MAIL_DOMAIN_QUOTED \ 71 $MAILBOX_DELIVERY_OPTIONS $MAILBOX_DELIVERY_GROUP \ 72 $POSTFIX_LOCAL_SYSTEM_ENABLE \ 73 $LDAP_SCHEME $LDAP_HOST $LDAP_PORT $LDAP_BASE_DN $LDAP_SERVICE_BIND_DN $LDAP_SERVICE_PASSWORD'