It's not nice to go mucking around in someone else's namespace. Further, when you alias a filehandle, your stdio library is going to get very confused when you seek, tell, close, dup and do other things to the underlying filehandle.
Use the open(MAILPIPE, ">&STDOUT") or die idiom instead.