diff --git a/docs/courier-to-mailman3.md b/docs/courier-to-mailman3.md index 39f22e3..f3740ec 100644 --- a/docs/courier-to-mailman3.md +++ b/docs/courier-to-mailman3.md @@ -31,4 +31,5 @@ This is our current version trying to communicate between courier and mailman3. * OK, parsing port number, and setting default. * Logging error (I hope), when lmtp fails to be created. * Maybe this is better? - * Catch exception, log based on that? \ No newline at end of file + * Catch exception, log based on that? + * Hm, go with bare "Exception"... The catch wasn't what was failing. \ No newline at end of file diff --git a/source/courier-to-mailman3.py b/source/courier-to-mailman3.py index ed6892a..033b1e1 100644 --- a/source/courier-to-mailman3.py +++ b/source/courier-to-mailman3.py @@ -65,7 +65,8 @@ try: # 5xx error else: raise -except smtplib.SMTPException as e: +except Exception as e: logger.error('lmtp error') + logger.error(traceback.format_exc()) logger.error('lmtp failed errorno: %s, message: %s', e.errno, e.strerror) exit(100) \ No newline at end of file