Some fixes for mail app

A condition based on the wrong canReceive value
Too many errors were displayed
Wrong database table structure in install.sql
Missing configuration value in install.sql
Merge pull request #96 from Creatiwity/mail-config-fix

Some fixes for mail app