How do I build an affiliate marketing email list from scratch?

I’m just getting started with affiliate marketing and want to build an email list from the ground up, so I’m wondering what the best strategies are for attracting subscribers who are actually interested in my niche - should I start with a lead magnet, and if so, what types tend to convert best for affiliate offers?