1 # = Class: roles::mailrelay
3 # Setup for mailrelay hosts
7 # include roles::mailrelay
9 class roles::mailrelay {
14 include roles::pubsub::parameters
16 $rabbit_password = $roles::pubsub::parameters::rabbit_password
18 roles::pubsub::config { 'emailvdomains':
19 key => 'dsa-emailvdomains-receive',
21 queue => "email-${::fqdn}",
22 topic => 'dsa.email.update',
25 password => $rabbit_password
28 # smtp firewalling setup
30 @@ferm::rule::simple { "dsa-smtp-from-mailrelay-${::fqdn}":
31 tag => 'smtp::server::from::mailrelay',
32 description => 'Allow smtp access from a mailrelay',
34 saddr => $base::public_addresses,