Error 500 on webmail.example1.net

bro i figured it out using this method here , it now redirects correctly

custom URL for webmail