Split postfix configs across the VMs, and start making them do things

This commit is contained in:
Peter Eckersley 2014-06-05 19:45:21 -07:00
parent 7bd06a4d35
commit 30938260d4
6 changed files with 4 additions and 3 deletions

3
Vagrantfile vendored
View file

@ -10,10 +10,12 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.define "sender" do |sender|
sender.vm.network "private_network", ip: "192.168.33.5"
sender.vm.hostname = "sender.example.com"
config.vm.synced_folder "vm-postfix-config-sender", "/etc/postfix"
end
config.vm.define "valid" do |valid|
valid.vm.network "private_network", ip: "192.168.33.7"
valid.vm.hostname = "valid-example-recipient.com"
config.vm.synced_folder "vm-postfix-config-valid", "/etc/postfix"
end
config.vm.provision :shell, path: "vagrant-bootstrap.sh"
@ -22,5 +24,4 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
vb.customize ["modifyvm", :id, "--memory", "256"]
end
config.vm.synced_folder "vm-postfix-config", "/etc/postfix"
end

View file

@ -39,4 +39,4 @@ recipient_delimiter = +
inet_interfaces = all
#STARTTLS EVERYWHERE MAGIC STARTS HERE
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
smtp_tls_policy_maps = texthash:/etc/postfix/tls_policy

View file

@ -0,0 +1 @@
valid-example-recipient.com encrypt protocols=TLSv1.2

View file

@ -1 +0,0 @@
valid-example-recipient.com encrypt