summaryrefslogtreecommitdiff
path: root/debian/examples/resolvconf/update-libc.d/sendmail.in
blob: 4b135a84680dffe08e3289d35edfb18e81661a73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Make sendmail aware of changes to resolv.conf
# so that we can reset the statistics for unresolvable hostnames

# Purge any latent host status that might cause us to *NOT* send mail
AM='-Am';
if [ ! -f @datadir@/sendmail/cf/feature/msp.m4 ]; then
	AM='';
	fi;
@sbindir@/sendmail $AM -bH -O Timeout.hoststatus=1s;

# Start/reload sendmail as needed
#@sysconfdir@/init.d/sendmail reload || true;