1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
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'],
}
}
|