Automatically save SMTP-authenticated outgoing emails to the Sent folder
Summary
I would like to request an optional feature that automatically stores emails sent through mailcow via authenticated SMTP in the Sent folder of the authenticated mailbox.
Currently, when an email client such as Outlook or Thunderbird sends an email, the client normally saves a copy to the Sent folder via IMAP.
However, many websites, applications, scanners, CRM systems and other devices only send the message through SMTP. As a result, the email is successfully sent through mailcow, but no copy appears in the Sent folder of the mailbox.
For example:
A website authenticates to mailcow using:
and sends an email to:
Mailcow successfully sends the message, but the mailbox owner cannot see this message in the Sent folder.
It would be useful if mailcow could optionally detect authenticated SMTP submissions and automatically store a copy of the submitted message in the Sent folder of the authenticated mailbox.
Ideally, this could be configurable per mailbox or domain, for example:
[ ] Save SMTP-authenticated outgoing messages to Sent
This should only apply to authenticated SMTP submissions and not to all outgoing mail handled by the server.
Related previous request: A similar feature was requested in 2017 in issue #598. That issue has since been closed. This request revisits the use case with a more specific proposal: making automatic Sent-folder storage optional for authenticated SMTP submissions, preferably configurable per mailbox or domain. https://github.com/mailcow/mailcow-dockerized/issues/598
Motivation
This would provide a complete outgoing email history for mailboxes that are also used by websites, applications, scanners, CRM systems or other SMTP-only devices.
In my own use case, applications send emails using the same mailboxes that users access through Outlook or webmail. Users expect the Sent folder to contain all messages sent from their mailbox, regardless of whether the message was sent from Outlook, webmail or an external application using SMTP.
Currently, SMTP-only messages are missing from that history.
This creates several practical problems:
- Users cannot see whether an application has already sent an email to a customer.
- There is no complete communication history in the mailbox.
- Troubleshooting becomes more difficult.
- Multiple users sharing or monitoring a mailbox cannot see all outgoing communication.
- Applications need their own separate implementation for storing sent messages via IMAP.
Having mailcow optionally handle this centrally would solve the problem for any SMTP client or application without requiring changes to each individual application.
I initially discussed this use case on the mailcow community forum, and other users indicated that they have the same requirement, for example for scanners and other SMTP-only devices.
Community discussion: https://community.mailcow.email/d/6168-feature-request-automatically-save-smtp-sent-emails-to-the-sent-folder
Additional context
No response
Source: mailcow/mailcow-dockerized