Need a little help

If using a PoE NVR I think you'll want to do it on the NVR as the cameras are on a subnet (10.1.1.x) that depending on your networking calisthenics can't reach the mail server.