Patrick Ben Koetter: > Wietse, > > on mailstores (read: Dovecot) we often would like to know X-Original-To in > order to apply SIEVE-Rules against the X-Original-To value.
If Dovecot implements RFC 3461 then it should get the original recipient in the RCPT TO command. RCPT TO:<address> ORCPT=rfc822;encoded-address > Obviously it doesn't make sense to add that header and send it via SMTP/LMTP > if a message has more than one recipient. Well Exim does it,.... and Postfix can be made to do it with an smtpd_recipient_restrictions PCRE pattern of: /(.+)/ prepend X-Envelope-To: $1 > But what if we set > mumble_destination_recipient_limit=1. > > Would it then be safe and possible to forward X-Original-To via SMTP/LMTP? > Dovecot (or any other receiver) could use the information and add the header. In that case Postfix could be changed to add the header too. Wietse