moved mail config to startup.sh, since it depends on env variables