Alternatively, you could remove until-successful and use an inbound VM or JMS endpoint with transactional delivery to perform retries on the outbound FTP endpoint.
could you please provide me the example on this with VM?
this related to below question
How about try something like the below
Look at transaction management in Mule to figure out how the retries can be controlled, right now its going to try endlessly
Now if you are wondering how the file outbound is part of the transaction have a look at this (Configuration Tips and Tricks) and this, hint here