What matters for this problem is just a file named 'ispconfig_mailsize' as this is used to chose the method to gather the mail traffic data, if this file does not exist anywhere in /var/vmail, then the script will run in dovecot mode.