When a person opts out of marketing emails, you can select the "Do not email" box on their person record.
When it is time to run a report on email addresses for your mailing list, you will see a rule and columns options for marketing preferences. To exclude people who have opted out, just add a rule for "Do not Email" matches "No."