1. Dinesh Kumar
  2. iredmail

Commits

Zhang Huangbin  committed e28b88a

Enable address extension in Dovecot LDA.

  • Participants
  • Parent commits f2f31b2
  • Branches default

Comments (0)

Files changed (6)

File iRedMail/functions/dovecot1.sh

View file
 ${CONF_MSG}
 #1   5   *   *   *   ${DOVECOT_BIN} --exec-mail ext $(eval ${LIST_FILES_IN_PKG} dovecot | grep 'expire-tool$')
 EOF
-    elif [ X"${DISTRO}" == X"UBUNTU" -o X"${DISTRO}" == X"DEBIAN" ]; then
-        :
-    else
-        :
     fi
 
     cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF
 # Use dovecot deliver program as LDA.
 dovecot unix    -       n       n       -       -      pipe
-    flags=DRhu user=${VMAIL_USER_NAME}:${VMAIL_GROUP_NAME} argv=${DOVECOT_DELIVER} -f \${sender} -d \${user}@\${domain}
+    flags=DRhu user=${VMAIL_USER_NAME}:${VMAIL_GROUP_NAME} argv=${DOVECOT_DELIVER} -f \${sender} -d \${user}@\${domain} -m \${extension}
 EOF
 
     if [ X"${KERNEL_NAME}" == X"Linux" ]; then

File iRedMail/functions/dovecot2.sh

View file
     cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF
 # Use dovecot deliver program as LDA.
 dovecot unix    -       n       n       -       -      pipe
-    flags=DRhu user=${VMAIL_USER_NAME}:${VMAIL_GROUP_NAME} argv=${DOVECOT_DELIVER} -f \${sender} -d \${user}@\${domain}
+    flags=DRhu user=${VMAIL_USER_NAME}:${VMAIL_GROUP_NAME} argv=${DOVECOT_DELIVER} -f \${sender} -d \${user}@\${domain} -m \${extension}
 EOF
 
     if [ X"${KERNEL_NAME}" == X"Linux" ]; then

File iRedMail/functions/packages_freebsd.sh

View file
         ENABLED_SERVICES="${ENABLED_SERVICES} mysql-server"
     fi
 
-    # Dovecot v1.2.x. REQUIRED.
+    # Dovecot v2.0.x. REQUIRED.
     cat > /var/db/ports/dovecot2/options <<EOF
 WITH_KQUEUE=true
 WITH_SSL=true

File iRedMail/functions/policyd.sh

View file
 
     # Setup postfix for recipient throttle.
     cat >> ${POSTFIX_FILE_MAIN_CF} <<EOF
-#
-# Uncomment the following line to enable policyd sender throttle.
-#
+# Uncomment below line to enable policyd sender throttle.
 #smtpd_end_of_data_restrictions = check_policy_service inet:${POLICYD_THROTTLE_BINDHOST}:${POLICYD_THROTTLE_BINDPORT}
 EOF
 

File iRedMail/functions/postfix.sh

View file
 
         # Set postfix:myhostname in /etc/sysconfig/postfix.
         perl -pi -e 's#^(POSTFIX_MYHOSTNAME=).*#${1}"$ENV{'HOSTNAME'}"#' ${POSTFIX_SYSCONFIG_CONF}
-        # postfix:inet_protocols
-        perl -pi -e 's#^(POSTFIX_INET_PROTO=).*#${1}"ipv4"#' ${POSTFIX_SYSCONFIG_CONF}
         #postfix:message_size_limit
         perl -pi -e 's#^(POSTFIX_ADD_MESSAGE_SIZE_LIMIT=).*#${1}"$ENV{'MESSAGE_SIZE_LIMIT'}"#' ${POSTFIX_SYSCONFIG_CONF}
 
         postconf -e mydomain="${HOSTNAME}"
     fi
 
-    postconf -e inet_protocols="ipv4"
+    postconf -e inet_protocols="all"
     postconf -e mydestination="\$myhostname, localhost, localhost.localdomain, localhost.\$myhostname"
     postconf -e biff="no"   # Do not notify local user.
     postconf -e inet_interfaces="all"

File iRedMail/pkgs/get_all.sh

View file
     zypper refresh
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     # Force update.
-    ECHO_INFO "Execute 'apt-get update' ..."
+    ECHO_INFO "Resynchronizing the package index files (apt-get update) ..."
     ${APTGET} update
 elif [ X"${DISTRO}" == X'GENTOO' ]; then
     # qlist is used to list all installed portages (qlist --installed).