From a0f0597864a498a520b31d7b0ac73932a5911b73 Mon Sep 17 00:00:00 2001
From: "A. Karl Kornel" <akkornel@stanford.edu>
Date: Tue, 23 Aug 2016 11:39:23 -0700
Subject: [PATCH] postfix: Use base::postfix::sender

---
 manifests/postfix.pp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/manifests/postfix.pp b/manifests/postfix.pp
index 276b79c..9944860 100644
--- a/manifests/postfix.pp
+++ b/manifests/postfix.pp
@@ -54,11 +54,16 @@ class base::postfix {
     '/etc/postfix/recipients':
       ensure  => present;
     '/etc/postfix/senders':
-      content => "root@stanford.edu root@${::hostname}\n";
+      ensure  => present;
     '/etc/postfix/transport':
       source  => 'puppet:///modules/base/postfix/etc/postfix/transport';
   }
 
+  # Have mail from root@stanford.edu come from root at the local system
+  base::postfix::sender { 'root@stanford.edu':
+    ensure => "root@${::hostname}";
+  }
+
   # We used to disable and stop sendmail here on Red Hat, but this doesn't
   # work if sendmail is not installed.  Since we'd rather not have sendmail
   # installed, just assume that people are doing this manually.
-- 
GitLab