From 08da5a0623a1ccefc040836e94c85b7053307f8b Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 6 Jun 2024 15:58:32 +0200 Subject: [PATCH] Add squirrelmail_config.php --- README.md | 7 +- install_binaries.sh | 9 +- squirrelmail_config.php | 200 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 214 insertions(+), 2 deletions(-) create mode 100755 squirrelmail_config.php diff --git a/README.md b/README.md index f876a98..f51ca15 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ sed -i "s/danielas3rtn54uwmofdo3x2bsdifr47huasnmbgqzfrec5ubupvtpid.onion/`cat /v Replace the default clearnet domain with your domain: ``` -sed -i "s/danwin1210.de/YOUR_DOMAIN/g" /etc/prosody/prosody.cfg.lua /etc/postfix/main.cf /etc/dovecot/dovecot.conf /etc/nginx/sites-enabled/* /var/www/mail/common_config.php +sed -i "s/danwin1210.de/YOUR_DOMAIN/g" /etc/prosody/prosody.cfg.lua /etc/postfix/main.cf /etc/dovecot/dovecot.conf /etc/nginx/sites-enabled/* /var/www/mail/common_config.php /var/www/mail/www/squirrelmail/config/config.php ``` Create a mysql users and databases: @@ -210,6 +210,11 @@ Set the PTR record of your proxy servers IPs to your domain. This can usually be Consider registering your domain with [DNSWL](https://www.dnswl.org/), [SNDS](https://sendersupport.olc.protection.outlook.com/snds/), [Google Postmaster Tools](https://postmaster.google.com/) and [YahooCFL](https://senders.yahooinc.com/complaint-feedback-loop/) for valuable insights into your delivery. +### Final configuration steps + +Follow [SnappyMail installation instructions](https://github.com/the-djmaze/snappymail/wiki/Installation-instructions#now-access-the-admin-page) to finish setting it up at yourdomain/mail/snappymail/?admin + + Translating: ------------ diff --git a/install_binaries.sh b/install_binaries.sh index a552805..dfdc99c 100755 --- a/install_binaries.sh +++ b/install_binaries.sh @@ -8,7 +8,7 @@ workingdir=$(pwd) # install all required packages DEBIAN_FRONTEND=noninteractive apt-get update -DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-transport-tor bash-completion bind9 ca-certificates clamav-daemon clamav-freshclam curl dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-pop3d git gnupg haveged iptables libnginx-mod-http-brotli-filter libsasl2-modules locales locales-all logrotate lsb-release lua-dbi-mysql lua-event mariadb-server mercurial nano nginx openssl php8.2-cli php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-imap php8.2-intl php8.2-mbstring php8.2-mysql php8.2-pspell php8.2-readline postfix postfix-mysql prosody redis rng-tools5 rspamd tor vim wget unzip wireguard wireguard-tools +DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends install -y apt-transport-tor bash-completion bind9 ca-certificates clamav-daemon clamav-freshclam curl dovecot-imapd dovecot-lmtpd dovecot-mysql dovecot-pop3d git gnupg haveged iptables libnginx-mod-http-brotli-filter libsasl2-modules locales locales-all logrotate lsb-release lua-dbi-mysql lua-event mariadb-server mercurial nano nginx openssl php8.2-cli php8.2-curl php8.2-fpm php8.2-gd php8.2-gmp php8.2-gnupg php8.2-imap php8.2-intl php8.2-mbstring php8.2-mysql php8.2-pspell php8.2-readline php8.2-tidy php8.2-uuid php8.2-xml php8.2-zip postfix postfix-mysql prosody redis rng-tools5 rspamd tor vim wget unzip wireguard wireguard-tools # install composer curl -sSL https://github.com/composer/composer/releases/download/2.7.6/composer.phar > /usr/bin/composer @@ -64,6 +64,8 @@ if [ ! -e /var/www/mail/www/squirrelmail ]; then git clone https://github.com/RealityRipple/squirrelmail . mkdir -p /var/local/squirrelmail/data /var/local/squirrelmail/attach chown www-data:www-data -R /var/local/squirrelmail + cd $workingdir + cp squirrelmail_config.php /var/www/mail/www/squirrelmail/config/config.php else cd /var/www/mail/www/squirrelmail git fetch --all @@ -79,6 +81,11 @@ unzip -o snappymail-${VERSION:1}.zip rm snappymail-${VERSION:1}.zip mkdir -p /var/local/snappymail chown www-data:www-data -R /var/local/snappymail +if [ ! -e include.php ]; then + cp _include.php include.php + echo "define('APP_DATA_FOLDER_PATH', '/var/local/snappymail/');" >> include.php + echo "define('SNAPPYMAIL_UPDATE_PLUGINS', 1);" >> include.php +fi # install converse.js rm -rf /srv/conversejs diff --git a/squirrelmail_config.php b/squirrelmail_config.php new file mode 100755 index 0000000..d936489 --- /dev/null +++ b/squirrelmail_config.php @@ -0,0 +1,200 @@ +