On Mon, 14 Sep 2020 16:55:43 -0000, Josh Rickmar wrote: > Some email accounts use account names that include the @host portion, > and this broke the server and credentials parsing in smtp(1). Sometimes > I see these @ characters encoded as %40, but smtp(1) was not decoding > these url escape sequences before base64 encoding and talking with the > server. > > Searching for the last @ character instead of the first is a simple > fix. This mail was sent using this diff.
Yes, that seems like the simplest approach and matches how smtpd handles user@host strings. I've committed the patch, thanks. - todd