This file is indexed.

/etc/network/if-down.d/postfix is in postfix 2.11.0-1.

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
#!/bin/sh -e

# Called when an interface disconnects
# Written by LaMont Jones <lamont@debian.org>

# start or reload Postfix as needed

# If /usr isn't mounted yet, silently bail.
if [ ! -d /usr/lib/postfix ]; then
	exit 0
fi

RUNNING=""
# If master is running, force a queue run to unload any mail that is
# hanging around.  Yes, sendmail is a symlink...
if [ -f /var/spool/postfix/pid/master.pid ]; then
	pid=$(sed 's/ //g' /var/spool/postfix/pid/master.pid)
	exe=$(ls -l /proc/$pid/exe 2>/dev/null | sed 's/.* //;s/.*\///')
	if [ "X$exe" = "Xmaster" ]; then
		RUNNING="y"
	fi
fi

if [ ! -x /sbin/resolvconf ]; then
	f=/etc/resolv.conf
	if ! cp $f $(postconf -h queue_directory)$f 2>/dev/null; then
		exit 0
	fi
	if [ -n "$RUNNING" ]; then
		/etc/init.d/postfix reload >/dev/null 2>&1
	fi
fi

exit 0