From efa2bd9a51d8b4df8e043e98db5e96c965260dc4 Mon Sep 17 00:00:00 2001 From: Robert Hafner Date: Sun, 1 Dec 2013 17:48:46 -0800 Subject: [PATCH] Added postfix config file to Vagrant to help populate mailboxes --- tests/vagrant/Postfix.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/vagrant/Postfix.sh diff --git a/tests/vagrant/Postfix.sh b/tests/vagrant/Postfix.sh new file mode 100644 index 0000000..e3cc8f1 --- /dev/null +++ b/tests/vagrant/Postfix.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +if which postfix > /dev/null; then + echo 'Postfix is already installed' +else + echo 'Installing Postfix' + sudo debconf-set-selections <<< "postfix postfix/mailname string precise64" + sudo debconf-set-selections <<< "postfix postfix/main_mailer_type string 'Local only'" + sudo apt-get -qq update + sudo apt-get -qq -y install postfix mailutils + sudo postconf -e 'home_mailbox = Maildir/' +fi