Appointments, contacts, and tasks can't be synchronized because the email server profile {0} is inactive or invalid. Associate ...

Appointments, contacts, and tasks can't be synchronized because the email server profile {0} is inactive or invalid. Associate the mailbox with an active email server profile, and enable the mailbox for appointments, contacts, and tasks synchronization.