so long as you arent personally leaving the mail in their mailboxes, its perfectly legal. mailboxes can only accept mail that has been processed by the usps and delivered by a usps driver or amazon thanks to a government contract. if you were to slide them under front doors you should be alright as long as you dont continuously solicit.  tl;dr: one and done is okay. go for it.
United States