to run webmail.sh directly, it needs to source the global variables