Fix #2499

The mail domain can now be configured in config.php and get´s used  in function getDefaultEmailAddress.

e.g. 'mail_domain' => 'example.com'