Thank you for the dovecot.conf.
I am not completely understanding step 7:
and change which part?
This is what I have in line 261 ish.
$sql = "UPDATE mail_user SET disableimap = '$disableimap', disablepop3 = '$disablepop3', disablesmtp = '$disablesmtp', disabledeliver = '$disabledeliver' WHERE mailuser_id = ".$this->id;
Is this the part you mean and how should I change that?