#!/bin/env php $active]); foreach ($vacations_that_need_deactivating as $row) { try { $vh = new VacationHandler($row['email']); error_log(__FILE__ . " - I need to disable the postfixadmin vacation stuff for : {$row['email']} as it should end at {$row['activeuntil']}"); $vh->remove(); } catch (\Exception $e) { error_log(__FILE__ . " - failed to remove postfixadmin vacation settings for user." . $e->getMessage()); } }