Small check to only support mail, smtp or sendmail

Signed-off-by: crynobone <crynobone@gmail.com>