Atomic modelling and systematic mutagenesis identify residues in multiple drug binding sites that are essential for drug resistance in the major Candida transporter Cdr1.