We're running 7.2.0_GA_2669.UBUNTU10_64 UBUNTU10_64 FOSS edition on Ubuntu 10.04.4 LTS and have run into an odd issue. In certain cases, sent messages won't be saved in the 'sent' folder. Thankfully, receiving e-mail seems to work perfectly. Also, the issue is only on shared mailboxes. Personal mailboxes work fine.

The cases where sent mail is not saved are as follows:
  • Sending a reply in an existing email thread
  • Sending an original message, but saving as a draft first

To be clear, if a message is sent from a shared mailbox that starts a new e-mail thread, it shows up in the sent folder. Well, except when it is first saved as a draft.

My colleague mentioned this problem in another post where a user seemed to have the same issue (though that turned out to be user error).

When looking at "/opt/zimbra/log/mailbox.log", it looks like the e-mail entry is being put into the database, but when I look at the database with the MySql client, it's not there. The email also doesn't seem to be stored in "/opt/zimbra/store/path-to-individual-mailbox". I also haven't seen any trace of the missing messages in the redolog.

Here's the relevant section of "/opt/zimbra/log/mailbox.log" that was posted in the other thread, though the logs look just like this every time I send e-mail.

Code:
SoapEngine - dispatch: doc SendMsgRequest
soap - SendMsgRequest
soap - Adding message body, incrementing size by 999 to 999.
mailbox - beginning operation: getItemById
mailbox - ending operation
mailbox - clearing change
mailbox - beginning operation: getFolderByPath
mailbox - ending operation
mailbox - clearing change
mailbox - beginning operation: getItemById
mailbox - ending operation
mailbox - clearing change
store - stored /opt/zimbra/store/incoming/1342549479971-3.msg: data size=1571, file size=1571, isCompressed=false, volume=1
mailbox - beginning operation: addMessage
cache - Cache hit for conversation -500 in mailbox 4
mailbox -   found conversation -500 for hash: 2ibfSOj6uECDV+vJkTjYhMgIvuM=
MimeHandlerManager - Getting MIME handler for type text/plain, filename ''
MimeHandlerManager - Returning MIME handler: com.zimbra.cs.mime.handler.TextPlainHandler
mailop - Adding Message: id=501, Message-ID=<692490953.3.1342549721759.JavaMail.root@glow.feds.ca>, parentId=-1, folderId=5, folderName=Sent.
mailbox -   fetching new DB connection
sqltrace - INSERT INTO mboxgroup4.mail_item(mailbox_id,  id, type, parent_id, folder_id, index_id, imap_id, date, size, volume_id, blob_digest, unread, flags, tags, sender, subject, name, metadata, mod_metadata, change_date, mod_content) VALUES (4,  501, 5, NULL, 5, 501, 501, 1342549721, 1571, '1', 'FVQNh70XkPRJdp4MZDPORAzKmdQ=', 0, 1, 0, 'GLOW Coordinator', 'Round 2 TEST', NULL, 'd1:f153:PING1 __ Service Coordinator The Glow Centre for Sexual and Gender Diversity Federation of Students, University of Waterloo e. glow@glow.feds.ca | t. ...1:p4:Re: 1:s39:"Coordinator, GLOW" <glow@glow.feds.ca>1:t36:Brad Krane <brad.krane@uwaterloo.ca>1:vi10ee', 14401, 1342549721, 14401) - 0ms, conn=69518356
cache - cached message 501 in mailbox 4
cache - Cache hit for message 500 in mailbox 4
mailop - Adding Conversation: id=502, message(s): 500,501.
sqltrace - INSERT INTO mboxgroup4.mail_item(mailbox_id,  id, type, parent_id, folder_id, index_id, imap_id, date, size, volume_id, blob_digest, unread, flags, tags, sender, subject, name, metadata, mod_metadata, change_date, mod_content) VALUES (4,  502, 4, NULL, 9, NULL, NULL, 1342549721, 2, NULL, NULL, NULL, 1, 0, NULL, 'Round 2 TEST', NULL, 'd3:prt107:d1:X5:false2:enld1:a17:glow@glow.feds.ca1:d4:GLOW1:p16:GLOW Coordinatoree2:ldi1342549721000e2:noi2e1:vi10ee1:vi10ee', 14401, 1342549721, 14401) - 0ms, conn=69518356
cache - cached conversation 502 in mailbox 4
sqltrace - UPDATE mboxgroup4.mail_item SET parent_id = 502, mod_metadata = 14401, change_date = 1342549721 WHERE mailbox_id = 4 AND (id = 500 OR id = 501) - 0ms, conn=69518356
mailbox -   created conv 502 holding msg(s): 500,501
mailbox -   removed vconv -500
cache - Cache hit for message 500 in mailbox 4
cache - uncached virtual conversation -500 in mailbox 4
sqltrace - REPLACE INTO mboxgroup4.open_conversation(mailbox_id, hash, conv_id) VALUES (4, '2ibfSOj6uECDV+vJkTjYhMgIvuM=', 502) - 0ms, conn=69518356
FileDescriptorCache - Attempted to remove /opt/zimbra/store/0/4/msg/0/501-14401.msg but could not find it in the cache.
store - Linking /opt/zimbra/store/incoming/1342549479971-3.msg (size=1571, raw size=1571) to /opt/zimbra/store/0/4/msg/0/501-14401.msg for mailbox 4, id 501.
mailbox - ending operation: CreateMessage
sqltrace - UPDATE mailbox SET item_id_checkpoint = 502, contact_count = 3, change_checkpoint = 14401,  size_checkpoint = 23740, new_messages = 0, idx_deferred_count = 2, highest_indexed = '14300-480' WHERE id = 4 - 0ms, conn=69518356
sqltrace - UPDATE mboxgroup4.mail_item SET size = 25, unread = 0, metadata = 'd1:ai1e4:mseqi14401e2:szi23728e4:unxti502e1:vi10e2:vti5ee', mod_metadata = 1, change_date = 1311270592, mod_content = 1 WHERE mailbox_id = 4 AND id = 5 - 1ms, conn=69518356
mailbox - "Sent": updating folder counts (c25/d0/u0/du0/s23728)
redolog - txn 1342549480.5 [CreateMessage] ver=1.31, tstamp=1342549721773, change=14401, mailbox=4, id=501, rcpt=:API:, rcvDate=1342549721000, shared=false, blobDigest="FVQNh70XkPRJdp4MZDPORAzKmdQ=", size=1571, dataLen=1571, folder=5, conv=502, convFirstMsgId=500, calItemPartStat=NE, noICal=true, flags=1, tags="", bodyType=1, path=/opt/zimbra/store/incoming/1342549479971-3.msg
sqltrace - commit, conn=69518356
redolog - txn 1342549480.5 [CommitTxn] ver=1.31, tstamp=1342549721792, mailbox=4, txnType=CreateMessage
sqltrace - rollback, conn=69518356
mailbox - clearing change
store - Deleting /opt/zimbra/store/incoming/1342549479971-3.msg.
FileDescriptorCache - Attempted to remove /opt/zimbra/store/incoming/1342549479971-3.msg but could not find it in the cache.
smtp - Sending message to MTA at localhost: Message-ID=<692490953.3.1342549721759.JavaMail.root@glow.feds.ca>, origMsgId=e9e2105d-f795-4e1b-9eb7-9bee36743f7f:13081, replyType=r
smtp - Sending message <692490953.3.1342549721759.JavaMail.root@glow.feds.ca> to SMTP host localhost with properties: {mail.smtp.sendpartial=false, mail.smtp.from=glow@glow.feds.ca, mail.smtp.connectiontimeout=60000, mail.smtp.localhost=mail-clubs.feds.uwaterloo.ca, mail.smtp.host=localhost, mail.smtp.timeout=60000, mail.smtp.class=com.zimbra.cs.mailclient.smtp.SmtpTransport, mail.host=glow.feds.ca, mail.smtp.port=25, mail.smtps.sendpartial=false, mail.smtps.class=com.zimbra.cs.mailclient.smtp.SmtpsTransport}
smtp - setState: CLOSED -> NOT_AUTHENTICATED
smtp - setState: NOT_AUTHENTICATED -> CLOSED
mailbox - beginning operation: alterTag
cache - Cache hit for message 13081 in mailbox 18
cache - Cache hit for conversation 13082 in mailbox 18
mailop - Setting Flag \Answered (id=-3) for Message (id=13081).
mailbox -   fetching new DB connection
sqltrace - UPDATE mboxgroup18.mail_item SET flags = flags + 4, mod_metadata = 55503, change_date = 1342549721 WHERE mailbox_id = 18 AND NOT flags & 4 AND id = 13081 - 1ms, conn=69518356
mailbox - ending operation: AlterItemTag
sqltrace - UPDATE mboxgroup18.mail_item SET size = 1182, unread = 5, metadata = 'd1:ai1e4:mseqi55503e2:szi96021397e4:unxti13082e1:vi10e2:vti5ee', mod_metadata = 1, change_date = 1311270622, mod_content = 1 WHERE mailbox_id = 18 AND id = 2 - 1ms, conn=69518356
mailbox - "Inbox": updating folder counts (c1182/d0/u5/du0/s96021397)
redolog - txn 1342549480.6 [AlterItemTag] ver=1.31, tstamp=1342549721829, change=55503, mailbox=18, ids=[13081], type=5, tag=-3, tagged=true
sqltrace - commit, conn=69518356
redolog - txn 1342549480.6 [CommitTxn] ver=1.31, tstamp=1342549721846, mailbox=18, txnType=AlterItemTag
sqltrace - rollback, conn=69518356
mailbox - clearing change
mailbox - beginning operation: getSenderList
cache - Cache hit for conversation 502 in mailbox 4
mailbox - ending operation
mailbox - clearing change
mailbox - beginning operation: getEffectivePermissions
mailbox - ending operation
mailbox - clearing change