Quantcast
Channel: iRedMail
Viewing all articles
Browse latest Browse all 14136

mail not working

$
0
0

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


Pull Iredmail down on July 11, 2015 for CentOS 6.6 clean.  Ran install for it per directions with option Nginx and SOGo selected.  Reboot as recommended upon completion of scripts.  All web interface panels come up initially.  However, cannot send e-mail from RoundCube.  Did not test others. 

Ran install for iRedAdmin-Pro per instructions: http://www.iredmail.org/docs/migrate.or … admin.html
upgrade.sh script.

Pro panels and other panels all up.  However, will not send e-mail.

Did note that iRedAPD is NOT running.  If start it by hand, it does send e-mail.   Reboot service is off and fails to send email.

chkconfig --list | grep iredapd
iredapd            0:off    1:off    2:off    3:on    4:on    5:on    6:off




less /etc/init.d/iredapd
----------------------------------------------------------------------------------------------
#!/usr/bin/env bash

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

### BEGIN INIT INFO
# chkconfig: - 99 99
# description: iredapd is a mail list access policy daemon.
# processname: iredapd
### END INIT INFO

PROG='iredapd'
BINPATH='/opt/iredapd/iredapd.py'
PIDFILE='/var/run/iredapd.pid'

check_status() {
    # Usage: check_status pid_number
    PID="${1}"
    l=$(ps -p ${PID} | wc -l | awk '{print $1}')
    if [ X"$l" == X"2" ]; then
        echo "running"
    else
        echo "stopped"
    fi
}

start() {
    if [ -f ${PIDFILE} ]; then
        PID="$(cat ${PIDFILE})"
        s="$(check_status ${PID})"

        if [ X"$s" == X"running" ]; then
            echo "${PROG} is already running."
        else
            rm -f ${PIDFILE} >/dev/null 2>&1
        fi
    fi

    echo "Starting ${PROG} ..."
    python ${BINPATH}
    unset s
}

stop() {
    if [ -f ${PIDFILE} ]; then
        PID="$(cat ${PIDFILE})"
        s="$(check_status ${PID})"

        if [ X"$s" == X"running" ]; then
            echo "Stopping ${PROG} ..."
            kill -9 ${PID}
            if [ X"$?" == X"0" ]; then
                rm -f ${PIDFILE} >/dev/null 2>&1
            else
                echo -e "\t\t[ FAILED ]"
            fi
        else
            echo "${PROG} is already stopped."
            rm -f ${PIDFILE} >/dev/null 2>&1
        fi
    else
        echo "${PROG} is already stopped."
    fi
    unset s
}

status() {
    if [ -f ${PIDFILE} ]; then
        PID="$(cat ${PIDFILE})"
        s="$(check_status ${PID})"

        if [ X"$s" == X"running" ]; then
            echo "${PROG} is running."
            exit 0
        else
            echo "${PROG} is stopped."
            exit 1
        fi
    else
        echo "${PROG} is stopped."
        exit 3
    fi
}

case "$1" in
    start) start ;;
    stop) stop ;;
    status) status ;;
    restart) stop && sleep 1 && start ;;
    *)
        echo $"Usage: $0 {start|stop|restart|status}"
        RETVAL=1
        ;;
esac

----------------------------------------------------------------------------------------------


Viewing all articles
Browse latest Browse all 14136

Trending Articles