First backup the message to get latter the headers to know how it started before the 50000 loop
With qmail running
Service qpsmtpd stop
Then go to server manager and check for the qmail queue with qmail handle contrib
Select it and delete it, repeat it as many time as needed if you have more than one
Service qpsmtpd start