From: Stéphane Jacob Date: Sun, 6 Mar 2011 19:12:04 +0000 (+0100) Subject: Checks domain with too many aliasing levels. X-Git-Tag: xorg/1.1.0~67 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e4a138be2414e06bf4002d6e1eec16637b73bd50;p=platal.git Checks domain with too many aliasing levels. Signed-off-by: Stéphane Jacob --- diff --git a/bin/cron/checkdb.php b/bin/cron/checkdb.php index 5eef761..fee4057 100755 --- a/bin/cron/checkdb.php +++ b/bin/cron/checkdb.php @@ -210,6 +210,13 @@ check("SELECT p.* WHERE p.link_id = g.id)", "Téléphones de type 'group' reliés à un groupe inexistant."); +// List domain aliasing with depth higher than 1: they will not be found by postfix. +check("SELECT evd.name + FROM email_virtual_domains AS evd + INNER JOIN email_virtual_domains AS evd2 ON (evd.aliasing = evd2.id) + WHERE evd2.id != evd2.aliasing", + "Domaines aliasés de niveau 2 ou plus qui ne sont pas vu par postfix."); + // Counts empty profile fields that should never be empty. infoCountEmpty('profile_addresses', 'type'); infoCountEmpty('profile_phones', 'link_type');