You can test whether you’re running the old mail-receiver like this.
docker exec mail-receiver bash -c "cat /etc/issue|grep Alpine"
If it’s Alpine, it’s the old one.
docker exec mail-receiver bash -c "cat /etc/issue|grep 'Debian GNU/Linux 11'"
If it’s Debian, it’s the new one.