%set %%extra_domainnames = []
%for %%idx in %%range(%%len(%%zones_list))
  %if not idx
    %continue
  %end if
  %%extra_domainnames.append(%%getVar('domain_name_eth' + %%str(%%idx)))
%end for
%%get_certificate(%%domain_name_eth0, 'IMAPServer', extra_domainnames=%%extra_domainnames, hide=%%hide_secret)
