Include squirrelmail config file
This commit is contained in:
20
README.md
20
README.md
@ -51,7 +51,7 @@ systemctl daemon-reload && systemctl restart bind9.service && systemctl restart
|
||||
|
||||
Replace the default .onion domain with your domain:
|
||||
```
|
||||
sed -i "s/dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/postfix/sql/alias.cf /etc/postfix/sender_login_maps /etc/postfix/main.cf /var/www/skel/www/index.hosting.html /var/www/common.php /etc/postfix/canonical /etc/postfix-clearnet/canonical
|
||||
sed -i "s/dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion/`cat /var/lib/tor/hidden_service/hostname`/g" /etc/postfix/sql/alias.cf /etc/postfix/sender_login_maps /etc/postfix/main.cf /var/www/skel/www/index.hosting.html /var/www/common.php /etc/postfix/canonical /etc/postfix-clearnet/canonical /var/www/html/squirrelmail/config/config.php
|
||||
```
|
||||
|
||||
For your clearnet domain, you need to add it to `relay_domains` in `/etc/postfix/main.cf` and edit the default domain in the following files:
|
||||
@ -122,24 +122,6 @@ quit
|
||||
mysql phpmyadmin < /var/www/html/phpmyadmin/sql/create_tables.sql
|
||||
```
|
||||
|
||||
For web based mail management configure squirrelmail:
|
||||
```
|
||||
cd /var/www/html/squirrelmail && ./configure
|
||||
```
|
||||
|
||||
Configuration options to change are:
|
||||
```
|
||||
D. > select dovecot
|
||||
2. Server Settings > 1. Domain > Set your own .onion domain here
|
||||
2. Server Settings > B. Update SMTP settings > 7. SMTP Authentication -> y -> plain -> n User are authenticated using their username + password
|
||||
4. General Options > 1. Data Directory > /data/squirrelmail/data/
|
||||
4. General Options > 2. Attachment Directory > /data/squirrelmail/attach/
|
||||
4. General Options > 9. Allow editing of identity > n Users should not be able to fake email addresses > y They should be able to change display name > y They should be able to set a reply to mail > y additional headers are not required
|
||||
10. Language settings > 4. Enable aggressive decoding
|
||||
11. Tweaks > 2. Ask user info on first login > n (commonly confuses users)
|
||||
11. Tweaks > 5. Use php iconv functions > y
|
||||
```
|
||||
|
||||
Create a mysql user with all permissions for our hosting management:
|
||||
```
|
||||
mysql
|
||||
|
181
var/www/html/squirrelmail/config/config.php
Normal file
181
var/www/html/squirrelmail/config/config.php
Normal file
@ -0,0 +1,181 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* SquirrelMail Configuration File
|
||||
* Created using the configure script, conf.pl
|
||||
*/
|
||||
|
||||
$config_version = '1.5.0';
|
||||
$config_use_color = 2;
|
||||
|
||||
$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 = false;
|
||||
$aggressive_decoding = true;
|
||||
$lossy_encoding = false;
|
||||
|
||||
$domain = 'dhosting4xxoydyaivckq7tsmtgi4wfs3flpeyitekkmqwu4v4r46syd.onion';
|
||||
$imapServerAddress = 'localhost';
|
||||
$imapPort = 143;
|
||||
$useSendmail = false;
|
||||
$smtpServerAddress = 'localhost';
|
||||
$smtpPort = 25;
|
||||
$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 = '/data/squirrelmail/data/';
|
||||
$attachment_dir = '/data/squirrelmail/attach/';
|
||||
$dir_hash_level = 0;
|
||||
$default_left_size = '150';
|
||||
$force_username_lowercase = true;
|
||||
$default_use_priority = true;
|
||||
$hide_sm_attributions = false;
|
||||
$default_use_mdn = true;
|
||||
$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 = '';
|
||||
|
||||
|
||||
$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';
|
||||
|
||||
$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['tahoma'] = 'tahoma,sans-serif';
|
||||
$fontsets['serif'] = 'serif';
|
||||
$fontsets['comicsans'] = 'comic sans ms,sans-serif';
|
||||
$fontsets['sans'] = 'helvetica,arial,sans-serif';
|
||||
$fontsets['verasans'] = 'bitstream vera sans,verdana,sans-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 = 'login';
|
||||
$use_imap_tls = 0;
|
||||
$use_smtp_tls = 0;
|
||||
$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 = true;
|
||||
|
||||
$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;
|
||||
|
Reference in New Issue
Block a user