1

Topic: Suggestion and offer

==== Required information ====
- iRedMail version (check /etc/iredmail-release): none
- Linux/BSD distribution name and version: none
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): any
- Web server (Apache or Nginx): apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: none
====

Hello,

this is not a question or a bug. I have been using iRedMail on a FreeBSD system and i think it has been amazing. But I got a Synology box and unfortunately there is only horde support, which is not to my opinion as close to as good as iRedMail.

A lot of people are using NASes nowadays and small companies as well. It would be, i think, beneficial if you guys could work on a version for NASes (in my case Synology).

I am offering my box if you want to test and find how to adjust iRedMail to run on Synology.

Thanks!

2

Re: Suggestion and offer

What's the difference between Synology box and normal FreeBSD OS, or jailed FreeBSD?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: Suggestion and offer

Hi Zhang,

for starters, the script doesn't run. Send me a message if you want to have access on my box to have a look.

4

Re: Suggestion and offer

Excuse me, what do you mean "the script doesn't run"? Could you please show me the terminal output?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

5

Re: Suggestion and offer

sh-4.3# cd iRedMail-0.9.5-1/
sh-4.3# bash iRedMail.sh
********* ERROR *********
Release version of the operating system on this server is unsupported by
iRedMail, please access below link to get the latest iRedMail and a list
of supported Linux/BSD distributions and release versions.

http://www.iredmail.org/download.html

*************************
sh-4.3# uname -a
Linux NAS1 3.10.77 #7321 SMP Thu Apr 21 14:33:45 CST 2016 armv7l GNU/Linux synology_monaco_ds216play 

6

Re: Suggestion and offer

Could you please show me FULL output of command below:

cd iRedMail-0.9.5-1/
bash -xv conf/global

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

7

Re: Suggestion and offer

sh-4.3# bash -xv conf/global
#!/usr/bin/env bash

# Author:   Zhang Huangbin (zhb _at_ iredmail.org)

#---------------------------------------------------------------------
# This file is part of iRedMail, which is an open source mail server
# solution for Red Hat(R) Enterprise Linux, CentOS, Debian and Ubuntu.
#
# iRedMail is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# iRedMail is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with iRedMail.  If not, see <http://www.gnu.org/licenses/>.
#---------------------------------------------------------------------

export PROG_NAME='iRedMail'
+ export PROG_NAME=iRedMail
+ PROG_NAME=iRedMail
export PROG_NAME_LOWERCASE='iredmail'
+ export PROG_NAME_LOWERCASE=iredmail
+ PROG_NAME_LOWERCASE=iredmail
export PROG_VERSION='0.9.5-1'
+ export PROG_VERSION=0.9.5-1
+ PROG_VERSION=0.9.5-1

export DATE="$(/bin/date +%Y.%m.%d.%H.%M.%S)"
/bin/date +%Y.%m.%d.%H.%M.%S
++ /bin/date +%Y.%m.%d.%H.%M.%S
+ export DATE=2016.05.24.15.45.24
+ DATE=2016.05.24.15.45.24

# For perl and run-time locale setting.
export LC_ALL=C
+ export LC_ALL=C
+ LC_ALL=C

# Debug mode: YES, NO.
export IREDMAIL_DEBUG="${IREDMAIL_DEBUG:=NO}"
+ export IREDMAIL_DEBUG=NO
+ IREDMAIL_DEBUG=NO

# -----------------
# ---- Generic ----
# -----------------
# Maildir style: hashed, normal.
export MAILDIR_STYLE='hashed'
+ export MAILDIR_STYLE=hashed
+ MAILDIR_STYLE=hashed

# Mailboxes will be stored under sub-directory ${STORAGE_NODE} of vmail user's
# home directory. e.g. home directory is /var/vmail, the mailboxes will be
# /var/vmail/vmail1.
export STORAGE_NODE='vmail1'
+ export STORAGE_NODE=vmail1
+ STORAGE_NODE=vmail1

# Enabled backends.
export ENABLE_BACKEND_OPENLDAP='YES'
+ export ENABLE_BACKEND_OPENLDAP=YES
+ ENABLE_BACKEND_OPENLDAP=YES
export ENABLE_BACKEND_MYSQL='YES'
+ export ENABLE_BACKEND_MYSQL=YES
+ ENABLE_BACKEND_MYSQL=YES
export ENABLE_BACKEND_PGSQL='YES'
+ export ENABLE_BACKEND_PGSQL=YES
+ ENABLE_BACKEND_PGSQL=YES
export ENABLE_BACKEND_MARIADB='NO'
+ export ENABLE_BACKEND_MARIADB=NO
+ ENABLE_BACKEND_MARIADB=NO
# OpenBSD built-in LDAP daemon
export ENABLE_BACKEND_LDAPD='NO'
+ export ENABLE_BACKEND_LDAPD=NO
+ ENABLE_BACKEND_LDAPD=NO

# For better distributed deployment
#
# IP address of localhost.
# Usually it's 127.0.0.1, but not in FreeBSD Jail.
export LOCAL_ADDRESS="${LOCAL_ADDRESS:=127.0.0.1}"
+ export LOCAL_ADDRESS=127.0.0.1
+ LOCAL_ADDRESS=127.0.0.1

# LDAP server
export LDAP_SERVER_HOST="${LDAP_SERVER_HOST:=${LOCAL_ADDRESS}}"
+ export LDAP_SERVER_HOST=127.0.0.1
+ LDAP_SERVER_HOST=127.0.0.1
export LDAP_SERVER_PORT="${LDAP_SERVER_PORT:=389}"
+ export LDAP_SERVER_PORT=389
+ LDAP_SERVER_PORT=389
# MySQL server
export MYSQL_SERVER_ADDRESS="${MYSQL_SERVER_ADDRESS:=${LOCAL_ADDRESS}}"
+ export MYSQL_SERVER_ADDRESS=127.0.0.1
+ MYSQL_SERVER_ADDRESS=127.0.0.1
export MYSQL_SERVER_PORT="${MYSQL_SERVER_PORT:=3306}"
+ export MYSQL_SERVER_PORT=3306
+ MYSQL_SERVER_PORT=3306
export MYSQL_ROOT_USER="${MYSQL_ROOT_USER:=root}"
+ export MYSQL_ROOT_USER=root
+ MYSQL_ROOT_USER=root
# PGSQL server
export PGSQL_SERVER_ADDRESS="${PGSQL_SERVER_ADDRESS:=${LOCAL_ADDRESS}}"
+ export PGSQL_SERVER_ADDRESS=127.0.0.1
+ PGSQL_SERVER_ADDRESS=127.0.0.1
export PGSQL_SERVER_PORT="${PGSQL_SERVER_PORT:=5432}"
+ export PGSQL_SERVER_PORT=5432
+ PGSQL_SERVER_PORT=5432
# host address used in ~postgres/.pgpass
export PGSQL_PGPASS_HOST='localhost'
+ export PGSQL_PGPASS_HOST=localhost
+ PGSQL_PGPASS_HOST=localhost
if [ X"${LOCAL_ADDRESS}" != X'127.0.0.1' ]; then
    export PGSQL_PGPASS_HOST="${LOCAL_ADDRESS}"
fi
+ '[' X127.0.0.1 '!=' X127.0.0.1 ']'

export USE_LOCAL_MYSQL_SERVER='YES'
+ export USE_LOCAL_MYSQL_SERVER=YES
+ USE_LOCAL_MYSQL_SERVER=YES
if [ X"${MYSQL_SERVER_ADDRESS}" != X"${LOCAL_ADDRESS}" ]; then
    export USE_LOCAL_MYSQL_SERVER='NO'
fi
+ '[' X127.0.0.1 '!=' X127.0.0.1 ']'

# Dovecot: POP3, IMAP, managesieve
export IMAP_SERVER="${LOCAL_ADDRESS}"
+ export IMAP_SERVER=127.0.0.1
+ IMAP_SERVER=127.0.0.1
export LMTP_SERVER="${LOCAL_ADDRESS}"
+ export LMTP_SERVER=127.0.0.1
+ LMTP_SERVER=127.0.0.1
export LMTP_PORT='24'
+ export LMTP_PORT=24
+ LMTP_PORT=24
export MANAGESIEVE_SERVER="${LOCAL_ADDRESS}"
+ export MANAGESIEVE_SERVER=127.0.0.1
+ MANAGESIEVE_SERVER=127.0.0.1
export MANAGESIEVE_PORT='4190'
+ export MANAGESIEVE_PORT=4190
+ MANAGESIEVE_PORT=4190
# SMTP server (Postfix)
export SMTP_SERVER="${LOCAL_ADDRESS}"
+ export SMTP_SERVER=127.0.0.1
+ SMTP_SERVER=127.0.0.1
# Amavisd
export AMAVISD_SERVER="${LOCAL_ADDRESS}"
+ export AMAVISD_SERVER=127.0.0.1
+ AMAVISD_SERVER=127.0.0.1
# ClamAV
export CLAMD_BIND_HOST="${LOCAL_ADDRESS}"
+ export CLAMD_BIND_HOST=127.0.0.1
+ CLAMD_BIND_HOST=127.0.0.1
# iRedAPD
export IREDAPD_BIND_HOST="${LOCAL_ADDRESS}"
+ export IREDAPD_BIND_HOST=127.0.0.1
+ IREDAPD_BIND_HOST=127.0.0.1
# Memcached
export MEMCACHED_BIND_HOST="${LOCAL_ADDRESS}"
+ export MEMCACHED_BIND_HOST=127.0.0.1
+ MEMCACHED_BIND_HOST=127.0.0.1

# For managesieve service and software.
export USE_MANAGESIEVE='YES'    # Use managesieve service.
+ export USE_MANAGESIEVE=YES
+ USE_MANAGESIEVE=YES

# vmail user/group name, uid and gid.
export VMAIL_USER_NAME='vmail'
+ export VMAIL_USER_NAME=vmail
+ VMAIL_USER_NAME=vmail
export VMAIL_GROUP_NAME='vmail'
+ export VMAIL_GROUP_NAME=vmail
+ VMAIL_GROUP_NAME=vmail

# Specify UID/GID for system accounts: vmail, iredadmin, iredapd.
# Required by cluster environment. e.g. GlusterFS.
export VMAIL_USER_UID='2000'
+ export VMAIL_USER_UID=2000
+ VMAIL_USER_UID=2000
export VMAIL_USER_GID='2000'
+ export VMAIL_USER_GID=2000
+ VMAIL_USER_GID=2000
export IREDADMIN_USER_UID='2001'
+ export IREDADMIN_USER_UID=2001
+ IREDADMIN_USER_UID=2001
export IREDADMIN_USER_GID='2001'
+ export IREDADMIN_USER_GID=2001
+ IREDADMIN_USER_GID=2001
export IREDAPD_DAEMON_USER_UID='2002'
+ export IREDAPD_DAEMON_USER_UID=2002
+ IREDAPD_DAEMON_USER_UID=2002
export IREDAPD_DAEMON_USER_GID='2002'
+ export IREDAPD_DAEMON_USER_GID=2002
+ IREDAPD_DAEMON_USER_GID=2002

# Default SQL database name used to store mail accounts.
export VMAIL_DB_NAME='vmail'
+ export VMAIL_DB_NAME=vmail
+ VMAIL_DB_NAME=vmail
export VMAIL_DB_BIND_USER='vmail'
+ export VMAIL_DB_BIND_USER=vmail
+ VMAIL_DB_BIND_USER=vmail
export VMAIL_DB_ADMIN_USER='vmailadmin'
+ export VMAIL_DB_ADMIN_USER=vmailadmin
+ VMAIL_DB_ADMIN_USER=vmailadmin

# SQL databases we should backup
export SQL_BACKUP_DATABASES="${VMAIL_DB_NAME}"
+ export SQL_BACKUP_DATABASES=vmail
+ SQL_BACKUP_DATABASES=vmail

# Default virtual domain admin name without domain name (@example.com).
export DOMAIN_ADMIN_NAME='postmaster'
+ export DOMAIN_ADMIN_NAME=postmaster
+ DOMAIN_ADMIN_NAME=postmaster

# Tools.
export CONFIG_VIA_DIALOG="${DIALOG_DIR}/config_via_dialog.sh"
+ export CONFIG_VIA_DIALOG=/config_via_dialog.sh
+ CONFIG_VIA_DIALOG=/config_via_dialog.sh
# Note: config file will be sourced in file 'conf/core', function 'check_env()'.
export IREDMAIL_CONFIG_FILE="${ROOTDIR}/config"
+ export IREDMAIL_CONFIG_FILE=/config
+ IREDMAIL_CONFIG_FILE=/config
export TIP_FILE="${ROOTDIR}/${PROG_NAME}.tips"
+ export TIP_FILE=/iRedMail.tips
+ TIP_FILE=/iRedMail.tips
export DOC_FILE="${ROOTDIR}/Documentations"
+ export DOC_FILE=/Documentations
+ DOC_FILE=/Documentations
export RUNTIME_DIR="${ROOTDIR}/runtime"
+ export RUNTIME_DIR=/runtime
+ RUNTIME_DIR=/runtime
export STATUS_FILE="${RUNTIME_DIR}/install.status"
+ export STATUS_FILE=/runtime/install.status
+ STATUS_FILE=/runtime/install.status
export INSTALL_LOG="${RUNTIME_DIR}/install.log"
+ export INSTALL_LOG=/runtime/install.log
+ INSTALL_LOG=/runtime/install.log
export PKG_INSTALL_LOG="${RUNTIME_DIR}/pkg.install.log"
+ export PKG_INSTALL_LOG=/runtime/pkg.install.log
+ PKG_INSTALL_LOG=/runtime/pkg.install.log

# Output flag.
export _INFO_FLAG="[ INFO ]"
+ export '_INFO_FLAG=[ INFO ]'
+ _INFO_FLAG='[ INFO ]'
export _SKIP_FLAG="< SKIP >"
+ export '_SKIP_FLAG=< SKIP >'
+ _SKIP_FLAG='< SKIP >'
export _ERROR_FLAG="<< ERROR >>"
+ export '_ERROR_FLAG=<< ERROR >>'
+ _ERROR_FLAG='<< ERROR >>'
export _QUESTION_FLAG="< Question >"
+ export '_QUESTION_FLAG=< Question >'
+ _QUESTION_FLAG='< Question >'
export _BACKUP_FLAG=" + < Backup >"
+ export '_BACKUP_FLAG= + < Backup >'
+ _BACKUP_FLAG=' + < Backup >'
export _DEBUG_FLAG=" + < DEBUG >"
+ export '_DEBUG_FLAG= + < DEBUG >'
+ _DEBUG_FLAG=' + < DEBUG >'

export CONF_MSG="#
# File generated by ${PROG_NAME} (${DATE}):
#
# Version:  ${PROG_VERSION}
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
"
+ export 'CONF_MSG=#
# File generated by iRedMail (2016.05.24.15.45.24):
#
# Version:  0.9.5-1
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
'
+ CONF_MSG='#
# File generated by iRedMail (2016.05.24.15.45.24):
#
# Version:  0.9.5-1
# Project:  http://www.iredmail.org/
#
# Community: http://www.iredmail.org/forum/
#
'

# TERM.
if [ X"${TERM}" == X"" ]; then
    export TERM='xterm'
fi
+ '[' Xxterm == X ']'

# Logrotate configuration directory.
export LOGROTATE_DIR='/etc/logrotate.d'
+ export LOGROTATE_DIR=/etc/logrotate.d
+ LOGROTATE_DIR=/etc/logrotate.d

# Kernel name, in upper cases.
export KERNEL_NAME="$(uname -s | tr '[a-z]' '[A-Z]')"
uname -s | tr '[a-z]' '[A-Z]'
++ uname -s
++ tr '[a-z]' '[A-Z]'
+ export KERNEL_NAME=LINUX
+ KERNEL_NAME=LINUX

# Command used to genrate a random string.
# Usage: str="$(${RANDOM_STRING})"
export RANDOM_STRING='eval </dev/urandom tr -dc A-Za-z0-9 | (head -c $1 &>/dev/n                                                                                                                                                             ull || head -c 30)'
+ export 'RANDOM_STRING=eval </dev/urandom tr -dc A-Za-z0-9 | (head -c $1 &>/dev                                                                                                                                                             /null || head -c 30)'
+ RANDOM_STRING='eval </dev/urandom tr -dc A-Za-z0-9 | (head -c $1 &>/dev/null |                                                                                                                                                             | head -c 30)'

# command: dialog.
export BIN_DIALOG="dialog"
+ export BIN_DIALOG=dialog
+ BIN_DIALOG=dialog
export PKG_DIALOG="dialog"
+ export PKG_DIALOG=dialog
+ PKG_DIALOG=dialog

# command: bzip2.
export BIN_BZIP2='bzip2'
+ export BIN_BZIP2=bzip2
+ BIN_BZIP2=bzip2
export PKG_BZIP2='bzip2'
+ export PKG_BZIP2=bzip2
+ PKG_BZIP2=bzip2

# Shells
export SHELL_NOLOGIN='/sbin/nologin'
+ export SHELL_NOLOGIN=/sbin/nologin
+ SHELL_NOLOGIN=/sbin/nologin
export SHELL_BASH='/bin/bash'
+ export SHELL_BASH=/bin/bash
+ SHELL_BASH=/bin/bash

# Check hardware architecture.
arch="$(uname -m)"
uname -m
++ uname -m
+ arch=armv7l
case $arch in
    i[3456]86) export OS_ARCH='i386' ;;
    x86_64|amd64) export OS_ARCH='x86_64' ;;
    armv6l|arm7l|armv7l)
        # Debian ARM platform and Raspberry Pi.
        export OS_ARCH='armhf' ;;
    *)
        echo "Your architecture is not supported yet: ${arch}."
        echo "Both i386 and x86_64 are supported by ${PROG_NAME}."
        exit 255
        ;;
esac
+ case $arch in
+ export OS_ARCH=armhf
+ OS_ARCH=armhf

# Path to some programs
export PYTHON_BIN='python'
+ export PYTHON_BIN=python
+ PYTHON_BIN=python
export PERL_BIN='/usr/bin/perl'
+ export PERL_BIN=/usr/bin/perl
+ PERL_BIN=/usr/bin/perl

# Default password scheme for SQL backends.
# LDAP backend will use SSHA instead (defined in file
# dialog/config_via_dialog.sh), because many applications need to bind as user.
export DEFAULT_PASSWORD_SCHEME='SSHA512'
+ export DEFAULT_PASSWORD_SCHEME=SSHA512
+ DEFAULT_PASSWORD_SCHEME=SSHA512

# Check distribution.
#   - DISTRO
#   - DISTRO_VERSION
#   - DISTRO_CODENAME
#
# UNSUPPORTED_RELEASE will be set to 'YES' if current Linux/BSD release is
# an old release and unsupported anymore.
export UNSUPPORTED_RELEASE='NO'
+ export UNSUPPORTED_RELEASE=NO
+ UNSUPPORTED_RELEASE=NO

# Check whether it's Debian or Ubuntu.

# Detect distro name and release version.
if [ X"${KERNEL_NAME}" == X'LINUX' ]; then
    # Directory of RC scripts.
    export DIR_RC_SCRIPTS='/etc/init.d'

    if [ -f /etc/redhat-release ]; then
        # RHEL/CentOS
        export DISTRO='RHEL'

        # Get distribution version
        if grep '\ 6' /etc/redhat-release &>/dev/null; then
            # version 6.x
            export DISTRO_VERSION='6'
        elif grep '\ 7' /etc/redhat-release &>/dev/null; then
            # version 7.x
            export DISTRO_VERSION='7'
        else
            export UNSUPPORTED_RELEASE='YES'
        fi

        # Get distribution name as DISTRO_CODENAME
        if grep '^Red' /etc/redhat-release &>/dev/null; then
            # RHEL
            export DISTRO_CODENAME='rhel'
        elif grep '^CentOS' /etc/redhat-release &>/dev/null; then
            # CentOS
            export DISTRO_CODENAME='centos'
        elif grep '^Scientific' /etc/redhat-release &>/dev/null; then
            # Scientific Linux
            export DISTRO_CODENAME='scientific'
        else
            export UNSUPPORTED_RELEASE='YES'
        fi

    elif [ -f /etc/lsb-release ] && grep -i 'DISTRIB_ID=Ubuntu' /etc/lsb-release                                                                                                                                                              &>/dev/null; then
        # Ubuntu
        export DISTRO='UBUNTU'

        # Ubuntu version number and code name:
        #   - 14.04: trusty
        #   - 16.04: xenial
        export DISTRO_VERSION="$(grep 'DISTRIB_RELEASE' /etc/lsb-release | awk -                                                                                                                                                             F'=' '{print $2}')"
        export DISTRO_CODENAME="$(grep 'DISTRIB_CODENAME' /etc/lsb-release | awk                                                                                                                                                              -F'=' '{print $2}')"

        # Unsupported releases: 12.x, 13.x, 14.10, 15.x
        if echo "${DISTRO_VERSION}" | grep -E '^(12|13|14\.10|15\.)' &>/dev/null                                                                                                                                                              ; then
            export UNSUPPORTED_RELEASE='YES'
        fi
    elif [ -f /etc/debian_version ]; then
        # Debian
        export DISTRO='DEBIAN'

        # Get major release version number
        export DISTRO_VERSION="$(cat /etc/debian_version)"

        # Set distro code name and unsupported releases.
        if grep '^8' /etc/debian_version &>/dev/null || \
            grep -i '^jessie' /etc/debian_version &>/dev/null; then
            export DISTRO_VERSION='8'
            export DISTRO_CODENAME='jessie'
        else
            export UNSUPPORTED_RELEASE='YES'
        fi

        # Override settings.
        export SHELL_NOLOGIN='/usr/sbin/nologin'
    else
        export UNSUPPORTED_RELEASE='YES'
    fi
elif [ X"${KERNEL_NAME}" == X'FREEBSD' ]; then
    export DISTRO='FREEBSD'
    export DISTRO_VERSION="$(uname -r |awk -F'[.-]' '{print $1}')"

    # Directory of RC scripts.
    export DIR_RC_SCRIPTS='/usr/local/etc/rc.d'

    export PYTHON_BIN='/usr/local/bin/python'
    export PERL_BIN='/usr/local/bin/perl'

    # Unsupported releases: 7, 8.
    if echo "${DISTRO_VERSION}" | grep '^[78]' &>/dev/null ; then
        export UNSUPPORTED_RELEASE='YES'
    fi

    export SHELL_BASH='/usr/local/bin/bash'

    # Default password scheme.
    export DEFAULT_PASSWORD_SCHEME='BCRYPT'

elif [ X"${KERNEL_NAME}" == X'OPENBSD' ]; then
    export DISTRO='OPENBSD'
    export DISTRO_VERSION="$(uname -r)"

    # Directory of RC scripts.
    export DIR_RC_SCRIPTS='/etc/rc.d'
    export RC_CONF_LOCAL='/etc/rc.conf.local'
    export SHELL_BASH='/usr/local/bin/bash'
    export PYTHON_BIN='/usr/local/bin/python'

    export RANDOM_STRING='eval echo $RANDOM | md5'

    # Unsupported release: 5.7 and earlier versions.
    if echo "${DISTRO_VERSION}" | grep '^5.[1234567]' &>/dev/null ; then
        export UNSUPPORTED_RELEASE='YES'
    fi

    # Default password scheme.
    export DEFAULT_PASSWORD_SCHEME='BCRYPT'

else
    # Not support *BSD and other distrobutions yet.
    echo "Error: Your OS is not supported yet."
    exit 255
fi
+ '[' XLINUX == XLINUX ']'
+ export DIR_RC_SCRIPTS=/etc/init.d
+ DIR_RC_SCRIPTS=/etc/init.d
+ '[' -f /etc/redhat-release ']'
+ '[' -f /etc/lsb-release ']'
+ '[' -f /etc/debian_version ']'
+ export UNSUPPORTED_RELEASE=YES
+ UNSUPPORTED_RELEASE=YES

# Exit and prompt to use a supported Linux/BSD distribution
if [ X"${UNSUPPORTED_RELEASE}" == X'YES' ]; then
    cat <<EOF
********* ERROR *********
Release version of the operating system on this server is unsupported by
iRedMail, please access below link to get the latest iRedMail and a list
of supported Linux/BSD distributions and release versions.

http://www.iredmail.org/download.html

*************************
EOF

    exit 255
fi
+ '[' XYES == XYES ']'
+ cat
********* ERROR *********
Release version of the operating system on this server is unsupported by
iRedMail, please access below link to get the latest iRedMail and a list
of supported Linux/BSD distributions and release versions.

http://www.iredmail.org/download.html

*************************
+ exit 255
sh-4.3#

8

Re: Suggestion and offer

vasileiosg wrote:

+ '[' XLINUX == XLINUX ']'
+ export DIR_RC_SCRIPTS=/etc/init.d
+ DIR_RC_SCRIPTS=/etc/init.d
+ '[' -f /etc/redhat-release ']'
+ '[' -f /etc/lsb-release ']'
+ '[' -f /etc/debian_version ']'
+ export UNSUPPORTED_RELEASE=YES
+ UNSUPPORTED_RELEASE=YES

iRedMail detects it's a Linux box, but it cannot figure out which distribution it is.

- RHEL/CentOS have /etc/redhat-release
- Ubuntu has /etc/lsb-release (and /etc/debian_version)
- Debian has only /etc/debian_version

But your box doesn't have any of them. So, which linux distribution is it based on?

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

9

Re: Suggestion and offer

I am afraid i don't know that. It is called Synology DiskStation Manager (DSM) and currently on version 6. You as developer you can look here: https://www.synology.com/en-global/support/developer on how to build your own package. I believe in what you do here so I want to help you as much as I can, because I believe that it will be to the iRedMail's benefit to have a package for that. NAS is becoming very.. trendy and Synology and QNAP are leaders.

10

Re: Suggestion and offer

I checked wikpedia page here: https://en.wikipedia.org/wiki/Synology_Inc.
It's not clear which Linux distribution it uses as the base system, i'm lost here.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

11

Re: Suggestion and offer

Yes, I know. If you tell me what dependencies iRedMail has, I can try to find the location of those files. If you don't wish to share that information do to proprietary data, i can give you access to my box so you can play around.

12

Re: Suggestion and offer

vasileiosg wrote:

Yes, I know. If you tell me what dependencies iRedMail has, I can try to find the location of those files. If you don't wish to share that information do to proprietary data, i can give you access to my box so you can play around.

OK, please give me ssh access (zhb _at_ iredmail.org), i'd like to take a look.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

13

Re: Suggestion and offer

ZhangHuangbin wrote:
vasileiosg wrote:

Yes, I know. If you tell me what dependencies iRedMail has, I can try to find the location of those files. If you don't wish to share that information do to proprietary data, i can give you access to my box so you can play around.

OK, please give me ssh access (zhb _at_ iredmail.org), i'd like to take a look.

Hi Zhanghuabin,

I'm planning to install iredmail on my Synology box as well. Did you successfully achieve that in the end? If yes, would you like to share this experience to us? Thank you!

14

Re: Suggestion and offer

wangwrg wrote:
ZhangHuangbin wrote:
vasileiosg wrote:

Yes, I know. If you tell me what dependencies iRedMail has, I can try to find the location of those files. If you don't wish to share that information do to proprietary data, i can give you access to my box so you can play around.

OK, please give me ssh access (zhb _at_ iredmail.org), i'd like to take a look.

Hi Zhanghuabin,

I'm planning to install iredmail on my Synology box as well. Did you successfully achieve that in the end? If yes, would you like to share this experience to us? Thank you!

Same here, I am looking for that option for a long time. Synology even offers docker support now, mabe that's a way?

15

Re: Suggestion and offer

I cannot remember the result. You guys can give it a try yourself, it it doesn't work, prepare a testing box and give me direct ssh access with root privilege, i'm willing to give it a try and hopefully get it working.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee