add rest api for mail forwarding