Mailsettings bnc#784360

* Correction of previous bug fix.
* add validation of the test email address to the model