In a blender or food processor, combine mayonnaise, onion, vinegar, and sugar. Season with Italian seasoning, garlic powder, salt, and pepper. Blend until smooth.