diff -Nru postfix-3.1.0/debian/changelog postfix-3.1.0/debian/changelog --- postfix-3.1.0/debian/changelog 2016-04-11 14:12:56.000000000 +0000 +++ postfix-3.1.0/debian/changelog 2016-04-13 16:46:28.000000000 +0000 @@ -1,3 +1,9 @@ +postfix (3.1.0-3) unstable; urgency=medium + + * By default, include $myhostname into $mydestinations. + + -- LaMont Jones Wed, 13 Apr 2016 10:21:24 -0600 + postfix (3.1.0-2) unstable; urgency=medium * cleanup changelog. diff -Nru postfix-3.1.0/debian/postfix.config postfix-3.1.0/debian/postfix.config --- postfix-3.1.0/debian/postfix.config 2016-04-11 14:12:56.000000000 +0000 +++ postfix-3.1.0/debian/postfix.config 2016-04-13 16:22:12.000000000 +0000 @@ -225,14 +225,14 @@ } else { if ($mailertype eq "Internet Site") { if ($mailname eq $hostname) { - $destinations = join ", ",($mailname, "localhost." . $domain, ", localhost"); + $destinations = join ", ",("\$myhostname", $mailname, "localhost." . $domain, ", localhost"); } else { - $destinations = join ", ",($mailname, $hostname, "localhost." . $domain . ", localhost"); + $destinations = join ", ",("\$myhostname", $mailname, $hostname, "localhost." . $domain . ", localhost"); } } else { # don't accept mail for $mailname by default if we have a relayhost or local only mail, # unless the mailname bears no resemblance to $myorigin. - $destinations = join ", ",($hostname, "localhost." . $domain . ", localhost" ); + $destinations = join ", ",("\$myhostname", $hostname, "localhost." . $domain . ", localhost" ); unless ( $hostname =~ m/(^|[\.])$mailname$/ ) { $destinations = $mailname . ", " . $destinations; }