Rework the envelope flushing loops in mta to avoid sending all delivery
notifications in one go to the queue.