Why use a default mailer@xwiki.localdomain.com which has no chance of working?

Why not instead check if it's defined and it not report and error and ask the user to define the admin email address?