The monofunctional cobalamin biosynthesis enzyme precorrin-3B synthase (CobZRR) is essential for anaerobic photosynthesis in Rhodospirillum rubrum but not for aerobic dark metabolism.