There are upcoming maintenance events which may impact our services. Learn more

Webmail Login Fails when Session is passed from CPanel to Webmail. Print

  • 1

Cause: dovecot unable to log in on behalf of user. Error in /var/log/maillog:-
Jan 2 02:53:52 hosteduser dovecot: auth(default): Failed to lookup domain owner of hosteddomain.com

Root causes:-
1. hostname == hosted domain name == hosteddomain.com
Reference: http://forums.cpanel.net/f43/dovecot-auth-default-failed-lookup-domain-owner-294381.html

2. /etc/userdomains not updated with hosted domain name (hosteddomain.com)
Reference: http://frustratedtech.com/post/29972919642/imap-dovecot-showing-failed-to-lookup-domain-owner

Fixes:-

1. Change hostname via /etc/sysconfig/network (hosteddomain.com --> sv1.hosteddomain.com). If server is a VM, change the hostname in the VM's entry in SolusVM to ensure it persists in the next reboot.
2. Verify/add A record for host 'sv1.hosteddomain.com' in cpanel.
3. Ran /usr/local/cpanel/cpkeyclt to update cpanel license.
4. Added hosteddomain.com in /etc/userdomains
5. Restart dovecot:-
/etc/init.d/dovecot restart

Done.


Was this answer helpful?

« Back