some configuration stuff and sending mails