From: Alexander Wirt <formorer@debian.org>
Date: Tue, 25 Sep 2018 08:03:32 +1000
Subject: Suppress warning in amavisd-snmp-subagent if postfix isn't installed

---
 bin/amavisd-snmp-subagent |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/bin/amavisd-snmp-subagent
+++ b/bin/amavisd-snmp-subagent
@@ -781,7 +781,7 @@
   if (!defined $mta_queue_dir) {  # test for access to Postfix queue directory
     local($ENV{PATH}) = '/usr/sbin:/usr/local/sbin:/opt/postfix/sbin';
     $! = 0;
-    $mta_queue_dir = qx(postconf -h queue_directory);
+    $mta_queue_dir = qx(postconf -h queue_directory 2>/dev/null);
     if (!defined $mta_queue_dir) {
       if ($! != 0) {
         do_log(1, "no postfix (unable to run postconf command): $!");
