The plain AUTH was separating the username and password with
"\\0". These are two characters, 5C '\' 30 '0' .
This patch changes it to use "\0" which is a single character, 00 NUL.
It also includes a test script to try sending email with only PLAIN