Prepare a large stockpot, food mill, jars, lids, and your water bath canner.
Place the chopped tomatoes, onions, garlic, coriander, cumin, paprika, turmeric, ginger powder, garam masala, black pepper, cayenne, salt, and sugar into a large saucepan or stockpot. Bring the mixture to a boil.
Reduce the heat and simmer for 2 hours, stirring occasionally.
Press the mixture through a food mill and discard the seeds and any skins that remain.
Return the milled sauce to the pot and cook over medium-high heat until thick, stirring frequently to prevent scorching.
Add 1 tablespoon bottled lime juice or 1/4 teaspoon citric acid to each hot pint jar.
Ladle the hot sauce into jars, leaving 1/2 inch headspace. Remove air bubbles, wipe rims, apply lids, and tighten bands to fingertip tight.
Process in a boiling water bath for 35 minutes for half-pints or pints under 1,000 feet in elevation. Between 1,000 and 6,000 feet, process for 40 minutes, and above 6,000 feet, process jars for 45 minutes.
Remove the jars and let them cool undisturbed for 12 to 24 hours. Check seals before storing.