-
-
Notifications
You must be signed in to change notification settings - Fork 689
Description
- [√] I already searched past issues
- [√] I already checked the wiki/TODO page
Is your feature request related to a problem? Please describe.
I am implementing a plugin that mimics the behavior of major email providers that maintain a Sent folder of sent emails (even though on those providers this might not be an IMAP mailbox but an ad-hoc folder on the web page). Sometimes tools don't place a copy in Sent via IMAP nor Bcc the sender, and I think it is a good idea to have a full record of sent mails maintained by Haraka.
It works by creating a duplication of submitted mails, which is tagged with a header flag and enveloped to the sender. Then a sieve on the sender's mailbox places it into a special mailbox (for example, ServerSent).
Now it mostly works, however the duplicated mails (via send_email) don't get delivered via LMTP. I tried to modify haraka-plugin-dovecot to hook onto pre_send_trans_email, however this isn't easy because there aren't per-recipient hooks for Haraka-generated mails.
Describe the solution you'd like
Add option to allow Haraka-generated emails to go through a similar path as inbound emails
Describe alternatives you've considered
Add per-recipient hooks dedicated for Haraka-generated emails (like pre_send_trans_email)
Currently I'm trying to workaround this issue by letting Haraka deliver the mail to itself via SMTP.