Automatically Deleting Emails

How do I change the preferences to insure emails older than 45 days do not get deleted and is there anyway to get the deleted ones back?

You can change inbox achiever preferences at
the inbox archive doesn’t delete by default it moves to an archive folder.

that assuming you are using dreamhost mail…