[#6276] use mock SMTP server instead of real one during tests