rt 4.2.15
[freeside.git] / rt / sbin / rt-validate-aliases.in
index 3db308a..4e571c6 100644 (file)
@@ -3,7 +3,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2018 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (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