2.0 KiB
2.0 KiB
courier-to-mailman3.py
This is our current version trying to communicate between courier and mailman3.
Changes
2024 May 29
- First change is changing the name to match what I have on the server.
- Second change is to have the
#!
path hopefully pointing in the right place. - Which I screwed up. I think I was typing in the wrong window.
- It's not failing on command line.
- Still failing, let's get some logging.
- Moved logging initialization, and included print statements.
- OK, it's logging now (it may have been but not in the right location)
- It wasn't formatting correctly.
- Testing different way to handle formatting.
- Nope used
Format
notFormater
. - This is not working
- Nope used
- Reverting to previous formatting
- No idea what steps we've gone through to get here.
- Let's try again.
- OK, basicSettings all set at once.
- This sorts it, now let's get a date format working
- Now let's see if this works...
- Date format set:
- Level and File set in variable
- Format had errors with
$
used instead of%
- Clean up logging to not log what was logged for logging diagnostics.
- Logging host and port on same line.
- 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?
- Hm, go with bare "Exception"... The catch wasn't what was failing.
- Let's try that instead?
- Oh man... Variable not properly defined (or more derferenced.)
- OK, it's failing further along, so maybe this works?
- I see...
- The parsing of the environment variables is failing, but let's try this.
- That's not doing it... Might need to create users?
- OK, let's see if what I need is in the headers...
- Using the "To" header... Let's see if that gets us anywhere.
- It's not finding it.
- Oh man
To
vs'To'
- Progress... But getting, "line too long" this seems like I need the replace that I had before.
- OK, that's progress... But not sure what, failing to get logs that are useful.