diff --git a/content/exim-sent-messages.rst b/content/exim-sent-messages.rst new file mode 100644 index 0000000000000000000000000000000000000000..9b39e4b746c56f115daf3b34de7f77ec7c814ff3 --- /dev/null +++ b/content/exim-sent-messages.rst @@ -0,0 +1,18 @@ +Saving sent messages with Exim +============================== + +:date: 2021-05-08 +:summary: Saving sent messages with Exim + +In shore.co.il I use the Exim mail transfer agent (SMTP server) along with the +Dovecot IMAP server. Messages received in Exim are sent to Dovecot over LMTP. So +far, pretty standard stuff. All of the configuration and setup can be seen in my +`GitLab instance <https://www.shore.co.il/blog/ldap-auth/>`_. + +I wanted to save sent messages to a folder (like GMail does) but didn't find a +way to do that over LMTP documented anywhere so here's what I did. I created a +router in Exim that if the sender is one of the local domains (domains Exim +receives messages for), then they're redirected to the LMTP transport but with +``+Sent`` suffix attached so they're saved to the ``Sent`` folder. You can see +the configuration `here +<https://git.shore.co.il/shore/mail-docker/-/blob/master/exim4/exim4.conf#L665>`_.