Is there a way to access mail.log for grepping (or to get similar solution)?
docker logs postfix gets very long and grep get ignored. Also older logs can't be viewed with this way.
Hi, use another logging driver in Docker for persistent logs: https://mailcow.github.io/mailcow-dockerized-docs/firststeps-logging/
Grep is not ignored for docker-compose logs postfix. Perhaps you were using docker instead of docker-compose.
You could also use portainer (a web based docker gui) and use it's log parsing windows on the container of your choice.
https://mailcow.github.io/mailcow-dockerized-docs/third_party-portainer/

Many thanks for your help @sriccio + @andryyy ! :) We use now Graylog for logging within mailcow. Additionally nice thing is that we added our other serves and now the logs are now central retrievable. :)
Most helpful comment
You could also use portainer (a web based docker gui) and use it's log parsing windows on the container of your choice.
https://mailcow.github.io/mailcow-dockerized-docs/third_party-portainer/