class nodo::utils::network::mail ( $ensure = 'installed', ) { # Mail package { [ 'mutt', 'muttprofile', 'muttprint', 'notmuch-mutt', 'offlineimap', 'bogofilter', 'fetchmail', 'getmail6', 'maildrop', # To be removed soon # https://lwn.net/Articles/416901/ # http://www.wonkity.com/~wblock/docs/html/maildrop.html # https://www.courier-mta.org/maildrop/maildrop.html # https://www.courier-mta.org/maildrop/maildropfilter.html#include # https://gitlab.torproject.org/tpo/tpa/team/-/issues/40639 'procmail', ]: ensure => $ensure, } if !defined(Package['msmtp']) { package { 'msmtp': ensure => present, } } package { [ 'mutt-patched', 'getmail', ]: ensure => absent, } # Fix: ensure that fetchmail is not a service service { 'fetchmail': ensure => stopped, enable => false, require => Package['fetchmail'], } }