Warn if there is no mail server configured when one is needed (#1046).