summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2015-12-11 08:41:47 +0000
committerHolger Levsen <holger@layer-acht.org>2015-12-11 18:02:29 +0100
commit51455c74e055da08a052adc17515bc134d0b05dc (patch)
tree82aa2cef37a591f9c492c608158d4c531b1ac4a2
parenta291887e1990987956b3b9d85e411adb6981c25a (diff)
downloadjenkins.debian.net-51455c74e055da08a052adc17515bc134d0b05dc.tar.xz
stop the test vm from spamming the world
-rw-r--r--hosts/jenkins-test-vm/etc/aliases3
-rw-r--r--hosts/jenkins-test-vm/etc/postfix/main.cf6
-rw-r--r--hosts/jenkins-test-vm/etc/postfix/mydestinations1
3 files changed, 8 insertions, 2 deletions
diff --git a/hosts/jenkins-test-vm/etc/aliases b/hosts/jenkins-test-vm/etc/aliases
index 0c0c0088..7236c889 100644
--- a/hosts/jenkins-test-vm/etc/aliases
+++ b/hosts/jenkins-test-vm/etc/aliases
@@ -1,3 +1,4 @@
# See man 5 aliases for format
postmaster: root
-root: holger@layer-acht.org, helmutg@debian.org, mattia@mapreri.org, phil@hands.com
+root: phil
+#root: holger@layer-acht.org, helmutg@debian.org, mattia@mapreri.org, phil@hands.com
diff --git a/hosts/jenkins-test-vm/etc/postfix/main.cf b/hosts/jenkins-test-vm/etc/postfix/main.cf
index 42397da4..6ee27f16 100644
--- a/hosts/jenkins-test-vm/etc/postfix/main.cf
+++ b/hosts/jenkins-test-vm/etc/postfix/main.cf
@@ -31,7 +31,7 @@ myhostname = jenkins-test-vm.debian.net
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
-mydestination = jenkins-test-vm.debian.net, localhost
+#mydestination = jenkins-test-vm.debian.net, localhost
relayhost =
#mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mynetworks = 127.0.0.0/8
@@ -39,3 +39,7 @@ mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
+
+luser_relay = phil@localhost
+local_recipient_maps =
+mydestination = pcre:/etc/postfix/mydestinations
diff --git a/hosts/jenkins-test-vm/etc/postfix/mydestinations b/hosts/jenkins-test-vm/etc/postfix/mydestinations
new file mode 100644
index 00000000..df91a73b
--- /dev/null
+++ b/hosts/jenkins-test-vm/etc/postfix/mydestinations
@@ -0,0 +1 @@
+/.*/ ACCEPT