Fixed group mail alias creation, Fixed problems with checking mail address duplicates,

Also allow external email addresses if mail module is not enabled

Please, note that  #1445  is needed for correct working of email accounts. May I merge the two branches on one?