Sure you CAN do it, but it's much more difficult than anything lse to self-host at home.
Shimitar
Dahua where top of the class, unfortunately hard to find today. I run like 8 of them.
Reolink maybe, but own one and not really at par with Dahua.
If anybody knows who is the successor to dahua, let me know.
Chaper than that, sorry, it's going to be shit.
Don't selfhost email at home. Tons of reasons why won't work, this is only the tip of the iceberg you are facing.
Indeed selfhost a mailserver, I do, but do it on a VPS. Of course, more the better, but a very cheap VPS is the bare minimum you gonna need.
No workaround there.
Unless you want a photo organizer like Immich, you can upload or better maybe link photos in dokuwik.
And you can write entire pages with photos, something you cannot do in immich or similar tools.
Self host dokuwiki. Simple, easy, effective. I do.
this is my own experience.
https://wiki.gardiol.org/