Combine vinegar, sugar, onions, allspice, peppercorns, and bay leaves. Heat mixture to boiling, stirring until sugar is dissolved; cool. Place fish fillets in a crock or jar and sprinkle with salt. Pour cooled vinegar mixture over fish. Cover crock or seal jar and refrigerate 24 hours before serving. Makes 1 quart.