config mail and db host