# Mail Server Installer for Void Linux with Avahi, Roundcube DB Population, and PAM for Dovecot# Installs and configures Apache (apache package), MariaDB, Roundcube 1.6.11, Dovecot 2.4.1, PHP 8.4, Postfix, Avahi# Uses Maildir format, generates self-signed certificates, sets up Roundcube in /srv/www/apache/# Configures Avahi first for .local domain, autodetects FQDN and .local, updates /etc/hosts, creates and activates services# Configures Apache to execute PHP files (not display source code), uses mpm_prefork# Populates Roundcube MySQL database with initial schema# Uses PAM for Dovecot authentication with system users# Excludes php-fileinfo installation# Uses /etc/sv/mysqld for MariaDB service, lets runit manage supervise directory# Prompts for IP only; Run as sudo ./roundcube_installer_void.sh# Updated for Dovecot 2.4.1: Replaces mail_location with mail_driver and mail_path