Cook pasta until ala dente. Drain and rinse well with cold water.
Bring vinegar and sugar to a simmer in a saucepan. Stir until sugar dissolves. Remove from heat and allow to cool. Place macaroni in a bowl and pour the brine over it. Refrigerate for at least 24 hours.
To serve:
Drain the macaroni from the brine. Mix the mayonnaise, basil, salt and pepper together. Add pasta, tomatoes, green peppers, cucumber and red onion. Toss to combine. Serve.
Serves 6 - 8.