Spam auto-deletes in Gmail after 30 days — but it can be helpful to check the folder to make sure useful messages aren't slipping through the cracks.
To set up a Gmail out-of-office reply, go to your Settings and set a start date, end date, and message.