Mailpile integration

I know that there are some commits and a branch for mailpile version for mail in a box. I was wondering if anyone had any success with installing themselves or with that branch? Using a fresh install of ubuntu 14.04 x64 i lnstall mail pile with success and get to the web interface that works on port 33411. After the install of mail-in-a-box and the starting of mailpile ( ./mp ), I can no longer reach the web interface. It just times out. The mail pile process is running but for some reason I can’t access the page. Any help would be great?

If you forget my branch and install MP totally manually, it should work to the extent that MP works. But you may need to open the port with ufw allow PORT#.

Thank you. I was coming to that same conclusion because there was nothing in the mailpile logs to indicate a failure. I figure that this project would implement a firewall. I should of looked at the firewall earlier. That fix it immediately. Thanks for your help.

Will mailpile be integrated for first official release?

There will probably be a second beta this month (next week maybe) without Mailpile, and after that I don’t exactly know.

If anyone is interested in integrating the current mailpile project into mailinabox. Both projects will probably change so it may not be for everyone setup. This what I did in the conf.d/local.conf file to incorporate the mailpile and also have init.d script as well for start up. let me know if you need further instructions for install.

local.conf addition to the domain

  location /{
 		proxy_pass  http://127.0.0.1:33411;
 	}

or

location /mailpile{
 		proxy_pass  http://127.0.0.1:33411;
 	}

mailpile init.d

#!/bin/sh
### BEGIN INIT INFO
# Provides:          Mailpile
# Required-Start:    $local_fs $remote_fs
# Required-Stop:     $local_fs $remote_fs
# Should-Start:      $network
# Should-Stop:       $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Daemonized version of Mailpile.
# Description:       Starts the mailpile daemon 
### END INIT INFO



PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin

DESC="Mailpile Daemon"
NAME="mailpile"
DAEMON="/usr/bin/screen -dmS mailpile_init /home/git/Mailpile/mp "
PIDFILE=/var/run/$NAME.pid


# Load the VERBOSE setting and other rcS variables
[ -f /etc/default/rcS ] && . /etc/default/rcS

# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions

#
# Function to verify if a pid is alive
#
is_alive()
{
   pid=`cat $1` > /dev/null 2>&1
   kill -0 $pid > /dev/null 2>&1
   return $?
}



#
# Function that starts the daemon/service
#
do_start()
{
   # Return
   #   0 if daemon has been started
   #   1 if daemon was already running
   #   2 if daemon could not be started

   is_alive $PIDFILE
   RETVAL="$?"

   if [ $RETVAL != 0 ]; then
       rm -f $PIDFILE
       $DAEMON 
       RETVAL="$?"
   fi

   [ "$RETVAL" = "0" ] || return 2
}

do_stop()
{
   # Return
   #   0 if daemon has been stopped
   #   1 if daemon was already stopped
   #   2 if daemon could not be stopped
   #   other if a failure occurred

   ps aux | grep "python2 /home/git/Mailpile/mp" | awk {'print $2'} | xargs kill -9
   RETVAL="$?"
   [ "$RETVAL" = "2" ] && return 2

   rm -f $PIDFILE

   [ "$RETVAL" = "0" ] && return 0 || return 1
}

case "$1" in
  start)
   [ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC" "$NAME"
   do_start
   case "$?" in
      0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
      2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
   esac
   ;;
  stop)
   [ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
   do_stop
   case "$?" in
      0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
      2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
   esac
   ;;
  restart|force-reload)
   log_daemon_msg "Restarting $DESC" "$NAME"
   do_stop
   case "$?" in
     0|1)
      do_start
      case "$?" in
         0) log_end_msg 0 ;;
         1) log_end_msg 1 ;; # Old process is still running
         *) log_end_msg 1 ;; # Failed to start
      esac
      ;;
     *)
        # Failed to stop
      log_end_msg 1
      ;;
   esac
   ;;
  *)
   echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
   exit 3
   ;;
esac

:

Any updates on this front here? Would love to use mailpile. But couldn’t figure out how to use it with the points from @madmax and I couldn’t find anything else here in the forum regarding mailpile.

I haven’t tried the new version. After a while I found the beta version to be inadequate. When I get chance I will update with new setup but would love this project mailinabox to integrate rather replace roundcube,

That would both be great! Thanks for your reply.