X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fsbin%2Frt-validate-aliases.in;h=93e28db4de8f669ea2e5766b7baa530003b796c0;hp=5dbfaa4592816dd2db11b77b10b3e5a0ac1fcc63;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=7588a4ac90a9b07c08a3107cd1107d773be1c991 diff --git a/rt/sbin/rt-validate-aliases.in b/rt/sbin/rt-validate-aliases.in index 5dbfaa459..93e28db4d 100644 --- a/rt/sbin/rt-validate-aliases.in +++ b/rt/sbin/rt-validate-aliases.in @@ -3,7 +3,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2013 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC # # # (Except where explicitly superseded by other copyright notices) @@ -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