Log problems with RCPT TO commands when receiving mails

This commit is contained in:
Patrick Gansterer 2017-10-09 16:39:07 +02:00
parent 0b79fe4f41
commit 08ac3aa539

View file

@ -25,6 +25,7 @@ class FoodsoftMailReceiver < MidiSmtpServer::Smtpd
@handlers << self.class.find_handler(recipient) @handlers << self.class.find_handler(recipient)
rcpt_to rcpt_to
rescue => error rescue => error
logger.info("Can not accept mail for '#{rcpt_to}': #{error}")
raise MidiSmtpServer::Smtpd550Exception raise MidiSmtpServer::Smtpd550Exception
end end