Could you add the MAILFROM parameter to be used in addition to the MAILTO? Certain mail services require the FROM name to be the same as the username that is authenticated to send mail and will not send if the FROM is the usernm. See do_command.c line 432.