From 51455c74e055da08a052adc17515bc134d0b05dc Mon Sep 17 00:00:00 2001 From: Philip Hands Date: Fri, 11 Dec 2015 08:41:47 +0000 Subject: stop the test vm from spamming the world --- hosts/jenkins-test-vm/etc/aliases | 3 ++- hosts/jenkins-test-vm/etc/postfix/main.cf | 6 +++++- hosts/jenkins-test-vm/etc/postfix/mydestinations | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 hosts/jenkins-test-vm/etc/postfix/mydestinations 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 -- cgit v1.2.3-70-g09d2