All that stuff is synced through iTunes (see the Info tab). You can sync Mail account settings, Calendars, Contacts, etc through iTunes, (but some of these are done over the air if you use MobileMe).