This file is indexed.

/usr/share/courier/webadmin/admin-05local.pl is in courier-mta 0.78.0-2ubuntu2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/perl
#
# TITLE: Local mail delivery setup
#
#
# Copyright 2001 Double Precision, Inc.  See COPYING for
# distribution information.

if ($cgi->param("Submit"))
{
    my $type=$cgi->param("defaultdeliverytype");

    my $dotforward=
	$cgi->param("dotforward") ? "|| $bindir/dotforward\n":"";

    my $cmd=
	$type eq "maildir" ? "${dotforward}./Maildir":
	    $type eq "procmail" ? "${dotforward}| $bindir/preline /usr/bin/procmail":
		$type eq "maildrop" ? "${dotforward}| $bindir/maildrop":
		    $cgi->param("defaultdeliverytxt");

    $cmd =~ s/\r//g;

    ReplaceEnvVarConfigFile("courierd", "DEFAULTDELIVERY", $cmd);
    changed("courier stop", "courier start");
}

my $vars=ReadEnvVarConfigFile("courierd");

my $cmd=$$vars{'DEFAULTDELIVERY'};

display_form("admin-05local.html",
	     {
		 "DEFAULTDELIVERY" =>
		     (
		      "<tt><textarea cols=\"75\" rows=\"4\" name=\"defaultdeliverytxt\">"
		      . htmlescape($cmd)
		      . "</textarea></tt>"
		      )
		     }
	     );