On 2012-07-17 3:32 AM, Sean Kamath kamath@moltingpenguin.com wrote:
I was sure it wasn't a bug, it was a screwup on my part in the configuration, so I didn't read the bugreport page.
Actually, although it is called 'bugreport', you get to it via the 'Troubleshooting' link on the wiki...
But no worries, you've now provided everything that should be needed (I know nothing about sendmail, and won't be much help for the rest, but someone else will likely be able to see what is happening)...
I really thought it would be a simple "here's what you missed", since the logs are relatively uninformative...
The point is, what may appear to be uninformative to you may tell Timo (or someone else who knows what to look for) all they need to know to pinpoint the problem.
I certainly wasn't trying to be cryptic.
I know, but as you can see, the dovecot -n output really tells a lot - like what version you're on, and even what OS and filesystem.
Here's the complete set of everything. I wrote a little script to do this repeatedly, to make it easy to make changes and try again.
One thing I did notice is that you are sending this mail from an internal IP... since most people use very different checks for such mail (bypassing many/most checks), maybe you should be testing from an external address (one that comes in from outside your network)?
Note that in the last test, it works. Simply adding "X-Original-To: rewards+test@enoent.net" and sending the same message with "/usr/lib/sendmail -t< msg" will do what's expected.
Command: dovecot -n
# 2.0.13: /etc/dovecot/dovecot.conf
Also, it is always recommended when setting up a new server to start with the latest version... for 2.0.x that would be 2.0.19, but the latest is 2.1.8...
lda_original_recipient_header = X-Original-To lmtp_save_to_detail_mailbox = yes
Ok, I think this is the problem...
Dovecot's LMTP currently does NOT preserve the x-original-to header... in fact, brought this up recently (I was one of the ones interested in Timo adding support for it) on this (and the postfix, which is what I use) on this very list:
http://www.dovecot.org/list/dovecot/2012-April/065075.html
Apparently, after Timo discussed this on the postfix list, he determined that it would not be a very significant change for him to make to add support for this header in LMTP and that he would get to it sooner than later, but as of now, it has not been added.
--
Best regards,
Charles