Log problems with RCPT TO commands when receiving mails
This commit is contained in:
parent
0b79fe4f41
commit
08ac3aa539
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue