diff options
| author | Paul Buetow <paul@buetow.org> | 2026-01-17 21:08:37 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-01-17 21:08:37 +0200 |
| commit | 19defb02691f020470b7e28d81ae331b8d8f9bd9 (patch) | |
| tree | d145999e69eb80d8b5320cef044197db3f9cf7c0 /frontends/Rexfile | |
| parent | 7a996ed2f657562dd05dee2548db15d044f4fdeb (diff) | |
adjust monitoring checks
Diffstat (limited to 'frontends/Rexfile')
| -rw-r--r-- | frontends/Rexfile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/frontends/Rexfile b/frontends/Rexfile index c59bb58..971e162 100644 --- a/frontends/Rexfile +++ b/frontends/Rexfile @@ -344,6 +344,17 @@ task 'smtpd', mode => '644', on_change => sub { service 'smtpd' => 'restart' }; + # Reject lists for blocking unwanted senders/domains/recipients + Rex::Logger::info('Dealing with mail reject lists'); + for my $reject_list (qw/reject-senders reject-domains reject-recipients/) { + file "/etc/mail/$reject_list", + source => "./etc/mail/$reject_list", + owner => 'root', + group => 'wheel', + mode => '644', + on_change => sub { service 'smtpd' => 'restart' }; + } + Rex::Logger::info('Dealing with smtpd.conf'); file '/etc/mail/smtpd.conf', content => template('./etc/mail/smtpd.conf.tpl'), |
