Postfix postfix configuration example for Ubuntu 14.04 LTS (Trusty Tahr)

Get the default configuration file postfix for Postfix, optimized for Ubuntu 14.04 LTS (Trusty Tahr). This example configuration ensures optimal compatibility and performance for Postfix, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/ppp/ip-up.d/postfix.

For more configurations and setup guides, visit our related files section to further customize your system.

    #!/bin/sh -e
# Called when a new interface comes up
# Written by LaMont Jones <lamont@debian.org>

# don't bother to restart postfix when lo is configured.
if [ "$IFACE" = "lo" ]; then
	exit 0
fi

# 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

# start or reload Postfix as needed
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

# If master is running, force a queue run to unload any mail that is
# hanging around.  Yes, sendmail is a symlink...
if [ -n "$RUNNING" ]; then
	if [ -x /usr/sbin/sendmail ]; then
		/usr/sbin/sendmail -q >/dev/null 2>&1
	fi
fi

    
  

Config Details

Location
/etc/ppp/ip-up.d/postfix
Operating system
Ubuntu 14.04 LTS (Trusty Tahr)
Length
43 lines
MD5 checksum
fccc53fc4eeeab46941ebcc95a71e766

Usage

Download the raw file with wget or curl

Wget

wget -O postfix.example https://exampleconfig.com/static/raw/postfix/ubuntu14.04/etc/ppp/ip-up.d/postfix

cURL

curl https://exampleconfig.com/static/raw/postfix/ubuntu14.04/etc/ppp/ip-up.d/postfix > postfix.example