findOrFail($this->domainId); $cmd = sprintf( 'sudo /usr/local/sbin/mailwolt-remove-dkim %s %s', escapeshellarg($domain->domain), escapeshellarg($this->selector) ); exec($cmd, $out, $rc); if ($rc !== 0) { throw new \RuntimeException("mailwolt-remove-dkim failed (rc={$rc})"); } } }