http://members.cox.net/kpfleming/exim/exim-4.12-authenticated_sender-patch
Patch allows override of Exim's stored authenticated_sender value (or
setting if there is none) on the SMTP transport driver by providing an
expanded string value as follows:
local_delivery:
driver = smtp
protocol = lmtp
hosts_require_auth = ...
authenticated_sender = $local_part
This patch was created so that using the SMTP transport in LMTP mode to
deliver mail to Cyrus IMAP could provide the proper local part as the
"authenticated sender", removing the need for IMAP subfolders to be
assigned special ACLs to allow direct delivery to those subfolders.
Once the patch has been incorporated into the main Exim distribution
<G>, I'll post an updated, complete Exim 4.x/Cyrus IMAP 2.1.x recipe.