fix(smtpd): Log errors to stdout rather than SMTP session
This commit is contained in:
parent
d6357c9bac
commit
32855f2472
3 changed files with 17 additions and 4 deletions
13
CHANGELOG.md
13
CHANGELOG.md
|
@ -1,5 +1,18 @@
|
||||||
# EasyWKS Changelog
|
# EasyWKS Changelog
|
||||||
|
|
||||||
|
<!-- BEGIN RELEASE v0.4.4 -->
|
||||||
|
## Version 0.4.4
|
||||||
|
|
||||||
|
smtpd: Log errors to stdout rather than SMTP session
|
||||||
|
|
||||||
|
### Changes
|
||||||
|
|
||||||
|
<!-- BEGIN CHANGES 0.4.4 -->
|
||||||
|
- smtpd: Log errors to stdout rather than SMTP session
|
||||||
|
<!-- END CHANGES 0.4.4-->
|
||||||
|
|
||||||
|
<!-- END RELEASE v0.4.4 -->
|
||||||
|
|
||||||
<!-- BEGIN RELEASE v0.4.3 -->
|
<!-- BEGIN RELEASE v0.4.3 -->
|
||||||
## Version 0.4.3
|
## Version 0.4.3
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
__version__ = '0.4.3'
|
__version__ = '0.4.4'
|
||||||
|
|
|
@ -19,9 +19,9 @@ class LmtpMailServer:
|
||||||
process_mail(message)
|
process_mail(message)
|
||||||
except EasyWksError as e:
|
except EasyWksError as e:
|
||||||
return f'550 {e}'
|
return f'550 {e}'
|
||||||
except BaseException:
|
except Exception as e:
|
||||||
tb = traceback.format_exc()
|
traceback.print_exc()
|
||||||
return f'550 Error during message processing: {tb}'
|
return f'550 Error during message processing: {e}'
|
||||||
return '250 Message successfully handled'
|
return '250 Message successfully handled'
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue