Add squirrelmail_config.php

This commit is contained in:
Daniel Winzen 2024-06-06 15:58:32 +02:00
parent 93ef4d6220
commit 08da5a0623
No known key found for this signature in database
GPG key ID: 222FCC3F35C41077
3 changed files with 214 additions and 2 deletions

View file

@ -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:
------------

View file

@ -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

200
squirrelmail_config.php Executable file
View file

@ -0,0 +1,200 @@
<?php
/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/
$config_version = '1.5.0';
$config_use_color = 1;
$org_name = "SquirrelMail";
$org_logo = SM_PATH . 'images/sm_logo.png';
$org_logo_width = '308';
$org_logo_height = '111';
$org_title = "SquirrelMail";
$signout_page = '';
$frame_top = '_top';
$provider_uri = '';
$provider_name = '';
$motd = "";
$squirrelmail_default_language = 'en_US';
$default_charset = 'utf-8';
$show_alternative_names = true;
$aggressive_decoding = true;
$lossy_encoding = false;
$domain = 'danwin1210.de';
$imapServerAddress = 'danwin1210.de';
$imapPort = 993;
$useSendmail = false;
$smtpServerAddress = 'danwin1210.de';
$smtpPort = 465;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$pop_before_smtp_host = '';
$imap_server_type = 'dovecot';
$invert_time = false;
$optional_delimiter = 'detect';
$encode_header_key = '';
$default_folder_prefix = '';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$show_prefix_option = false;
$list_special_folders_first = true;
$use_special_folder_color = true;
$auto_expunge = true;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$auto_create_special = true;
$delete_folder = false;
$noselect_fix_enable = false;
$data_dir = '/var/local/squirrelmail/data/';
$attachment_dir = '/var/local/squirrelmail/attach/';
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = true;
$default_use_priority = false;
$hide_sm_attributions = false;
$default_use_mdn = false;
$edit_identity = false;
$edit_name = true;
$edit_reply_to = true;
$hide_auth_header = true;
$disable_thread_sort = false;
$disable_server_sort = false;
$allow_charset_search = true;
$allow_advanced_search = 0;
$time_zone_type = 0;
$config_location_base = '';
$disable_plugins = false;
$disable_plugins_user = '';
$plugins[] = 'check_quota';
$user_theme_default = 0;
$user_themes[0]['PATH'] = 'none';
$user_themes[0]['NAME'] = 'Default';
$user_themes[1]['PATH'] = SM_PATH . 'css/blue_gradient/';
$user_themes[1]['NAME'] = 'Blue Options';
$user_themes[2]['PATH'] = SM_PATH . 'css/alien_glow/';
$user_themes[2]['NAME'] = 'Alien Glow';
$user_themes[3]['PATH'] = SM_PATH . 'css/autumn/';
$user_themes[3]['NAME'] = 'Autumn';
$user_themes[4]['PATH'] = SM_PATH . 'css/autumn2/';
$user_themes[4]['NAME'] = 'Autumn2';
$user_themes[5]['PATH'] = SM_PATH . 'css/black_bean_burrito/';
$user_themes[5]['NAME'] = 'Black Bean Burrito';
$user_themes[6]['PATH'] = SM_PATH . 'css/blue_grey/';
$user_themes[6]['NAME'] = 'Blue Grey';
$user_themes[7]['PATH'] = SM_PATH . 'css/blue_on_blue/';
$user_themes[7]['NAME'] = 'Blue On Blue';
$user_themes[8]['PATH'] = SM_PATH . 'css/bluesnews/';
$user_themes[8]['NAME'] = 'Bluesnews';
$user_themes[9]['PATH'] = SM_PATH . 'css/bluesome/';
$user_themes[9]['NAME'] = 'Bluesome';
$user_themes[10]['PATH'] = SM_PATH . 'css/bluesteel/';
$user_themes[10]['NAME'] = 'Bluesteel';
$icon_theme_def = 1;
$icon_theme_fallback = 3;
$icon_themes[0]['PATH'] = 'none';
$icon_themes[0]['NAME'] = 'No Icons';
$icon_themes[1]['PATH'] = 'template';
$icon_themes[1]['NAME'] = 'Template Default Icons';
$icon_themes[2]['PATH'] = SM_PATH . 'images/themes/default/';
$icon_themes[2]['NAME'] = 'Default Icon Set';
$icon_themes[3]['PATH'] = SM_PATH . 'images/themes/xp/';
$icon_themes[3]['NAME'] = 'XP Style Icons';
$templateset_default = 'default';
$templateset_fallback = 'default';
$rpc_templateset = 'default_rpc';
$aTemplateSet[0]['ID'] = 'default';
$aTemplateSet[0]['NAME'] = 'Default';
$aTemplateSet[1]['ID'] = 'default_advanced';
$aTemplateSet[1]['NAME'] = 'Advanced';
$default_fontsize = '';
$default_fontset = '';
$fontsets = array();
$fontsets['verasans'] = 'bitstream vera sans,verdana,sans-serif';
$fontsets['sans'] = 'helvetica,arial,sans-serif';
$fontsets['comicsans'] = 'comic sans ms,sans-serif';
$fontsets['tahoma'] = 'tahoma,sans-serif';
$fontsets['serif'] = 'serif';
$default_use_javascript_addr_book = false;
$addrbook_dsn = '';
$addrbook_table = 'address';
$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_user_size = 128;
$prefs_key_field = 'prefkey';
$prefs_key_size = 64;
$prefs_val_field = 'prefval';
$prefs_val_size = 65536;
$addrbook_global_dsn = '';
$addrbook_global_table = 'global_abook';
$addrbook_global_writeable = false;
$addrbook_global_listing = false;
$abook_global_file = '';
$abook_global_file_writeable = false;
$abook_global_file_listing = true;
$abook_file_line_length = 2048;
$no_list_for_subscribe = false;
$smtp_auth_mech = 'plain';
$smtp_sitewide_user = '';
$smtp_sitewide_pass = '';
$imap_auth_mech = 'plain';
$use_imap_tls = 1;
$use_smtp_tls = 1;
$display_imap_login_error = false;
$session_name = 'SQMSESSID';
$only_secure_cookies = true;
$disable_security_tokens = false;
$check_referrer = '';
$use_transparent_security_image = true;
$allow_svg_display = false;
$block_svg_download = false;
$fix_broken_base64_encoded_messages = false;
$use_iframe = false;
$ask_user_info = false;
$use_icons = false;
$use_php_recode = false;
$use_php_iconv = true;
$buffer_output = false;
$allow_remote_configtest = false;
$secured_config = true;
$sq_https_port = 443;
$sq_ignore_http_x_forwarded_headers = true;
$sm_debug_mode = SM_DEBUG_MODE_OFF;