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)
|
@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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue