5188[50431f8]: 2998a00:mail.mailasail.com:S-INBOX.Drafts:SendData:
5188[50431f8]: ReadNextLine [stream=2e682c8 nb=49 needmore=0] 5188[50431f8]: 2998a00:mail.mailasail.com:S-INBOX.Drafts:CreateNewLineFromSocket: 10 NO Error in IMAP command received by server.
I just tried this connecting back to the server *without* the proxy inline and it works perfectly - debug log is almost identical except for the last line which reads:
5220[5dbc968]: 571ab90:localhost:S-INBOX.Drafts:CreateNewLineFromSocket: 8 OK [APPENDUID 1006384217 224] APPEND Ok.
Could it be that Dovecot is returning the error due to some problem with the way it's parsing the request or is dovecot strictly proxying the traffic backwards and forwards? (In which case could it be mangling the stream in some way which causes the remove to error?)
Grateful for any help debugging
Ed W