#!/usr/local/bin/perl # list_masq.cgi # List domains for which masquerading is done require './sendmail-lib.pl'; $access{'masq'} || &error($text{'masq_ecannot'}); &ui_print_header(undef, $text{'masq_title'}, ""); $conf = &get_sendmailcf(); # Get the domain we masquerade as foreach $d (&find_type("D", $conf)) { if ($d->{'value'} =~ /^M\s*(\S*)/) { $masq = $1; } } # Get masquerading domains @mlist = &get_file_or_config($conf, "M"); # Get non-masqueraded domains @nlist = &get_file_or_config($conf, "N"); print "
\n"; print "$text{'masq_domain'}\n"; print "
\n"; print "
\n"; print "$text{'masq_domains'}
\n"; print "
\n"; print "$text{'masq_ndomains'}
\n"; print "
\n"; print "\n"; print "
\n"; print &text('masq_desc1', 'list_generics.cgi'),"

\n"; print $text{'masq_desc2'},"\n"; print "

\n"; print "
\n"; &ui_print_footer("", $text{'index_return'});