#!/bin/sh

#
#   Start script to run the maildrop python process
#
reldir=`dirname $0`

# Source the main configuration file
. ../config.py

# Where is the python executable?
PYTHON="/usr/bin/python"

export MAILDROP_HOME SMTP_HOST SMTP_PORT POLLING BATCH PYTHON

exec $PYTHON $reldir/maildrop.py \
     -h $MAILDROP_HOME \
     -s $SMTP_HOST \
     -p $SMTP_PORT \
     -i $POLLING \
     -b $BATCH \
     -d $DEBUG


# NOTE:
#
# If you add the "-d" flag to the flags used to invoke the 
# maildrop.py script then all log output will be written to 
# the terminal along with the log file.

