Mutt/Neomutt Maildir not saving sent email

Abstract: Fix Mutt and Neomutt failing to save sent emails by correcting the record variable syntax, ensuring proper directory permissions, and aligning folder settings.

Created: 2026-07-28 by
Mutt and Neomutt fail to save sent messages when the maildir variable is misconfigured or conflicts with the record setting. The most common cause is that the client sends mail successfully but drops the copy because it cannot write to the specified directory, often due to incorrect path syntax, missing permissions, or a mismatch between the folder and record variables in the configuration file.

Understanding the Maildir Record Mechanism

To solve this issue, you must understand how Mutt handles the storage of sent items. By default, Mutt attempts to save a copy of every outgoing message to a designated folder. This behavior is controlled by two primary variables: folder, which defines the base directory for your mailbox, and record, which specifies where sent mail should be stored. If these are not aligned correctly, Mutt may silently fail to save the email, leaving you with no trace of what you sent. In a standard Maildir setup, the folder variable typically points to the root of your Maildir structure (e.g., ~/Maildir). The record variable should then point to the specific subdirectory within that structure where sent messages belong. For Maildir, this is almost always the .Sent directory inside your main Maildir path. If record is left undefined, Mutt might attempt to use a default value that does not match your current folder configuration, leading to a silent failure.

Verifying Your Configuration Variables

The first step in troubleshooting is to inspect your muttrc or neomuttrc file. Look for lines starting with set folder= and set record=. A correct configuration for a user whose home directory is /home/user would look like this:
set folder = "~/Maildir"
set record = "+.Sent"
Notice the use of the plus sign (+) before .Sent. In Mutt syntax, the plus sign indicates that the following string is relative to the folder variable. Without it, Mutt interprets .Sent as an absolute path from the root of your filesystem, which will likely result in permission denied errors or non-existent directories. If you see set record = ".Sent" without the plus sign, this is a primary suspect for why your emails are disappearing after sending.

Checking Directory Permissions and Ownership

Even if your configuration syntax is perfect, Mutt will not save sent emails if the target directory lacks the necessary write permissions. Maildir formats rely on creating individual files for each message in the .Sent/new subdirectory. You must ensure that the user running Mutt has full read, write, and execute access to the ~/Maildir/.Sent directory and its subdirectories. You can verify permissions using the ls -ld command on the terminal:
ls -ld ~/Maildir/.Sent
ls -ld ~/Maildir/.Sent/new
If the output shows that the owner is not your current user, or if the write bit (w) is missing for the owner, Mutt will fail to create the new message files. To fix this, you can recursively change the ownership and permissions:
chown -R $USER:$USER ~/Maildir
chmod -R u+rwX ~/Maildir
Be cautious when applying recursive changes to ensure you do not inadvertently alter permissions on other sensitive files in your home directory. The X flag ensures that only directories and executable files get execute permissions, while regular files get read and write permissions.

Distinguishing Between Send Errors and Save Failures

It is crucial to determine whether the email is actually being sent or if it is failing at the storage stage. If you receive an error message immediately after pressing Enter, such as "Could not send the message," the issue lies with your SMTP server configuration, not the local saving mechanism. However, if the email appears to send normally but simply vanishes from view, the problem is almost certainly the record path or permissions. You can test this by configuring Mutt to log its actions. Add the following line to your configuration file temporarily:
set debug_file = "/tmp/mutt_debug.log"
After sending a test email, check the log file for any warnings related to writing to the record folder. Look for lines indicating "Permission denied" or "No such file or directory." This diagnostic step provides concrete evidence of where the process breaks down, allowing you to apply the correct fix rather than guessing. For users who need to manage their email infrastructure remotely, understanding local client configurations is just as important as network connectivity. If you are setting up a complex environment, you might also find it helpful to review how to connect a mail server securely over a private network, as detailed in our guide on connecting mail servers with Tailscale.

Handling Alternative Storage Formats

While Maildir is the modern standard, some legacy systems still use mbox format. If you have accidentally switched your folder variable to an mbox-style path while keeping record configured for Maildir, conflicts will arise. Conversely, if you are migrating from mbox to Maildir, you must ensure that all existing sent messages are converted to the Maildir structure before enabling the save feature. If you are strictly using Maildir, avoid mixing mbox-specific commands like append with Maildir paths. Ensure that your IMAP sync tools (if used) are aware of the .Sent folder location. Some IMAP clients assume sent mail is in a top-level Sent folder rather than a hidden .Sent folder. If you use a webmail interface alongside Mutt, verify that both clients are pointing to the same physical directory to prevent synchronization conflicts.

Resetting the Record Variable Temporarily

If you are unable to resolve the issue immediately, you can disable the automatic saving of sent mail to prevent further confusion. Add the following line to your configuration:
set record = ""
This tells Mutt not to save copies locally. While this solves the immediate error, it means you will lose a local archive of your sent correspondence. Use this only as a temporary measure while you debug the underlying path or permission issues. Once you have corrected the record path and verified permissions, remove this line to restore normal functionality. Remember that Mutt is highly configurable, and small typos in path definitions can lead to significant operational gaps. Always test your configuration changes with a single test email before relying on the system for critical communication.

Frequently Asked Questions

Why does my sent email appear in the IMAP server but not locally?

This indicates that the SMTP transmission was successful, but the local record variable is misconfigured. Check that your record path uses the plus sign prefix to reference the local folder directory correctly.

Can I save sent emails to a different folder than .Sent?

Yes, you can set record to any valid Maildir subdirectory, such as "+Archive/Sent". Just ensure that the directory exists and that you have write permissions to it before sending any mail.

What happens if the .Sent directory does not exist?

Mutt will fail to save the email and may print a warning to the screen or log file. It does not automatically create the directory for you. You must manually create ~/Maildir/.Sent and its new subdirectory.

Does Neomutt handle Maildir differently than Mutt?

No, Neomutt is a fork of Mutt and shares the same core configuration syntax for Maildir handling. The folder and record variables function identically in both clients.

How do I fix permission errors without changing global ownership?

You can use chmod to add write permissions specifically for your user on the .Sent directory. Run chmod u+w ~/Maildir/.Sent to grant write access to the owner without altering group or other permissions.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More