class nodo::mail { # Class for mail nodes $mail_host = true $postfix_relayhost = "$domain" $postfix_smtp_listen = "$ipaddress" $postfix_mydestination = "\$myorigin" include nodo::vserver include postfix::mta include database # The needed packages package { [ 'postfix-mysql', 'dovecot-imapd' ]: ensure => installed, } package { [ 'libauthen-sasl-cyrus-perl' 'libpam-mysql', 'libsasl2-modules', 'sasl2-bin', 'libsasl2-modules-sql', 'libgsasl7', 'libsasl2-modules-sql' ]: ensure => installed, } package { [ 'postgrey', 'amavisd-new', 'spamassassin', 'spamc' ]: ensure => installed, } package { [ 'clamav-base', 'clamav-daemon', 'clamav-freshclam' ]: ensure => installed, } package { [ 'squirrelmail', 'squirrelmail-secure-login', 'squirrelmail-locales' ]: ensure => installed, } # Postfix configuration postfix::config { "myhostname": value => "$fqdn" } }