I don't know if there is a convention for whether the brackets should be included or not. But consistency is a virtue. The MTA in question is Postfix 2.9.6. I assumed it was the Dovecot LDA adding the Delivered-To header because it was rewritten when I did a redirect in sieve, but redirect must put the message back into Postfix's queue where the header gets added (or replaced, in this case).
Maybe other folks can chime in if they see emails in brackets (<>) or not for this type of header for other MTAs and we can get a sense of which is more common.
Jeff
Timo Sirainen mailto:tss@iki.fi July 10, 2014 at 11:29 AM
Oh, that's annoying. Dovecot LDA doesn't actually add this header, it was your MTA that added it. But looks like I hadn't checked what the MTAs actually write to the header when I added this feature to LMTP, and nobody had mentioned this before either. I wonder if anybody's system breaks if I just change it now..
Jeff Rice mailto:jeff@jrice.me July 9, 2014 at 2:20 PM Hi, I'm transitioning my server over from using the deliver LDA and LMTP.
Suddenly a bunch of sieve filters stopped working, and I noticed the contents of the Delivered-To header are different.Using Dovecot's deliver LDA, the contents are a bare email address (foo@bar.com). Using Dovecot LMTP, they are in brackets (foo@bar.com). Is there a reason why this isn't consistent between the two delivery agents? It seems like it ought to be.
Jeff