Puppet Class: aix_tidy::sendmail

Defined in:
manifests/sendmail.pp

Overview

Aix_tidy::Sendmail

Minor enhancements to sendmail: * Remove MTA information from server hello * Manage permissions on critical files



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'manifests/sendmail.pp', line 6

class aix_tidy::sendmail {

  # Remove MTA information from greeting
  file_line { "/etc/mail/sendmail.cf SmtpGreetingMessage":
    ensure => present,
    path   => "/etc/mail/sendmail.cf",
    match  => "^O SmtpGreetingMessage=.*",
    line   => "O SmtpGreetingMessage=mailerready",
  }

  file { "/etc/mail/sendmail.cf":
    ensure => file,
    owner  => "root",
    group  => "system",
    mode   => "0640",
  }

  file { "/var/spool/mqueue":
    ensure => directory,
    owner  => "root",
    group  => "system",
    mode   => "0700",
  }
}