X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Fsbin%2Frt-validate-aliases.in;h=93e28db4de8f669ea2e5766b7baa530003b796c0;hb=026dc7ad72ba972f230b6709e31fa64397d75ad4;hp=3db308aa168f13b33d19e129c9489a10c197d3e4;hpb=73a6a80a9ca5edbd43d139b7cb25bfee4abfd35e;p=freeside.git diff --git a/rt/sbin/rt-validate-aliases.in b/rt/sbin/rt-validate-aliases.in index 3db308aa1..93e28db4d 100644 --- a/rt/sbin/rt-validate-aliases.in +++ b/rt/sbin/rt-validate-aliases.in @@ -64,6 +64,7 @@ BEGIN { # BEGIN RT CMD BOILERPLATE } unshift @INC, $lib; } + } require RT; @@ -172,7 +173,7 @@ while (my $q = $queues->Next) { if (not $value) { my @other = grep {$_ ne $global{$setting}} @{$seen{lc $q->Name}{$action} || []}; - warn "CorrespondAddress not set on $qname, but in aliases as " + warn "$setting not set on $qname, but in aliases as " .join(" and ", @other) . "\n" if @other; next; } @@ -341,3 +342,32 @@ sub parse_line { return (); } } + +__END__ + +=head1 NAME + +rt-validate-aliases - Check an MTA alias file against RT queue configuration + +=head1 SYNOPSIS + +rt-validate-aliases [options] /etc/aliases + +=head1 OPTIONS + +=over + +=item C<--prefix> + +An expected address prefix used in the alias file + +=item C<--url> + +The root URL of your RT server (the same URL you expect to be passed to +rt-mailgate) + +=item C<--host> + +The host part of your RT email addresses + +=back