Using maidag with Exim is quite straightforward. The following example illustrates the definition of the appropriate transport and director in exim.conf:
# transport maidag_pipe: driver = pipe command = /usr/local/sbin/maidag $local_part return_path_add delivery_date_add envelope_to_add # director maidag: driver = localuser transport = maidag_pipe