From c382ec10d36aa661ebc8e997ffd755dfe8c2aac7 Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Thu, 10 Mar 2016 09:41:40 +0000 Subject: stop mail going out from jenkins-test-vm --- hosts/jenkins-test-vm/etc/postfix/canonical-redirect | 1 + hosts/jenkins-test-vm/etc/postfix/main.cf | 1 + update_jdn.sh | 5 ++++- 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 hosts/jenkins-test-vm/etc/postfix/canonical-redirect diff --git a/hosts/jenkins-test-vm/etc/postfix/canonical-redirect b/hosts/jenkins-test-vm/etc/postfix/canonical-redirect new file mode 100644 index 00000000..9dd35a1d --- /dev/null +++ b/hosts/jenkins-test-vm/etc/postfix/canonical-redirect @@ -0,0 +1 @@ +/^.*$/ phil diff --git a/hosts/jenkins-test-vm/etc/postfix/main.cf b/hosts/jenkins-test-vm/etc/postfix/main.cf index 6ee27f16..4c9dbae4 100644 --- a/hosts/jenkins-test-vm/etc/postfix/main.cf +++ b/hosts/jenkins-test-vm/etc/postfix/main.cf @@ -43,3 +43,4 @@ mailbox_command = /usr/bin/procmail -a "$EXTENSION" luser_relay = phil@localhost local_recipient_maps = mydestination = pcre:/etc/postfix/mydestinations +canonical_maps = regexp:/etc/postfix/canonical-redirect diff --git a/update_jdn.sh b/update_jdn.sh index 27293579..080d72e1 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -193,7 +193,10 @@ if [ -f /etc/debian_version ] ; then zsh " case $HOSTNAME in - jenkins|jenkins-test-vm|profitbricks-build*) DEBS="$DEBS squid3" ;; + jenkins|jenkins-test-vm|profitbricks-build?-amd64) DEBS="$DEBS + postfix-pcre + squid3" + ;; *) ;; esac # needed to run the 2nd reproducible builds nodes in the future... -- cgit v1.2.3-54-g00ecf