vhost.m4: Don't crash if `domains.conf' doesn't exist.
[exim-config] / vhost.m4
index 07ca79e..5e81f56 100644 (file)
--- a/vhost.m4
+++ b/vhost.m4
@@ -22,7 +22,9 @@
 ### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
 m4_define(<:VHOST:>,
-       <:domains = partial0-lsearch; CONF_sysconf_dir/domains.conf
+       <:domains = ${if exists{CONF_sysconf_dir/domains.conf} \
+                        {partial0-lsearch; CONF_sysconf_dir/domains.conf} \
+                        {}}
        condition = DOMKV($1):>)
 m4_define(<:VHOST_FILTER:>,
        <:FILTER_BASE