In Spain the typical doorbell camera is illegal. In an apartment building it is illegal to have a camera on the door that points into "common" areas even though these are still private areas vis-a-vis the general public.