I’m afraid it’s not possible to login with usernames that you can’t use because of your programs.
Only workaround I see is to use a mail alias with the long name and to make the default mail address internal so it’s not possible to receive mails to the default address from outside. For sending mails using the correct address, you could use identities in SOGo, see this post.