Skip to main content

Can't login to Webmail using dovecot master password

Comments

3 comments

  • cPWilliamL
    Hi @Andriy, I'm afraid this isn't something you would be able to change, as this webmail is served by cpsrvd, which is compiled in; the changes would need to be made in cPanel's core code. I'd recommend submitting a feature request. Thanks,
    0
  • haneef95
    Brilliant! @Andriy, may I know how you enabled master password please? Basically, we're on a shared hosting and would like to move our emails over to Office 365/Exchange Online. We don't want to change user's passwords, so, I'm hoping to use the any_user@mydomain.com So, in my scenario, how can I create a master user that is able to IMAP to any user that are in mydomain.com or within my cPanel user? P.S: I found another solution (Master User solution that requires me to edit configuration files that aren't available for me to access. So, that leads me onto another idea. Can cPanel users have their own dovecot configuration files? Thanks,
    0
  • cPanelMichael
    Hello @haneef95 It's not possible to modify the Dovecot configuration without root access to the system. One potential workaround would be to take the following steps: 1. Make a backup of the shadow file associated with the domain name located at /home/username/etc/domain.tld/shadow. EX: cp -a /home/username/etc/domain.tld/shadow /home/username/etc/domain.tld/shadow-backup
    2. Change the passwords for all email accounts that you need access to via the "Email Accounts" option in cPanel. 3. Perform whichever actions you need to perform in order to transfer the email data to another application. 4. Once the data is moved over, move the previous shadow file back into place and removed the cached password data. EX: mv /home/username/etc/domain.tld/shadow /home/username/etc/domain.tld/shadow-no-longer-needed mv /home/username/etc/domain.tld/shadow-backup /home/username/etc/domain.tld/shadow rm /home/username/etc/domain.tld/@pwcache/*
    This way, you have temporary access to authenticate to the email accounts for mail transfer purposes, and the original email passwords are restored after you've completed the transfer. Thank you.
    0

Please sign in to leave a comment.