# Email delivery configuration
$mail_delivery = hiera('nodo::subsystem::mail::delivery', 'exim')
+ # A handy SMTP wrapper
+ include nodo::subsystem::mail::msmtp
+
if $mail_delivery != 'postfix' {
#if !defined(Package['mailx']) {
package { 'mailx':
--- /dev/null
+class nodo::subsystem::mail::msmtp {
+ if !defined(Package['msmtp']) {
+ package { 'msmtp':
+ ensure => present,
+ }
+ }
+
+ file { '/etc/msmtprc':
+ ensure => present,
+ owner => root,
+ group => root,
+ mode => '0644',
+ content => template('nodo/msmtp/msmtprc.erb'),
+ }
+}
'bogofilter',
'fetchmail',
'procmail',
- 'msmtp',
]:
ensure => $ensure,
}
+ if !defined(Package['msmtp']) {
+ package { 'msmtp':
+ ensure => present,
+ }
+ }
+
package { [
'mutt-patched',
]:
--- /dev/null
+account default
+host localhost
+port 25
+auto_from on
+maildomain <%= scope.lookupvar('::fqdn') %>