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
1 changed files with 1 additions and 0 deletions

View File

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