Twice now I’ve needed to research why an email being sent out from our domains seems not to arrive where it should. Sometimes, though, I might not get a support request for a few days.
Right now, when I do something like:
sudo docker compose logs | grep example.com >> ~/search-example.txt
… I only get a couple days worth of data. And honestly, not being a docker or Linux expert, I’m not even sure where the raw log files are. If I had my choice, I’d pull the logs out every so often on some scheduled tag, preferably compressed, and pull them to my home machine. (I own all the domains, just my wife and I, not biz anything.)
Is there a way I could at least expand the log retention to a month? I know it’ll make the docker containers bigger, but that’s a small price to pay. I wouldn’t mind having them come on out, like I said above, to some archive I can somehow grab and pull to my home NAS if anyone can point me in that direction.
Thanks in advance for any advice. Obviously, this is mailcow-dockerized.