On Tue, Apr 27, 2021 at 06:27:29PM +0300, Dmitriy Matrosov via Exim-users wrote: > I'm thinking about identifying original message recipient > (i.e. "shared" mailbox) using Message-ID header, and then looking up > its aliases, but it seems Message-ID does not contain localpart, > only domain.
Just construct your own Message-Id header, including $local_part, then replace original header with headers_add/headers_remove (in routers) or add_header/remove_header (in ACLs). Some marker string, including $local_part, may be safely join (left) to the original message-id. But take into account that message-ids, listed in References and In-Reply-To headers of outgoing mails, are hooks for building threads. So alternating Message-Id header for incoming mail you could mark reply, but may occationaly break representaion of threads for the recipients. -- Eugene Berdnikov -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/