[Solved] cPanel email autoconfig not working

Monarobase

Well-Known Member
#1
When I try to access autoconfig.domain.tld on a cPanel 11.36 server I get an error 500 message from litespeed with :

[ERROR] [REWRITE] Proxy target is not defined on external application list, please add a 'web server' with name '127.0.0.1'
What do I need to do exactly to fix this ?
 

webizen

Well-Known Member
#4
When I try to access autoconfig.domain.tld on a cPanel 11.36 server I get an error 500 message from litespeed with :



What do I need to do exactly to fix this ?
check External App (Admin Console => Configuration => Server) page. It seems Web Server (proxy) type External App was not defined or missing. If so, add them back.

Type Name Address Action
Web Server 127.0.0.1:2086 127.0.0.1:2086 View Edit Delete
Web Server 127.0.0.1:2077 127.0.0.1:2077 View Edit Delete
Web Server 127.0.0.1:2095 127.0.0.1:2095 View Edit Delete
Web Server 127.0.0.1:2082 127.0.0.1:2082 View Edit Delete
 

Monarobase

Well-Known Member
#5
They exist, but I don't think it's them that are causing this.

The lines causing this in cPanel's apache httpd.conf are :

RewriteCond %{HTTP_HOST} ^autodiscover\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autodiscover.cgi [P]
RewriteCond %{HTTP_HOST} ^autoconfig\.
RewriteRule ^[^?]*(\?.*)? http://127.0.0.1/cgi-sys/autoconfig.cgi [P]
As you can see it doesn't use any of the above ports.

If I create one for port 80 will it cause issues with litespeed ? Shouldn't litespeed already respond to 127.0.0.1 on port 80 ?
 

Monarobase

Well-Known Member
#7
No luck so far !

I tried creating a webserver with name 127.0.0.1:80 but it didn't change anything to I set the name to 127.0.0.1 and the address to 127.0.0.1:80 but now autoconfig.domain.tld times out after 60 seconds with a 403 error and nothing in the error_log file.

Even without this entry un the listeners list I see :

Running 127.0.0.1:80 127.0.0.1:80
[APVH_IP1:80 IP2:443 IP3:80 IP4:443 IP5:80 IP6:443 IP7:80 IP8:443 IP9:80 127.0.0.1:80 *_hostname] * hostname cpanel.* whm.* webmail.* webdisk.* autodiscover.* autoconfig.*
As I updated to litespeed 4.2.2 just after updating to cPanel 11.36 and having not tried to access autoconfig.domain.tld before (this feature was first introduced in 11.34) I don't know if the probem was added by LS 4.2.2 or if LS was never working with the autoconfig subdomain
 

webizen

Well-Known Member
#8
...
As I updated to litespeed 4.2.2 just after updating to cPanel 11.36 and having not tried to access autoconfig.domain.tld before (this feature was first introduced in 11.34) I don't know if the probem was added by LS 4.2.2 or if LS was never working with the autoconfig subdomain
For proxy external app, it only handles http://127.0.0.1/ instead of alias like /sys-cgi/ which has to be defined as context in lsws (available at vhost level not server level). so this autoconfig and autodiscover which proxy through cgi-sys cgi is not working in lsws at the moment. will let you know once a fix is available.
 
Top