Mail-in-a-Box: Sent Emails Not Appearing in Webmail Sent Folder

Issue: Sent emails not appearing in webmail’s Sent folder despite successful delivery
Environment: Mail-in-a-Box on Ubuntu 22.04
Configuration: Dovecot with Sieve enabled

Steps to reproduce:

  1. Send email via SMTP/webmail
  2. Email delivers successfully (logs confirm)
  3. Sent folder in webmail remains empty

Current configuration:

  • Sieve rules set for copying to Sent folder
  • Proper folder permissions verified
  • Mail delivery logs show successful sending
  • DKIM, SPF, DMARC all pass

Tested solutions:

  1. Created Sent folder structure
  2. Configured sieve rules
  3. Updated dovecot permissions
  4. Verified mail delivery paths

Expected behavior: Sent emails appear in webmail’s Sent folder
Actual behavior: Sent folder remains empty despite successful email delivery

Logs and configurations available upon request.

With the default configuration of Mail-in-a-Box, moving sent emails to the Sent folder should work out of the box and no further configuration should be required.

Have you actively configured/changed any of the above? If so, please post the details of what you configured or changed, otherwise it will be rather difficult for forum members to help you.

1 Like

I am not sure what exactly is the question but I think you are asking why Roundcube is not showing sent messages in its SENT folder when you send from other non-webmail clients. This is a known issue. Go to roundcube Settings>> Preferences>>Special Folders. See if SENT is set to SENT or to Sent Messages.
Also you may try to swtch on Show Real Names for Folders. See if this helps. Different clients create Sent Messages folder like Apple Mail and Thunderbird, Outlook. There is an option in them where to store the Sent messages.

Thank you for the suggestions. Unfortunately, I have already tried the recommended steps, but the issue persists.

Roundcube Special Folder Settings

  • Verified that “Sent” is selected as the default folder under Settings > Preferences > Special Folders.
  • Enabled “Show Real Names for Folders” to identify folder mappings, but no improvement.

@ashvanikumar

Please explain where/how the emails are originating that are not appearing in the sent folder. Are you sending them using Roundcube webmail, an email client such as Thunderbird via SMTP, your WordPress website with a SMTP plug in, or ???

Hi @alento,

I’m using two different methods to send emails:

  1. Node.js with Nodemailer (SMTP)
  2. Python scripts with SMTP

I’ve noticed that when I send emails through the webmail interface, they appear properly in the sent folder. However, when sending through either the Nodemailer SMTP implementation or the Python SMTP scripts, the sent emails don’t show up in the sent folder.

This seems to be specifically related to SMTP-based sending, as the same email address works as expected when used through the webmail interface.

Let me know if you need any additional information about my setup to help diagnose this issue.