On Mon, Jan 24, 2011 at 05:38:55PM +0000, polofuzzu wrote: > > Acting on the headers is broken by design. > > You should be acting on the envelope information, not headers. > > I wholeheartedly agree. But unfortunately that is the boundaries I have > been given to work with. The script is unmodifiable, sadly :(
No, it is broken and wrong even when the script is given. Mail simply does NOT work this way, and delivery to header addresses is dangerous and misguided. Mail loops, lost recipients, misdirected email, ... Perhaps you could explain why mail to this domain must be handled by a script, and why the script needs to ignore the actual recipients of the message and risk serious breakage by attempting to reconstruct the recipient list from the headers. -- Viktor.