Zhang Huangbin avatar Zhang Huangbin committed 92bdab2

Drop openSUSE support. Sorry openSUSE users.

Comments (0)

Files changed (34)

iRedMail/ChangeLog

         + Debian 6 (squeeze). Please use Debian 7 (wheezy) instead.
         + OpenBSD 5.3. Please use OpenBSD 5.4 (released on 2013-11-01) instead.
 
-    * Drop support for below Linux distribution:
-        + Gentoo. Just few users chose Gentoo, so we decided to drop it to
-          reduce our workload and bring you better support for other supported
-          Linux/BSD distributions.
+    * Drop support for Gentoo Linux and openSUSE linux.
+      Just few users chose them, so we decided to drop it to reduce our
+      workload and bring you better support for supported Linux/BSD distributions.
 
     * Better support for installing iRedMail with remote MySQL server.
       Reference:

iRedMail/Documentations

     - Install iRedAdmin on Debian/Ubuntu:
       http://www.iredmail.org/admin_installation_debian.html
 
-    - Install iRedAdmin on OpenSuSE:
-      http://www.iredmail.org/admin_installation_opensuse.html
-
     - Install iRedAdmin on FreeBSD:
       http://www.iredmail.org/admin_installation_freebsd.html
 
    - Gentoo Linux:
      http://www.iredmail.org/install_iredmail_on_gentoo.html
 
-   - openSUSE:
-     http://www.iredmail.org/install_iredmail_on_opensuse.html
-
    - FreeBSD:
      http://www.iredmail.org/install_iredmail_on_freebsd.html
 

iRedMail/conf/amavisd

 
     export AMAVISD_DKIM_CONF="${AMAVISD_CONF}"
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    # Override global setting: user/group.
-    export AMAVISD_SYS_USER='vscan'
-    export AMAVISD_SYS_GROUP='vscan'
-    export AMAVISD_DKIM_DIR='/var/spool/amavis/dkim'
-
-    export AMAVISD_BIN='/usr/sbin/amavisd'
-    export AMAVISD_CONF='/etc/amavisd.conf'
-    export AMAVISD_DKIM_CONF='/etc/amavisd.conf'
-    export AMAVISD_RC_SCRIPT_NAME='amavis'
-    export AMAVISD_LDAP_SCHEMA_NAME='amavisd-new.schema'
-    export AMAVISD_VIRUSMAILS_DIR='/var/spool/amavis/virusmails'
-
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     # Debian 7 (wheezy) and Ubuntu 13.04 (raring) ships Amavisd-new-2.7
     if [ X"${DISTRO_CODENAME}" == X'precise' ]; then

iRedMail/conf/apache_php

     # ---- PHP ----
     export PHP_INI='/etc/php.ini'
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    # Apache configuration files.
-    export HTTPD_CONF_ROOT="/etc/apache2"
-    export HTTPD_CONF="${HTTPD_CONF_ROOT}/vhosts.d/vhost.conf"
-    export HTTPD_CONF_DIR="${HTTPD_CONF_ROOT}/conf.d"
-    export HTTPD_SSL_CONF_SAMPLE="${HTTPD_CONF_ROOT}/vhosts.d/vhost-ssl.template"
-    # Copy ${HTTPD_SSL_CONF_SAMPLE} as ${HTTPD_SSL_CONF}.
-    export HTTPD_SSL_CONF="${HTTPD_CONF_ROOT}/vhosts.d/vhost-ssl.conf"
-    # /etc/sysconfig/apache2
-    export HTTPD_SYSCONFIG_CONF="${ETC_SYSCONFIG_DIR}/apache2"
-
-    # Web data.
-    export HTTPD_SERVERROOT='/srv/www'
-    export HTTPD_DOCUMENTROOT="${HTTPD_SERVERROOT}/htdocs"
-
-    # Daemon user.
-    export HTTPD_USER='wwwrun'
-    export HTTPD_GROUP='www'
-
-    # Log file location.
-    export HTTPD_LOG_ACCESSLOG='/var/log/apache2/access_log'
-    export HTTPD_LOG_ERRORLOG='/var/log/apache2/error_log'
-
-    # ---- PHP ----
-    export PHP_INI='/etc/php5/apache2/php.ini'
-
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     # Apache configuration files.
     export HTTPD_CONF_ROOT="/etc/apache2"

iRedMail/conf/awstats

     export AWSTATS_CSS_DIR="${AWSTATS_HTTPD_ROOT}/css"
     export AWSTATS_JS_DIR="${AWSTATS_HTTPD_ROOT}/js"
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    export AWSTATS_CONF_SAMPLE="${AWSTATS_CONF_DIR}/awstats.web.conf"
-    export AWSTATS_HTTPD_ROOT="${HTTPD_SERVERROOT}/cgi-bin"
-    export AWSTATS_ICON_DIR="/usr/share/awstats/icon"
-    export AWSTATS_CSS_DIR="/usr/share/awstats/css"
-    export AWSTATS_JS_DIR="/usr/share/awstats/js"
-
-    # This setting will be reset in functions/awstats.sh.
-    export AWSTATS_CGI_DIR="${AWSTATS_HTTPD_ROOT}"
-
-    # Orverride default settings.
-    export AWSTATS_CONF_WEB="${AWSTATS_CONF_SAMPLE}"
-    export AWSTATS_CONF_MAIL="${AWSTATS_CONF_DIR}/awstats.smtp.conf"
 elif [ X"${DISTRO}" == X"UBUNTU" -o X"${DISTRO}" == X"DEBIAN" ]; then
     export AWSTATS_CONF_SAMPLE="${AWSTATS_CONF_DIR}/awstats.conf"
     export AWSTATS_HTTPD_ROOT="/usr/share/awstats"

iRedMail/conf/clamav

     # Freshclam.
     export FRESHCLAM_INIT_FILE_SAMPLE="${SAMPLE_DIR}/freshclam.init"
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    export CLAMAV_FRESHCLAMD_RC_SCRIPT_NAME='freshclam'
-
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     export CLAMAV_CLAMD_RC_SCRIPT_NAME='clamav-daemon'
     export CLAMAV_FRESHCLAMD_RC_SCRIPT_NAME='clamav-freshclam'

iRedMail/conf/cluebringer

 export CLUEBRINGER_LOGROTATE_FILE='/etc/logrotate.d/policyd'
 export CLUEBRINGER_LOG_FILE='/var/log/cbpolicyd.log'
 
-if [ X"${DISTRO}" == X"RHEL" -o X"${DISTRO}" == X'SUSE' ]; then
-    export PKG_CLUEBRINGER='cluebringer'
-    export CLUEBRINGER_RC_SCRIPT_NAME='cbpolicyd'
-    export CLUEBRINGER_CONF='/etc/policyd/cluebringer.conf'
-    export CLUEBRINGER_WEBUI_CONF="/etc/policyd/webui.conf"
-    export CLUEBRINGER_PID_FILE='/var/run/cbpolicyd.pid'
-    export CLUEBRINGER_HTTPD_ROOT='/usr/share/cluebringer/webui'
-
-    # Override default setting.
-    export CLUEBRINGER_USER_HOME='/home/cbpolicyd'
-
-elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
+if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     export PKG_CLUEBRINGER='postfix-cluebringer'
     export CLUEBRINGER_CONF='/etc/cluebringer/cluebringer.conf'
     export CLUEBRINGER_WEBUI_CONF="/etc/cluebringer/cluebringer-webui.conf"

iRedMail/conf/core

     done
 }
 
-enable_service_suse()
-{
-    services="$@"
-    for i in $services; do
-        if [ -x /etc/init.d/$i ]; then
-            ECHO_DEBUG "Enable service: $i."
-            systemctl enable ${i}.service
-        fi
-    done
-}
-
-disable_service_suse()
-{
-    services="$@"
-    for i in $services; do
-        if [ -x /etc/init.d/$i ]; then
-            ECHO_DEBUG "Disable service: $i."
-            systemctl disable ${i}.service >/dev/null
-        fi
-    done
-}
-
 enable_service_debian()
 {
     services="$@"
     [ X"$?" != X"0" ] && ECHO_ERROR "Package removed failed, please check the terminal output."
 }
 
-# Install/Remove binary packages on openSUSE 
-install_pkg_suse()
-{
-    ECHO_INFO "Installing package(s): $@"
-    zypper --non-interactive install -y $@
-    if [ X"$?" != X"0" ]; then
-        ECHO_ERROR "Installation failed, please check the terminal output."
-        exit 255
-    else
-        :
-    fi
-}
-
-remove_pkg_suse()
-{
-    ECHO_INFO "Removing package(s): $@"
-    zypper --non-interactive remove -y $@
-    [ X"$?" != X"0" ] && ECHO_ERROR "Package removed failed, please check the terminal output."
-}
-
 # Install/Remove binary packages on Debian/Ubuntu.
 install_pkg_debian()
 {

iRedMail/conf/dovecot

 # Path to Dovecot deliver agant
 export DOVECOT_DELIVER='/usr/libexec/dovecot/deliver'
 
-if [ X"${DISTRO}" == X"SUSE" ]; then
-    export DOVECOT_DELIVER='/usr/lib/dovecot/deliver'
-
-elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export DOVECOT_DELIVER='/usr/lib/dovecot/deliver'
 
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then

iRedMail/conf/fail2ban

     export FAIL2BAN_SSHD_LOGFILE='/var/log/secure'
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     export FAIL2BAN_SSHD_LOGFILE='/var/log/auth.log'
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    export FAIL2BAN_SSHD_LOGFILE='/var/log/messages'
 elif [ X"${DISTRO}" == X"FREEBSD" ]; then
     export FAIL2BAN_CONF_ROOT='/usr/local/etc/fail2ban'
     export FAIL2BAN_SSHD_LOGFILE='/var/log/auth.log'

iRedMail/conf/global

 
 # Specify UID/GID for system accounts: vmail, iredadmin, iredapd.
 # Required by cluster environment. e.g. GlusterFS.
-# Note: UID/GID of vmail will be 303 on openSUSE since package 'postfix-mysql'
-#       will create it automatically.
 export VMAIL_USER_UID='2000'
 export VMAIL_USER_GID='2000'
 export IREDADMIN_USER_UID='2001'
             export ENABLE_BACKEND_PGSQL='YES'
         fi
 
-    elif [ -f /etc/SuSE-release ]; then
-        # openSUSE
-        export DISTRO='SUSE'
-
-        # Version number. e.g. 12.3
-        export DISTRO_VERSION="$(grep 'VERSION' /etc/SuSE-release | awk '{print $3}')"
-
-        # code name
-        #   - 12.3: dartmouth
-        #   - 13.1: bottle
-        export DISTRO_CODENAME="$(grep 'CODENAME' /etc/SuSE-release | awk '{print $3}' |tr [A-Z] [a-z])"
-
-        # Unsupported releases: 10.x, 11.x, 12.1 (asparagus), 12.2.
-        if echo "${DISTRO_VERSION}" | grep '^1[01]' &>/dev/null ; then
-            export UNSUPPORTED_RELEASE='YES'
-        elif echo "${DISTRO_VERSION}" | grep '^12.[12]' &>/dev/null ; then
-            export UNSUPPORTED_RELEASE='YES'
-        fi
-
-        export ENABLE_BACKEND_PGSQL='YES'
-
-        # Override VMAIL uid/gid
-        export VMAIL_USER_UID='303'
-        export VMAIL_USER_GID='303'
     elif [ -f /etc/lsb-release ]; then
         # Ubuntu
         export DISTRO='UBUNTU'
     export PKG_DIALOG="dialog${PKG_ARCH}"
     export PKG_BZIP2="bzip2${PKG_ARCH}"
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    # openSUSE
-    # System user: root. Note: not all OSes have group 'root'.
-    export SYS_ROOT_USER='root'
-    export SYS_ROOT_GROUP='root'
-
-    # Package management.
-    export install_pkg='install_pkg_suse'
-    export remove_pkg="remove_pkg_suse"
-    export LIST_ALL_PKGS='rpm -qa'
-    export LIST_FILES_IN_PKG='rpm -ql'
-
-    # Service control.
-    export enable_service='enable_service_suse'
-    export disable_service='disable_service_suse'
-
-    # Syslog config file: syslog.
-    export SYSLOG_CONF='/etc/rsyslog.conf'
-    #export SYSLOG_POSTROTATE_CMD='/bin/kill -HUP $(cat /var/run/syslogd.pid 2> /dev/null) 2> /dev/null || true'
-    export SYSLOG_POSTROTATE_CMD=''
-
-    # Crontab related.
-    export CRON_SPOOL_DIR='/var/spool/cron/tabs'
-
-    # Directory /etc/sysconfig/ on RHEL/CentOS/openSUSE.
-    export ETC_SYSCONFIG_DIR='/etc/sysconfig'
-
-    # iptables rule file.
-    export FIREWALL_RULE_CONF="${ETC_SYSCONFIG_DIR}/SuSEfirewall2"
-
-    # Directory used to store SSL/TLS key/cert file.
-    export SSL_FILE_DIR="/etc/ssl"
-
-    # Yum repository related.
-    export ZYPPER_REPOS_DIR='/etc/zypp/repos.d'
-    export LOCAL_REPO_NAME="${PROG_NAME}"
-    export LOCAL_REPO_FILE="${YUM_REPOS_DIR}/${LOCAL_REPO_NAME}.repo"
-
-    # Override default value.
-    export PKG_DIALOG="dialog"
-    export PKG_BZIP2="bzip2"
-
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     # Ubuntu & Debian.
     export DEBIAN_FRONTEND='noninteractive'

iRedMail/conf/openldap

         export OPENLDAP_MODULE_PATH='/usr/lib64/openldap'
     fi
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    export OPENLDAP_DB_CONFIG_SAMPLE='/var/lib/ldap/DB_CONFIG.example'
-
-    export OPENLDAP_PID_FILE='/var/run/slapd/slapd.pid'
-    export OPENLDAP_ARGS_FILE='/var/run/slapd/slapd.args'
-
-    export OPENLDAP_SYSCONFIG_CONF="${ETC_SYSCONFIG_DIR}/openldap"
-
-    # RC script
-    export OPENLDAP_RC_SCRIPT_NAME='ldap'
-
 elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     # LDAP daemon user & group.
     export OPENLDAP_DAEMON_USER='openldap'

iRedMail/conf/phpmyadmin

 export PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK="${HTTPD_SERVERROOT}/phpmyadmin"
 
 # Install phpMyAdmin with binary packages.
-if [ X"${DISTRO}" == X'SUSE' ]; then
-    export PHPMYADMIN_USE_SOURCE='NO'
-    export PHPMYADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpMyAdmin"
-    export PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
-elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export PHPMYADMIN_USE_SOURCE='NO'
     export PHPMYADMIN_HTTPD_ROOT="/usr/share/phpmyadmin"
     export PHPMYADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"

iRedMail/conf/phppgadmin

 export PHPPGADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/phppgadmin.conf"
 
 # Install phpPgAdmin with binary packages.
-if [ X"${DISTRO}" == X'SUSE' ]; then
-    export PHPPGADMIN_USE_SOURCE='NO'
-    export PHPPGADMIN_HTTPD_ROOT="${HTTPD_DOCUMENTROOT}/phpPgAdmin"
-    export PHPPGADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPMYADMIN_HTTPD_ROOT}"
-    export PHPPGADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/phppgadmin"
-elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export PHPPGADMIN_USE_SOURCE='NO'
     export PHPPGADMIN_HTTPD_ROOT="/usr/share/phppgadmin"
     export PHPPGADMIN_HTTPD_ROOT_SYMBOL_LINK="${PHPPGADMIN_HTTPD_ROOT}"
     export PHPPGADMIN_HTTPD_CONF="${HTTPD_CONF_DIR}/phppgadmin.conf"
 fi
 
-if [ X"${DISTRO}" == X'SUSE' ]; then
-    export PHPPGADMIN_CONFIG_FILE="/etc/phpPgAdmin/config.inc.php"
-else
-    export PHPPGADMIN_CONFIG_FILE="${PHPPGADMIN_HTTPD_ROOT}/conf/config.inc.php"
-fi
+export PHPPGADMIN_CONFIG_FILE="${PHPPGADMIN_HTTPD_ROOT}/conf/config.inc.php"

iRedMail/conf/postfix

 export MAILLOG='/var/log/maillog'
 
 # Mail log files.
-if [ X"${DISTRO}" == X"SUSE" ]; then
-    export MAILLOG='/var/log/mail'
-    export MAILLOG_INFO='/var/log/mail.info'
-    export MAILLOG_ERROR='/var/log/mail.err'
-    export MAILLOG_WARN='/var/log/mail.warn'
-    export POSTFIX_SYSCONFIG_CONF="${ETC_SYSCONFIG_DIR}/postfix"
-
-elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
+if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
     export MAILLOG='/var/log/mail.log'
     export MAILLOG_INFO='/var/log/mail.info'
     export MAILLOG_ERROR='/var/log/mail.err'

iRedMail/conf/postgresql

     export PGSQL_CONF_POSTGRESQL="${PGSQL_DATA_DIR}/postgresql.conf"
     export PGSQL_CONF_PG_HBA="${PGSQL_DATA_DIR}/pg_hba.conf"
 
-elif [ X"${DISTRO}" == X'SUSE' ]; then
-    export PGSQL_SYS_USER_HOME='/var/lib/pgsql'
-    export PGSQL_DATA_DIR="${PGSQL_SYS_USER_HOME}/data"
-
-    export PGSQL_CONF_POSTGRESQL="${PGSQL_DATA_DIR}/postgresql.conf"
-    export PGSQL_CONF_PG_HBA="${PGSQL_DATA_DIR}/pg_hba.conf"
-
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     export PGSQL_VERSION='9.1'
     export PGSQL_DATA_DIR="/var/lib/postgresql/${PGSQL_VERSION}/main"

iRedMail/dialog/optional_components.sh

 export DIALOG_SELECTABLE_PHPLDAPADMIN='YES'
 
 # Detect selectable menu items
-if [ X"${DISTRO}" == X'SUSE' ]; then
-    # openSUSE-12.3 doesn't have mod_auth_mysql and mod_auth_pgsql.
-    export DIALOG_SELECTABLE_AWSTATS='NO'
-elif [ X"${DISTRO}" == X'UBUNTU' ]; then
+if [ X"${DISTRO}" == X'UBUNTU' ]; then
     # Disable Awstats on Ubuntu 13.10 due to package missing: libapache2-mod-auth-mysql/pgsql
     if [ X"${DISTRO_CODENAME}" == X'saucy' ]; then
         export DIALOG_SELECTABLE_AWSTATS='NO'

iRedMail/functions/amavisd.sh

 
     # Enable/Disable DKIM feature.
     if [ X"${ENABLE_DKIM}" == X"YES" ]; then
-        if [ X"${DISTRO}" == X"RHEL" -o X"${DISTRO}" == X"SUSE" ]; then
+        if [ X"${DISTRO}" == X"RHEL" ]; then
             perl -pi -e 's/^(\$enable_dkim_verification = )\d(;.*)/${1}1${2}/' ${AMAVISD_CONF}
             perl -pi -e 's/^(\$enable_dkim_signing = )\d(;.*)/${1}1${2}/' ${AMAVISD_CONF}
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         fi
 
     else
-        if [ X"${DISTRO}" == X"RHEL" -o X"${DISTRO}" == X"SUSE" ]; then
+        if [ X"${DISTRO}" == X"RHEL" ]; then
             perl -pi -e 's/^(\$enable_dkim_verification = )\d(;.*)/${1}0${2}/' ${AMAVISD_CONF}
             perl -pi -e 's/^(\$enable_dkim_signing = )\d(;.*)/${1}0${2}/' ${AMAVISD_CONF}
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
 amavisd_config()
 {
     if [ X"${DISTRO}" == X"RHEL" \
-        -o X"${DISTRO}" == X'SUSE' \
         -o X"${DISTRO}" == X'FREEBSD' \
         -o X"${DISTRO}" == X'OPENBSD' \
         ]; then

iRedMail/functions/apache_php.sh

 
     backup_file ${HTTPD_CONF} ${HTTPD_SSL_CONF}
 
-    #########################################
-    # Create ${HTTPD_CONF} or ${HTTPD_SSL_CONF} for special distributions.
-    #
-    if [ X"${DISTRO}" == X"SUSE" ]; then
-        cat > ${HTTPD_CONF} <<EOF
-<VirtualHost *:80>
-    ServerAdmin ${FIRST_USER}@${FIRST_DOMAIN}
-    DocumentRoot ${HTTPD_DOCUMENTROOT}
-    ErrorLog ${HTTPD_LOG_ERRORLOG}
-    CustomLog ${HTTPD_LOG_ACCESSLOG} combined
-    HostnameLookups Off
-    UseCanonicalName Off
-    ServerSignature Off
-
-    <Directory />
-        Options FollowSymLinks
-        AllowOverride None
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    <Directory "/srv/www/htdocs">
-        Options Indexes FollowSymLinks
-        AllowOverride None
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    ScriptAlias /cgi-bin "${HTTPD_CGIBIN_DIR}"
-    <Directory "${HTTPD_CGIBIN_DIR}">
-        AllowOverride None
-        Options +ExecCGI -Includes
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    <IfModule mod_userdir.c>
-        UserDir public_html
-        Include ${HTTPD_CONF_ROOT}/mod_userdir.conf
-    </IfModule>
-
-</VirtualHost>
-EOF
-
-        cat > ${HTTPD_SSL_CONF} <<EOF
-NameVirtualHost *:443
-<VirtualHost *:443>
-    ServerAdmin ${FIRST_USER}@${FIRST_DOMAIN}
-    DocumentRoot ${HTTPD_DOCUMENTROOT}
-
-    # Enable SSL.
-    SSLEngine On
-    SSLCertificateFile ${SSL_CERT_FILE}
-    SSLCertificateKeyFile ${SSL_KEY_FILE}
-
-    <Directory />
-        Options FollowSymLinks
-        AllowOverride None
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    <Directory "/srv/www/htdocs">
-        Options Indexes FollowSymLinks
-        AllowOverride None
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    ScriptAlias /cgi-bin "${HTTPD_CGIBIN_DIR}"
-    <Directory "${HTTPD_CGIBIN_DIR}">
-        AllowOverride None
-        Options +ExecCGI -Includes
-        Order allow,deny
-        Allow from all
-    </Directory>
-
-    <IfModule mod_userdir.c>
-        UserDir public_html
-        Include ${HTTPD_CONF_ROOT}/mod_userdir.conf
-    </IfModule>
-
-</VirtualHost>
-EOF
-    else
-        :
-    fi
-
     # --------------------------
     # Apache Setting.
     # --------------------------
     ECHO_DEBUG "Basic configurations."
-    if [ X"${DISTRO}" == X"SUSE" ]; then
-        # openSUSE:
-        #   - Define some settings in /etc/sysconfig/apache2
-        perl -pi -e 's#^(APACHE_SERVERTOKENS=).*#${1}"ProductOnly"#' ${HTTPD_SYSCONFIG_CONF}
-        perl -pi -e 's#^(APACHE_SERVERSIGNATURE=).*#${1}"email"#' ${HTTPD_SYSCONFIG_CONF}
-        perl -pi -e 's#^(APACHE_LOGLEVEL=).*#${1}"warn"#' ${HTTPD_SYSCONFIG_CONF}
+    perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_CONF}
+    perl -pi -e 's#^(ServerSignature).*#${1} EMail#' ${HTTPD_CONF}
+    perl -pi -e 's#^(LogLevel).*#${1} warn#' ${HTTPD_CONF}
 
-        #perl -pi -e 's#(.*Options).*#${1} FollowSymLinks#' ${HTTPD_CONF_ROOT}/httpd.conf
-        #sed -i -e '/AllowOverride/,/AccessFileName/s#Deny from all#Allow from all#' ${HTTPD_CONF_ROOT}/httpd.conf
-
-        # Allow access by default.
-        if [ -f ${HTTPD_CONF_ROOT}/httpd.conf ]; then
-            perl -pi -e 's/^(\s*)(Require all denied).*/${1}#${2}/' ${HTTPD_CONF_ROOT}/httpd.conf
-        fi
-    else
-        perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_CONF}
-        perl -pi -e 's#^(ServerSignature).*#${1} EMail#' ${HTTPD_CONF}
-        perl -pi -e 's#^(LogLevel).*#${1} warn#' ${HTTPD_CONF}
-
-        if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
-            perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_MOD_CONF_SECURITY}
-        fi
+    if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
+        perl -pi -e 's#^(ServerTokens).*#${1} ProductOnly#' ${HTTPD_MOD_CONF_SECURITY}
     fi
 
     ############
             fi
         fi
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        a2enmod authz_core &>/dev/null
-        a2enmod deflate &>/dev/null
-
-        # Enable SSL.
-        a2enmod ssl &>/dev/null
-        perl -pi -e 's/#(Listen 443)/${1}/' ${HTTPD_CONF_ROOT}/listen.conf
-
-        [ X"${BACKEND}" == X"OPENLDAP" ] && \
-            a2enmod authnz_ldap &>/dev/null && \
-            a2enmod ldap &>/dev/null
-
-        [ X"${BACKEND}" == X"MYSQL" ] && a2enmod auth_mysql &>/dev/null
-
     elif [ X"${DISTRO}" == X'FREEBSD' ]; then
         [ X"${BACKEND}" == X'OPENLDAP' ] && \
             perl -pi -e 's/^#(LoadModule.*ldap_module.*)/${1}/' ${HTTPD_CONF}
 
         # Add index.php in DirectoryIndex.
         perl -pi -e 's#(.*DirectoryIndex.*)(index.html)#${1} index.php ${2}#' ${HTTPD_CONF}
-        [ X"${DISTRO}" == X"SUSE" ] && perl -pi -e 's#^(DirectoryIndex)(.*)#${1} index.php ${2}#' ${HTTPD_CONF}
 
         # Add php file type.
         echo 'AddType application/x-httpd-php .php' >> ${HTTPD_CONF}

iRedMail/functions/awstats.sh

         [ X"${LDAP_USE_TLS}" == X"YES" ] && \
             perl -pi -e 's#(AuthLDAPUrl.*)(ldap://)(.*)#${1}ldaps://${3}#' ${AWSTATS_HTTPD_CONF}
 
-        # openSUSE-13.1 (bottle) ships Apache-2.4 which removes directive 'AuthzLDAPAuthoritative'.
-        [ X"${DISTRO}" == X'SUSE' -a X"${DISTRO_CODENAME}" == X'bottle' ] && \
-            perl -pi -e 's/(.*)(AuthzLDAPAuthoritative.*)/${1}#${2}/g' ${AWSTATS_HTTPD_CONF}
-
         [ X"${DISTRO}" == X'UBUNTU' -a X"${DISTRO_CODENAME}" == X'saucy' ] && \
             perl -pi -e 's/(.*)(AuthzLDAPAuthoritative.*)/${1}#${2}/g' ${AWSTATS_HTTPD_CONF}
 
     elif [ X"${BACKEND}" == X'MYSQL' ]; then
         # Use mod_auth_mysql.
-        if [ X"${DISTRO}" == X'RHEL' \
-            -o X"${DISTRO}" == X'SUSE' \
-            -o X"${DISTRO}" == X'FREEBSD' ]; then
+        if [ X"${DISTRO}" == X'RHEL' -o X"${DISTRO}" == X'FREEBSD' ]; then
             cat >> ${AWSTATS_HTTPD_CONF} <<EOF
     AuthMYSQLEnable On
     AuthMySQLHost ${SQL_SERVER}
             if [ X"${DISTRO}" == X"FREEBSD" ]; then
                 # Enable mod_auth_mysql module in httpd.conf.
                 perl -pi -e 's/^#(LoadModule.*mod_auth_mysql.*)/${1}/' ${HTTPD_CONF}
-            fi
 
-            # openSUSE & FreeBSD special.
-            if [ X"${DISTRO}" == X"SUSE" \
-                -o X"${DISTRO}" == X"FREEBSD" \
-                ]; then
                 echo "    AuthBasicAuthoritative Off" >> ${AWSTATS_HTTPD_CONF}
             fi
 
     Auth_PG_hash_type CRYPT
 EOF
         fi
-
-        if [ X"${DISTRO}" == X"SUSE" ]; then
-            # Don't enable Awstats since we don't have Apache module mod_auth_pgsql
-            backup_file ${AWSTATS_HTTPD_CONF}
-            rm ${AWSTATS_HTTPD_CONF} &>/dev/null
-        fi
     fi
 
     if [ X"${DISTRO_CODENAME}" == X'saucy' ]; then
 awstats_config_weblog()
 {
     ECHO_DEBUG "Config awstats to analyze apache web access log: ${AWSTATS_CONF_WEB}."
-    if [ X"${DISTRO}" != X"SUSE" ]; then
-        cd ${AWSTATS_CONF_DIR}
-        cp -f ${AWSTATS_CONF_SAMPLE} ${AWSTATS_CONF_WEB}
-    fi
+    cd ${AWSTATS_CONF_DIR}
+    cp -f ${AWSTATS_CONF_SAMPLE} ${AWSTATS_CONF_WEB}
 
     perl -pi -e 's#^(SiteDomain=)(.*)#${1}"$ENV{HOSTNAME}"#' ${AWSTATS_CONF_WEB}
     perl -pi -e 's#^(LogFile=)(.*)#${1}"$ENV{HTTPD_LOG_ACCESSLOG}"#' ${AWSTATS_CONF_WEB}
     fi
     # On RHEL/CentOS/Debian, ${AWSTATS_CONF_SAMPLE} is default config file. Overrided here.
     backup_file ${AWSTATS_CONF_SAMPLE}
-    [ X"${DISTRO}" != X"SUSE" ] && cp -f ${AWSTATS_CONF_WEB} ${AWSTATS_CONF_SAMPLE}
+    cp -f ${AWSTATS_CONF_WEB} ${AWSTATS_CONF_SAMPLE}
 
     echo 'export status_awstats_config_weblog="DONE"' >> ${STATUS_FILE}
 }
     cd ${AWSTATS_CONF_DIR}
 
     # Create a default config file.
-    [ X"${DISTRO}" != X"SUSE" ] && \
-        cp -f ${AWSTATS_CONF_SAMPLE} ${AWSTATS_CONF_MAIL} && \
-        cp -f ${AWSTATS_CONF_MAIL} ${AWSTATS_CONF_DIR}/awstats.conf
+    cp -f ${AWSTATS_CONF_SAMPLE} ${AWSTATS_CONF_MAIL}
+    cp -f ${AWSTATS_CONF_MAIL} ${AWSTATS_CONF_DIR}/awstats.conf
 
     if [ X"${DISTRO}" == X"FREEBSD" ]; then
         export maillogconvert_pl="$( eval ${LIST_FILES_IN_PKG} "/var/db/pkg/awstats-*" | grep 'maillogconvert.pl')"

iRedMail/functions/cleanup.sh

         Y|y|* ) 
             backup_file ${FIREWALL_RULE_CONF}
             if [ X"${KERNEL_NAME}" == X'LINUX' ]; then
-                if [ X"${DISTRO}" != X"SUSE" ]; then
-                    ECHO_INFO "Copy firewall sample rules: ${FIREWALL_RULE_CONF}."
-                    cp -f ${SAMPLE_DIR}/iptables.rules ${FIREWALL_RULE_CONF}
+                ECHO_INFO "Copy firewall sample rules: ${FIREWALL_RULE_CONF}."
+                cp -f ${SAMPLE_DIR}/iptables.rules ${FIREWALL_RULE_CONF}
 
-                    # Replace HTTP port.
-                    [ X"${HTTPD_PORT}" != X"80" ]&& \
-                        perl -pi -e 's#(.*)80(,.*)#${1}$ENV{HTTPD_PORT}${2}#' ${FIREWALL_RULE_CONF}
-                fi
+                # Replace HTTP port.
+                [ X"${HTTPD_PORT}" != X"80" ]&& \
+                    perl -pi -e 's#(.*)80(,.*)#${1}$ENV{HTTPD_PORT}${2}#' ${FIREWALL_RULE_CONF}
 
-                if [ X"${DISTRO}" == X"SUSE" ]; then
-                    # Below services are not accessable from external network:
-                    #   - ldaps (636)
-                    perl -pi -e 's/^(FW_SERVICES_EXT_TCP=)(.*)/${1}"$ENV{HTTPD_PORT} 443 25 110 995 143 993 587 465 $ENV{sshd_port}"\n#${2}/' ${FIREWALL_RULE_CONF}
-
-                elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
+                if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
                     # Copy sample rc script for Debian.
                     cp -f ${SAMPLE_DIR}/iptables.init.debian ${DIR_RC_SCRIPTS}/iptables
                     chmod +x ${DIR_RC_SCRIPTS}/iptables
                     if [ X"${DISTRO}" == X'OPENBSD' ]; then
                         /sbin/pfctl -ef ${FIREWALL_RULE_CONF}
                     else
-                        # openSUSE will use /etc/init.d/SuSEfirewall2_{init,setup} instead.
-                        if [ X"${DISTRO}" != X"SUSE" ]; then
-                            ${DIR_RC_SCRIPTS}/iptables restart &>/dev/null
-                        fi
+                        ${DIR_RC_SCRIPTS}/iptables restart &>/dev/null
                     fi
                     ;;
                 N|n|* )
             ;;
     esac
 
-    if [ X"${DISTRO}" != X"SUSE" ]; then
-        # Restarting iptables before restarting fail2ban.
-        ENABLED_SERVICES="iptables ${ENABLED_SERVICES}"
-    fi
+    # Restarting iptables before restarting fail2ban.
+    ENABLED_SERVICES="iptables ${ENABLED_SERVICES}"
 
     echo 'export status_cleanup_replace_firewall_rules="DONE"' >> ${STATUS_FILE}
 }
     [ X"${DISTRO}" == X"RHEL" ] && check_status_before_run cleanup_disable_selinux
     [ X"${DISTRO}" != X'OPENBSD' ] && check_status_before_run cleanup_remove_sendmail
     check_status_before_run cleanup_remove_mod_python
-    [ X"${KERNEL_NAME}" == X'LINUX' \
-        -o X"${KERNEL_NAME}" == X'OPENBSD' \
-        ] && check_status_before_run cleanup_replace_firewall_rules
+
+    [ X"${KERNEL_NAME}" == X'LINUX' -o X"${KERNEL_NAME}" == X'OPENBSD' ] && \
+        check_status_before_run cleanup_replace_firewall_rules
+
     [ X"${DISTRO}" == X"RHEL" ] && check_status_before_run cleanup_replace_mysql_config
     check_status_before_run cleanup_backup_scripts
     [ X"${BACKEND}" == X'PGSQL' ] && check_status_before_run cleanup_pgsql_force_password

iRedMail/functions/cluebringer.sh

 
     # User/group will be created during installing binary package on:
     #   - Ubuntu
-    #   - openSUSE
-    if [ X"${DISTRO}" == X'RHEL' -o X"${DISTRO}" == X'SUSE' ]; then
+    if [ X"${DISTRO}" == X'RHEL' ]; then
         groupadd ${CLUEBRINGER_GROUP}
         useradd -m -d ${CLUEBRINGER_USER_HOME} -s ${SHELL_NOLOGIN} -g ${CLUEBRINGER_GROUP} ${CLUEBRINGER_USER}
     elif [ X"${DISTRO}" == X'FREEBSD' ]; then
     tmp_sql="/tmp/cluebringer_init_sql.${RANDOM}${RANDOM}"
     echo '' > ${tmp_sql}
 
-    if [ X"${DISTRO}" == X'RHEL' -o X"${DISTRO}" == X'SUSE' ]; then
+    if [ X"${DISTRO}" == X'RHEL' ]; then
         if [ X"${BACKEND}" == X'OPENLDAP' -o X"${BACKEND}" == X'MYSQL' ]; then
             tmp_db_sample_file_name='policyd.mysql.sql'
         elif [ X"${BACKEND}" == X'PGSQL' ]; then
         [ X"${LDAP_USE_TLS}" == X"YES" ] && \
             perl -pi -e 's#(AuthLDAPUrl.*)(ldap://)(.*)#${1}ldaps://${3}#' ${CLUEBRINGER_HTTPD_CONF}
 
-        # openSUSE-13.1 (bottle) and Ubuntu 13.10 ships Apache-2.4 which
-        # removes directive 'AuthzLDAPAuthoritative'.
-        [ X"${DISTRO}" == X'SUSE' -a X"${DISTRO_CODENAME}" == X'bottle' ] && \
+        # Ubuntu 13.10 ships Apache-2.4 which removes directive 'AuthzLDAPAuthoritative'.
+        [ X"${DISTRO_CODENAME}" == X'bottle' ] && \
             perl -pi -e 's/(.*)(AuthzLDAPAuthoritative.*)/${1}#${2}/g' ${CLUEBRINGER_HTTPD_CONF}
 
         [ X"${DISTRO}" == X'UBUNTU' -a X"${DISTRO_CODENAME}" == X'saucy' ] && \
                 echo "AuthBasicAuthoritative Off" >> ${CLUEBRINGER_HTTPD_CONF}
             fi
 
-        elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" -o X"${DISTRO}" == X'SUSE' ]; then
+        elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
             if [ X"${DISTRO_CODENAME}" == X'wheezy' \
                 -o X"${DISTRO_CODENAME}" == X'precise' \
                 -o X"${DISTRO_CODENAME}" == X'raring' ]; then
         fi  # DISTRO
 
     elif [ X"${BACKEND}" == X"PGSQL" ]; then
-        # openSUSE-13.1 and Ubuntu 13.10
-        if [ X"${DISTRO_CODENAME}" == X'saucy' -o X"${DISTRO_CODENAME}" == X'bottle' ]; then
+        # Ubuntu 13.10
+        if [ X"${DISTRO_CODENAME}" == X'saucy' ]; then
             perl -pi -e 's#(<Directory .*)#DBDriver pgsql\n${1}#' ${CLUEBRINGER_HTTPD_CONF}
             perl -pi -e 's#(<Directory .*)#DBDParams "host=$ENV{SQL_SERVER} port=$ENV{SQL_SERVER_PORT} dbname=$ENV{VMAIL_DB} user=$ENV{VMAIL_DB_BIND_USER} password=$ENV{VMAIL_DB_BIND_PASSWD}"\n${1}#' ${CLUEBRINGER_HTTPD_CONF}
 
 </Directory>
 EOF
 
-    if [ X"${DISTRO}" == X'SUSE' -a X"${BACKEND}" == X'PGSQL' ]; then
-        # Don't enable Cluebringer webui since we don't have Apache module mod_auth_pgsql
-        backup_file ${CLUEBRINGER_HTTPD_CONF}
-        rm ${CLUEBRINGER_HTTPD_CONF} &>/dev/null
-        backup_file ${CLUEBRINGER_HTTPD_CONF}
-    fi
     echo 'export status_cluebringer_webui_config="DONE"' >> ${STATUS_FILE}
 }

iRedMail/functions/dovecot2.sh

 
     ECHO_DEBUG "Enable dovecot SASL support in postfix: ${POSTFIX_FILE_MAIN_CF}."
     postconf -e mailbox_command="${DOVECOT_DELIVER}"
-    [ X"${DISTRO}" == X"SUSE" ] && \
-        perl -pi -e 's#^(POSTFIX_MDA=).*#${1}"dovecot"#' ${POSTFIX_SYSCONFIG_CONF}
     postconf -e virtual_transport="${TRANSPORT}"
     postconf -e dovecot_destination_recipient_limit='1'
 

iRedMail/functions/iredadmin.sh

 
     echo "export IREDADMIN_DB_PASSWD='${IREDADMIN_DB_PASSWD}'" >> ${IREDMAIL_CONFIG_FILE}
 
-    if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" -o X"${DISTRO}" == X"SUSE" ]; then
+    if [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ECHO_DEBUG "Enable apache module: wsgi."
         a2enmod wsgi >/dev/null 2>&1
     elif [ X"${DISTRO}" == X"RHEL" ]; then

iRedMail/functions/iredapd.sh

         cp ${IREDAPD_ROOT_DIR}/iredapd/rc_scripts/iredapd.rhel ${DIR_RC_SCRIPTS}/iredapd
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         cp ${IREDAPD_ROOT_DIR}/iredapd/rc_scripts/iredapd.debian ${DIR_RC_SCRIPTS}/iredapd
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        cp ${IREDAPD_ROOT_DIR}/iredapd/rc_scripts/iredapd.opensuse ${DIR_RC_SCRIPTS}/iredapd
     elif [ X"${DISTRO}" == X"FREEBSD" ]; then
         cp ${IREDAPD_ROOT_DIR}/iredapd/rc_scripts/iredapd.freebsd ${DIR_RC_SCRIPTS}/iredapd
     elif [ X"${DISTRO}" == X'OPENBSD' ]; then

iRedMail/functions/openldap.sh

             perl -pi -e 's/#(SLAPD_LDAPS=).*/${1}yes/' ${OPENLDAP_SYSCONFIG_CONF}
         fi
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        # Fix strict permission.
-        chmod 0755 ${SSL_KEY_DIR}
-
-        # Start ldaps.
-        perl -pi -e 's#^(OPENLDAP_START_LDAPS=).*#${1}"yes"#' ${OPENLDAP_SYSCONFIG_CONF}
-
-        # Set config backend.
-        perl -pi -e 's#^(OPENLDAP_CONFIG_BACKEND=).*#${1}"files"#' ${OPENLDAP_SYSCONFIG_CONF}
-
     elif [ X"${DISTRO}" == X'OPENBSD' ]; then
         # Enable TLS/SSL support
         cat >> ${RC_CONF_LOCAL} <<EOF
 EOF
 
     # Load backend module. Required on Debian/Ubuntu.
-    if [ X"${OPENLDAP_VERSION}" == X"2.4" \
-        -a X"${DISTRO}" != X'SUSE' \
-        -a X"${DISTRO}" != X'OPENBSD' \
-        ]; then
+    if [ X"${OPENLDAP_VERSION}" == X"2.4" -a X"${DISTRO}" != X'OPENBSD' ]; then
         if [ X"${OPENLDAP_DEFAULT_DBTYPE}" == X"bdb" ]; then
             # bdb, Berkeley DB.
             cat >> ${OPENLDAP_SLAPD_CONF} <<EOF

iRedMail/functions/packages.sh

             ENABLED_SERVICES="rsyslog ${ENABLED_SERVICES}"
         fi
         DISABLED_SERVICES="${DISABLED_SERVICES} exim"
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        # Debian.
-        ENABLED_SERVICES="network syslog ${ENABLED_SERVICES}"
     elif [ X"${DISTRO}" == X"DEBIAN" ]; then
         # Debian.
         ENABLED_SERVICES="rsyslog ${ENABLED_SERVICES}"
         if [ X"${DISTRO}" == X"RHEL" ]; then
             ALL_PKGS="${ALL_PKGS} openldap${PKG_ARCH} openldap-clients${PKG_ARCH} openldap-servers${PKG_ARCH} mysql-server${PKG_ARCH} mysql${PKG_ARCH}"
 
-        elif [ X"${DISTRO}" == X"SUSE" ]; then
-            ALL_PKGS="${ALL_PKGS} openldap2 openldap2-client mysql-community-server mysql-community-server-client"
-
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
             ALL_PKGS="${ALL_PKGS} postfix-ldap slapd ldap-utils libnet-ldap-perl mysql-server mysql-client"
 
             # For Awstats.
             [ X"${USE_AWSTATS}" == X"YES" ] && ALL_PKGS="${ALL_PKGS} mod_auth_mysql${PKG_ARCH}"
 
-        elif [ X"${DISTRO}" == X"SUSE" ]; then
-            if [ X"${USE_LOCAL_MYSQL_SERVER}" == X'YES' ]; then
-                ALL_PKGS="${ALL_PKGS} mysql-community-server"
-            fi
-            ALL_PKGS="${ALL_PKGS} mysql-community-server-client libapr-util1-dbd-mysql"
-
-            [ X"${USE_AWSTATS}" == X"YES" ] && ALL_PKGS="${ALL_PKGS} postfix-mysql"
-
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
             # MySQL server and client.
             if [ X"${USE_LOCAL_MYSQL_SERVER}" == X'YES' ]; then
             [ X"${USE_AWSTATS}" == X'YES' -o X"${USE_CLUEBRINGER}" == X'YES' ] && \
                 ALL_PKGS="${ALL_PKGS} mod_auth_pgsql${PKG_ARCH}"
 
-        elif [ X"${DISTRO}" == X"SUSE" ]; then
-            ALL_PKGS="${ALL_PKGS} postgresql-server postgresql-contrib postfix-postgresql libapr-util1-dbd-pgsql"
-
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
             # postgresql-contrib provides extension 'dblink' used in Roundcube password plugin.
             ALL_PKGS="${ALL_PKGS} postgresql postgresql-client postgresql-contrib postfix-pgsql"
     if [ X"${DISTRO}" == X"RHEL" ]; then
         ALL_PKGS="${ALL_PKGS} httpd${PKG_ARCH} mod_ssl${PKG_ARCH} php${PKG_ARCH} php-common${PKG_ARCH} php-gd${PKG_ARCH} php-xml${PKG_ARCH} php-mysql${PKG_ARCH} php-ldap${PKG_ARCH} php-pgsql${PKG_ARCH} php-imap${PKG_ARCH} php-mbstring${PKG_ARCH}"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        # Apache
-        ALL_PKGS="${ALL_PKGS} apache2-prefork apache2-mod_php5"
-
-        # PHP
-        ALL_PKGS="${ALL_PKGS} php5-dom php5-fileinfo php5-gettext php5-iconv php5-intl php5-json php5-ldap php5-mbstring php5-mcrypt"
-
-        [ X"${BACKEND}" == X'OPENLDAP' -o X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} php5-mysql"
-        [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} php5-pgsql"
-
     elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
         ALL_PKGS="${ALL_PKGS} libapache2-mod-php5"
         [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} php5-ldap php5-mysql"
     ENABLED_SERVICES="${ENABLED_SERVICES} ${POSTFIX_RC_SCRIPT_NAME}"
     if [ X"${DISTRO}" == X"RHEL" ]; then
         ALL_PKGS="${ALL_PKGS} postfix${PKG_ARCH}"
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        # On openSUSE, postfix already has ldap_table support.
-        ALL_PKGS="${ALL_PKGS} postfix"
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} postfix postfix-pcre"
     elif [ X"${DISTRO}" == X'OPENBSD' ]; then
         ALL_PKGS="${ALL_PKGS} cluebringer perl-DBD-MySQL.${PKG_ARCH} perl-DBD-Pg.${PKG_ARCH}"
         ENABLED_SERVICES="${ENABLED_SERVICES} ${CLUEBRINGER_RC_SCRIPT_NAME}"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} cluebringer"
-        ENABLED_SERVICES="${ENABLED_SERVICES} ${CLUEBRINGER_RC_SCRIPT_NAME}"
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} postfix-cluebringer"
         ENABLED_SERVICES="${ENABLED_SERVICES} ${CLUEBRINGER_RC_SCRIPT_NAME}"
         # We use Dovecot SASL auth instead of saslauthd
         DISABLED_SERVICES="${DISABLED_SERVICES} saslauthd"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} dovecot21"
-
-        if [ X"${BACKEND}" == X"MYSQL" ]; then
-            ALL_PKGS="${ALL_PKGS} dovecot21-backend-mysql"
-        elif [ X"${BACKEND}" == X"PGSQL" ]; then
-            ALL_PKGS="${ALL_PKGS} dovecot21-backend-pgsql"
-        fi
-
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} dovecot-imapd dovecot-pop3d dovecot-managesieved dovecot-sieve"
 
 
         DISABLED_SERVICES="${DISABLED_SERVICES} spamassassin"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} perl-Mail-SPF amavisd-new clamav spamassassin altermime"
-
-        [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} perl-ldap perl-DBD-mysql"
-        [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} perl-DBD-mysql"
-        [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} perl-DBD-Pg"
-
-        ENABLED_SERVICES="${ENABLED_SERVICES} ${CLAMAV_FRESHCLAMD_RC_SCRIPT_NAME}"
-        DISABLED_SERVICES="${DISABLED_SERVICES} clamav-milter spamd spampd"
-
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj zoo nomarch cpio lzop cabextract p7zip rpm unrar-free ripole libmail-spf-perl"
         ENABLED_SERVICES="${ENABLED_SERVICES} ${CLAMAV_FRESHCLAMD_RC_SCRIPT_NAME}"
     if [ X"${USE_PHPPGADMIN}" == X"YES" ]; then
         if [ X"${DISTRO}" == X"RHEL" ]; then
             :
-        elif [ X"${DISTRO}" == X"SUSE" ]; then
-            ALL_PKGS="${ALL_PKGS} phpPgAdmin"
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
             ALL_PKGS="${ALL_PKGS} phppgadmin"
         elif [ X"${DISTRO}" == X'OPENBSD' ]; then
 
     # phpMyAdmin
     if [ X"${USE_PHPMYADMIN}" == X"YES" ]; then
-        if [ X"${DISTRO}" == X'SUSE' ]; then
-            ALL_PKGS="${ALL_PKGS} phpMyAdmin"
-        elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
+        if [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
             ALL_PKGS="${ALL_PKGS} phpmyadmin"
         elif [ X"${DISTRO}" == X'OPENBSD' ]; then
             ALL_PKGS="${ALL_PKGS} phpMyAdmin"
         [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} MySQL-python${PKG_ARCH}"
         [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} python-psycopg2${PKG_ARCH}"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} python-ldap python-mysql"
-        [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} python-mysql"
-        [ X"${BACKEND}" == X'PGSQL' ] && ALL_PKGS="${ALL_PKGS} python-psycopg2"
-
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         [ X"${BACKEND}" == X'OPENLDAP' ] && ALL_PKGS="${ALL_PKGS} python-ldap python-mysqldb"
         [ X"${BACKEND}" == X'MYSQL' ] && ALL_PKGS="${ALL_PKGS} python-mysqldb"
     if [ X"${DISTRO}" == X"RHEL" ]; then
         ALL_PKGS="${ALL_PKGS} python-jinja2${PKG_ARCH} python-webpy.noarch mod_wsgi${PKG_ARCH}"
 
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} apache2-mod_wsgi python-jinja2 python-xml python-web.py"
-
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} libapache2-mod-wsgi python-jinja2 python-netifaces python-webpy"
 
     if [ X"${USE_AWSTATS}" == X"YES" ]; then
         if [ X"${DISTRO}" == X"RHEL" ]; then
             ALL_PKGS="${ALL_PKGS} awstats.noarch"
-        elif [ X"${DISTRO}" == X"SUSE" ]; then
-            ALL_PKGS="${ALL_PKGS} awstats"
         elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
             ALL_PKGS="${ALL_PKGS} awstats"
         elif [ X"${DISTRO}" == X'OPENBSD' ]; then
     if [ X"${DISTRO}" == X"RHEL" ]; then
         ALL_PKGS="${ALL_PKGS} bzip2${PKG_ARCH} acl${PKG_ARCH} patch${PKG_ARCH} tmpwatch${PKG_ARCH} crontabs.noarch dos2unix${PKG_ARCH} logwatch"
         ENABLED_SERVICES="${ENABLED_SERVICES} crond"
-    elif [ X"${DISTRO}" == X"SUSE" ]; then
-        ALL_PKGS="${ALL_PKGS} bzip2 acl patch cron tmpwatch dos2unix logwatch"
-        ENABLED_SERVICES="${ENABLED_SERVICES} cron"
     elif [ X"${DISTRO}" == X"DEBIAN" -o X"${DISTRO}" == X"UBUNTU" ]; then
         ALL_PKGS="${ALL_PKGS} bzip2 acl patch cron tofrodos logwatch"
         ENABLED_SERVICES="${ENABLED_SERVICES} cron"
     # Install all packages.
     install_all_pkgs()
     {
-        if [ X"${DISTRO}" == X'SUSE' ]; then
-            rpm -e patterns-openSUSE-minimal_base-conflicts &>/dev/null
-            rpm -e exim &>/dev/null
-        fi
-
         # Install all packages.
         if [ X"${DISTRO}" == X'OPENBSD' ]; then
             ECHO_INFO "PKG_PATH: ${PKG_PATH}"
             eval ${disable_service} ${DISABLED_SERVICES} >/dev/null
         fi
 
-        if [ X"${DISTRO}" == X"SUSE" ]; then
-            eval ${disable_service} SuSEfirewall2_setup SuSEfirewall2_init >/dev/null
-        fi
-
         echo 'export status_enable_all_services="DONE"' >> ${STATUS_FILE}
     }
 

iRedMail/functions/postfix.sh

     ECHO_DEBUG "Enable chroot."
     perl -pi -e 's/^(smtp.*inet)(.*)(n)(.*)(n)(.*smtpd)$/${1}${2}${3}${4}-${6}/' ${POSTFIX_FILE_MASTER_CF}
 
-    if [ X"${DISTRO}" == X"SUSE" ]; then
-        # Remove duplicate relay_domains on openSUSE
-        perl -pi -e 's/^(relay_domains.*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-
-        # Uncomment tlsmgr to avoid postfix warning message:
-        # 'warning: connect to private/tlsmgr: No such file or directory'
-        perl -pi -e 's/^#(tlsmgr.*)/${1}/' ${POSTFIX_FILE_MASTER_CF}
-
-        # Set postfix:myhostname in /etc/sysconfig/postfix.
-        perl -pi -e 's#^(POSTFIX_MYHOSTNAME=).*#${1}"$ENV{HOSTNAME}"#' ${POSTFIX_SYSCONFIG_CONF}
-        #postfix:message_size_limit
-        perl -pi -e 's#^(POSTFIX_ADD_MESSAGE_SIZE_LIMIT=).*#${1}"$ENV{MESSAGE_SIZE_LIMIT}"#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_INET_PROTO=).*#${1}"ipv4"#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_CHROOT=).*#${1}"yes"#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_UPDATE_CHROOT_JAIL=).*#${1}"yes"#' ${POSTFIX_SYSCONFIG_CONF}
-
-        # Append two lines in /etc/services to avoid below error:
-        # '0.0.0.0:smtps: Servname not supported for ai_socktype'
-        echo 'smtps            465/udp    # smtp over ssl' >> /etc/services
-        echo 'smtps            465/tcp    # smtp over ssl' >> /etc/services
-
-        # Unset below settings since we don't use them.
-        perl -pi -e 's/^(smtp*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(virtual*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(relay*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(alias*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(canonical*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(sender*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(recipient*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(transport*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(inet_protocols*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(relocated_maps*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(tls_*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-        perl -pi -e 's/^(mailbox*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
-
-        perl -pi -e 's/^(POSTFIX_UPDATE_MAPS=).*/${1}"no"/' ${POSTFIX_SYSCONFIG_CONF}
-
-        # Don't invoke /usr/sbin/config.postfix to use hard-coded settings
-        for f in /etc/init.d/postfix /etc/postfix/system/config_postfix; do
-            [ -f $f ] && perl -pi -e 's,(/usr/sbin/config.postfix),#${1},' $f
-        done
-    fi
-
     # Use ipv4 only
     # Comment out the parameter first to avoid duplicate entries
     perl -pi -e 's/^(inet_protocols*)/#${1}/' ${POSTFIX_FILE_MAIN_CF}
     postconf -e smtpd_sasl_local_domain=''
     postconf -e broken_sasl_auth_clients="yes"
     postconf -e smtpd_sasl_security_options="noanonymous"
-    if [ X"${DISTRO}" == X"SUSE" ]; then
-        perl -pi -e 's#^(POSTFIX_SMTP_AUTH_SERVER=).*#${1}"yes"#' ${POSTFIX_SYSCONFIG_CONF} && \
-        perl -pi -e 's#^(POSTFIX_SMTP_AUTH=).*#${1}"yes"#' ${POSTFIX_SYSCONFIG_CONF} && \
-        perl -pi -e 's#^(POSTFIX_SMTP_AUTH_OPTIONS=).*#${1}"noanonymous"#' ${POSTFIX_SYSCONFIG_CONF}
-    fi
 
     # Report the SASL authenticated user name in Received message header.
     # Default is 'no'.
     postconf -e smtpd_tls_CAfile="${SSL_CERT_FILE}"
     postconf -e tls_random_source='dev:/dev/urandom'
 
-    if [ X"${DISTRO}" == X"SUSE" ]; then
-        perl -pi -e 's#^(POSTFIX_SMTP_TLS_SERVER=).*#${1}"yes"#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_SSL_PATH=).*#${1}""#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_TLS_CAFILE=).*#${1}""#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_TLS_CERTFILE=).*#${1}"$ENV{'SSL_CERT_FILE'}"#' ${POSTFIX_SYSCONFIG_CONF}
-        perl -pi -e 's#^(POSTFIX_TLS_KEYFILE=).*#${1}"$ENV{'SSL_KEY_FILE'}"#' ${POSTFIX_SYSCONFIG_CONF}
-    fi
-
     cat >> ${POSTFIX_FILE_MASTER_CF} <<EOF
 submission inet n       -       n       -       -       smtpd
   -o smtpd_tls_security_level=encrypt

iRedMail/functions/postgresql.sh

     # Init db
     if [ X"${DISTRO}" == X'RHEL' ]; then
         ${PGSQL_RC_SCRIPT} initdb &>/dev/null
-    elif [ X"${DISTRO}" == X'SUSE' ]; then
-        su - ${PGSQL_SYS_USER} -c "initdb -D ${PGSQL_DATA_DIR} -U ${PGSQL_SYS_USER} -A trust" >/dev/null
     elif [ X"${DISTRO}" == X'FREEBSD' ]; then
         # FreeBSD: Start pgsql when system start up.
         # Warning: We must have 'postgresql_enable=YES' before start/stop pgsql daemon.

iRedMail/functions/system_accounts.sh

             -d ${VMAIL_USER_HOME_DIR} \
             ${VMAIL_USER_NAME} 2>/dev/null
     else
-        # Note: on openSUSE, package 'postfix-mysql' will create vmail:vmail with uid/gid=303.
         groupadd -g ${VMAIL_USER_GID} ${VMAIL_GROUP_NAME} 2>/dev/null
         useradd -m \
             -u ${VMAIL_USER_UID} \

iRedMail/pkgs/get_all.sh

 # Misc file (source tarball) list.
 if [ X"${DISTRO}" == X"FREEBSD" ]; then
     PKGMISC='SHASUM.freebsd.misc'
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    PKGMISC='MD5.misc MD5.opensuse'
 elif [ X"${DISTRO}" == X'OPENBSD' ]; then
     PKGMISC='MD5.openbsd'
 else
     echo 'export status_create_yum_repo="DONE"' >> ${STATUS_FILE}
 }
 
-create_repo_suse()
-{
-    ECHO_INFO "Create zypper repo file: ${ZYPPER_REPOS_DIR}/${PROG_NAME}.repo."
-    cat > ${ZYPPER_REPOS_DIR}/${PROG_NAME}.repo <<EOF
-# Repository for packages:
-#   - apache-mod_auth_mysql, apache-mod_wsgi
-#   - Altermime, awstats
-# Reference: http://iredmail.org/yum/opensuse/${DISTRO_VERSION}/README
-
-[iRedMail]
-name=iRedMail
-baseurl=${IREDMAIL_MIRROR}/yum/opensuse/${DISTRO_VERSION}/
-enabled=1
-autorefresh=1
-path=/
-type=rpm-md
-keeppackages=1
-gpgcheck=0
-EOF
-
-}
-
 check_new_iredmail()
 {
     # Check new version and track basic information,
     check_pkg ${BIN_WHICH} ${PKG_WHICH}
     check_pkg ${BIN_WGET} ${PKG_WGET}
 
-elif [ X"${DISTRO}" == X"SUSE" ]; then
-    ECHO_INFO "Clean metadata of zypper repositories."
-    zypper clean --metadata --raw-metadata
-
-    create_repo_suse
-
-    ECHO_INFO "Refresh zypper repositories."
-    zypper refresh
 elif [ X"${DISTRO}" == X'DEBIAN' -o X"${DISTRO}" == X'UBUNTU' ]; then
     # Force update.
     ECHO_INFO "Resynchronizing the package index files (apt-get update) ..."

iRedMail/samples/iredmail.schema

 #   http://www.iredmail.org/
 #
 # It should be localed at:
-#   - RHEL/CentOS/OpenSuSE: /etc/openldap/schema/iredmail.schema
+#   - RHEL/CentOS: /etc/openldap/schema/iredmail.schema
 #   - Debian: /etc/ldap/schema/iredmail.schema
 #   - FreeBSD: /usr/local/etc/openldap/schema/
 #

iRedMail/tools/generate_ssl_keys.sh

 #
 #       - certs/iRedMail_CA.pem: Used to replace file on iRedMail server:
 #           + on RHEL/CentOS/Scientific Linux: /etc/pki/tls/certs/iRedMail_CA.pem
-#           + on Debian/Ubuntu/openSUSE: /etc/ssl/certs/iRedMail_CA.pem
+#           + on Debian/Ubuntu: /etc/ssl/certs/iRedMail_CA.pem
 #           + on FreeBSD: /etc/ssl/certs/iRedMail_CA.pem
 #       - private/iRedMail.key: Used to replace file on iRedMail server:
 #           + on RHEL/CentOS/Scientific Linux: /etc/pki/tls/private/iRedMail.key
-#           + on Debian/Ubuntu/openSUSE: /etc/ssl/private/iRedMail.key
+#           + on Debian/Ubuntu: /etc/ssl/private/iRedMail.key
 #           + on FreeBSD: /etc/ssl/private/iRedMail.key
 #
 # 3) Grant read access to all users. e.g. on RHEL/CentOS/Scientific Linux:
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.