mail/xmail: Fix pty handling
Modernize to work with openpty(). Else we get this:
Error: xmail cannot open master/slave pipe connection
MFH: 2023Q3