use warning log for disabled account

This commit is contained in:
Son NK 2020-10-26 10:33:53 +01:00
parent 6803d4bf42
commit 4a7b73a218

View file

@ -457,7 +457,7 @@ def handle_forward(envelope, msg: Message, rcpt_to: str) -> List[Tuple[bool, str
return [(False, "550 SL E3 Email not exist")]
if alias.user.disabled:
LOG.exception(
LOG.warning(
"User %s disabled, disable forwarding emails for %s", alias.user, alias
)
return [(False, "550 SL E20 Account disabled")]