Fix setup_mail, local vars