added postfix smtp settings + some code cleanup