October 20, 2016, 12:39pm
I just installed phplist and I noticed that is trying to connect to the internet.
I have read in the forum that there is some functionality like checking for updates, news, etc that required phplist to call back home, which is fine.
however, I can only enable Internet access to production servers via a proxy which will filter the requrest URLs.
I could not find a parameter in either config.php or extended config for setting up a proxy,
How can I setup a proxy for phplist?
There is no configuration setting for setting up a proxy server, within phpList.
Your general approach is to set the fqdn of the phpList machine to the fqdn of the proxy server, and when the click urls/unsubscribe urls arrive at the proxy server, have that machine forward them to phpList machine…
The setting for the fqdn of the phpList machine is “Config”/“Settings”/“Website address (without http://)”
The phpList machine will send responses to these urls, so make sure that’s possible, too.
October 21, 2016, 2:31pm
Reverse proxy (for handling incoming requests) is not the problem. That seems to be working.
The problem is the outgoing requests from phpList.
PhpList is making a number of HTTP/S calls, for example requesting RSS Feeds from
I dont know how to set a proxy for those requests.
The problem is that then I would need to enable full HTTPS internet access from our phplist server. Unless we can restrict by IPs or URLs requested (via proxy whitelisting).
October 22, 2016, 6:20am
@rvalle The outgoing requests will be to phplist.com or phplist.org (or maybe a subdomain of those) so whitelisting might be the simplest approach.
This serverfault topic
http://serverfault.com/questions/191265/php-on-linux-how-to-make-php-use-proxy-settings-to-connect-to-internet has two suggestions - use an environment variable, or use stream_context_set_default() to set a default proxy.
October 26, 2016, 1:11pm
an environment variable is not very convenient for us.
stream_context_set_default() I presume is a PHP function. In which file would you suggest to use it?
In the config.php?
October 26, 2016, 1:27pm
@rvalle See http://php.net/manual/en/function.stream-context-set-default.php which has an example of setting the default proxy.
You should be able to add the code to the config.php file.
January 6, 2017, 9:31am
I had the same issue.
Setting the environment variable is not working at all.
To solve the issue in config.php :
$default_opts = array(
February 20, 2017, 10:26am
Thanks! I will give it a try.