Advertisement
Guest User

Untitled

a guest
Aug 29th, 2017
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.28 KB | None | 0 0
  1. # This file describes the network interfaces available on your system
  2. # and how to activate them. For more information, see interfaces(5).
  3.  
  4. source /etc/network/interfaces.d/*
  5.  
  6. # The loopback network interface
  7. auto lo
  8. iface lo inet loopback
  9.  
  10. # The primary network interface
  11. allow-hotplug eth0
  12. iface eth0 inet static
  13. address 92.63.57.120
  14. netmask 255.255.255.0
  15. gateway 92.63.57.1
  16. dns-nameservers 62.149.128.4 62.149.132.4
  17.  
  18. nameserver 62.149.128.4
  19. nemeserver 62.149.132.4
  20.  
  21. # postfix config file
  22.  
  23. # uncomment for debugging if needed
  24. soft_bounce=yes
  25.  
  26. # postfix main
  27. mail_owner = postfix
  28. setgid_group = postdrop
  29. delay_warning_time = 4
  30.  
  31. # postfix paths
  32. html_directory = no
  33. command_directory = /usr/sbin
  34. daemon_directory = /usr/lib/postfix
  35. queue_directory = /var/spool/postfix
  36. sendmail_path = /usr/sbin/sendmail.postfix
  37. newaliases_path = /usr/bin/newaliases.postfix
  38. mailq_path = /usr/bin/mailq.postfix
  39. manpage_directory = /usr/share/man
  40. sample_directory = /usr/share/doc/postfix-2.2.2/samples
  41. readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
  42.  
  43. # network settings
  44. inet_interfaces = all
  45. mydomain = webhost.stacknet.eu
  46. myhostname = webhost
  47. mynetworks = 127.0.0.1, 92.63.57.120
  48. mydestination = localhost.$mydomain, localhost
  49. relay_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-relay_domains_maps.cf
  50.  
  51. # mail delivery
  52. recipient_delimiter = +
  53.  
  54. # mappings
  55. alias_maps = hash:/etc/aliases
  56. alias_database = hash:/etc/aliases
  57. #transport_maps = hash:/etc/postfix/transport
  58. #local_recipient_maps =
  59.  
  60. # virtual setup
  61. virtual_alias_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/sentora/configs/postfix/virtual_regexp
  62. virtual_mailbox_base = /var/sentora/vmail
  63. virtual_mailbox_domains = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_domains_maps.cf
  64. virtual_mailbox_maps = proxy:mysql:/etc/sentora/configs/postfix/mysql-virtual_mailbox_maps.cf
  65. virtual_minimum_uid = 999
  66. virtual_uid_maps = static:999
  67. virtual_gid_maps = static:8
  68. virtual_transport = dovecot
  69. dovecot_destination_recipient_limit = 1
  70.  
  71. # debugging
  72. debug_peer_level = 2
  73. debugger_command =
  74. PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
  75. xxgdb $daemon_directory/$process_name $process_id & sleep 5
  76. # authentication
  77. smtpd_sasl_auth_enable = yes
  78. smtpd_sasl_security_options = noanonymous
  79. smtpd_sasl_local_domain = $myhostname
  80. broken_sasl_auth_clients = yes
  81. smtpd_sasl_type = dovecot
  82. smtpd_sasl_path = private/auth
  83.  
  84. # tls config
  85. smtp_use_tls = no
  86. smtpd_use_tls = no
  87. #smtp_tls_note_starttls_offer = yes
  88. #smtpd_tls_loglevel = 1
  89. #smtpd_tls_received_header = yes
  90. #smtpd_tls_session_cache_timeout = 3600s
  91. #tls_random_source = dev:/dev/urandom
  92. #smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
  93. # Change mail.example.com.* to your host name
  94. #smtpd_tls_key_file = /etc/pki/tls/private/mail.example.com.key
  95. #smtpd_tls_cert_file = /etc/pki/tls/certs/mail.example.com.crt
  96. # smtpd_tls_CAfile = /etc/pki/tls/root.crt
  97. # rules restrictions
  98. smtpd_client_restrictions =
  99. smtpd_helo_restrictions =
  100. smtpd_sender_restrictions =
  101. smtpd_recipient_restrictions = permit_sasl_authenticated,
  102. permit_mynetworks,
  103. reject_unauth_destination,
  104. reject_non_fqdn_sender,
  105. reject_non_fqdn_recipient,
  106. reject_unknown_recipient_domain
  107. # uncomment for realtime black list checks. (Warn: will also reject false positive)
  108. # ,reject_rbl_client zen.spamhaus.org
  109. # ,reject_rbl_client bl.spamcop.net
  110. # ,reject_rbl_client dnsbl.sorbs.net
  111. smtpd_helo_required = yes
  112. unknown_local_recipient_reject_code = 550
  113. disable_vrfy_command = yes
  114. smtpd_data_restrictions = reject_unauth_pipelining
  115. smtpd_banner = $myhostname ESMTP
  116.  
  117. message_size_limit = 20480000
  118.  
  119. <?php
  120.  
  121. /*
  122. +-----------------------------------------------------------------------+
  123. | Main configuration file |
  124. | |
  125. | This file is part of the Roundcube Webmail client |
  126. | Copyright (C) 2005-2013, The Roundcube Dev Team |
  127. | |
  128. | Licensed under the GNU General Public License version 3 or |
  129. | any later version with exceptions for skins & plugins. |
  130. | See the README file for a full license statement. |
  131. +-----------------------------------------------------------------------+
  132. */
  133.  
  134. $config = array();
  135.  
  136. // ----------------------------------
  137. // SQL DATABASE
  138. // ----------------------------------
  139.  
  140. // Database connection string (DSN) for read+write operations
  141. // Format (compatible with PEAR MDB2): db_provider://user:password@host/database
  142. // Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv
  143. // For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php
  144. // NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'
  145. $config['db_dsnw'] = 'mysql://roundcube:6466f6b26466@localhost/sentora_roundcube';
  146. $config['db_table_users'] = 'users';
  147. $config['db_table_identities'] = 'identities';
  148. $config['db_table_contacts'] = 'contacts';
  149. $config['db_table_contactgroups'] = 'contactgroups';
  150. $config['db_table_contactgroupmembers'] = 'contactgroupmembers';
  151. $config['db_table_session'] = 'session';
  152. $config['db_table_cache'] = 'cache';
  153. $config['db_table_cache_index'] = 'cache_index';
  154. $config['db_table_cache_thread'] = 'cache_thread';
  155. $config['db_table_cache_messages'] = 'cache_messages';
  156. // ----------------------------------
  157. // SMTP
  158. // ----------------------------------
  159. $config['smtp_server'] = 'tls://%h'; //Default was ''
  160.  
  161. // SMTP username (if required) if you use %u as the username Roundcube
  162. // will use the current username for login
  163. $config['smtp_user'] = '%u'; //Default was ''
  164.  
  165. // SMTP password (if required) if you use %p as the password Roundcube
  166. // will use the current user's password for login
  167. $config['smtp_pass'] = '%p'; //Default was ''
  168.  
  169. // use this folder to store log files (must be writeable for apache user)
  170. // This is used by the 'file' log driver.
  171. $config['log_dir'] = '/var/sentora/logs/roundcube/'; //Default was RCUBE_INSTALL_PATH . 'logs/'
  172.  
  173. // use this folder to store temp files (must be writeable for apache user)
  174. $config['temp_dir'] = '/var/sentora/temp'; //Default was RCUBE_INSTALL_PATH . 'temp/'
  175. // Forces conversion of logins to lower case.
  176. // 0 - disabled, 1 - only domain part, 2 - domain and local part.
  177. // If users authentication is case-insensitive this must be enabled.
  178. // Note: After enabling it all user records need to be updated, e.g. with query:
  179. // UPDATE users SET username = LOWER(username);
  180. $config['login_lc'] = 0; //Default was 2
  181. // this key is used to encrypt the users imap password which is stored
  182. // in the session record (and the client cookie if remember password is enabled).
  183. // please provide a string of exactly 24 chars.
  184. $config['des_key'] = 'TDlK7Xp7YBRIAPQGQ0YKH4dv';
  185. // Name your service. This is displayed on the login screen and in the window title
  186. $config['product_name'] = 'Sentora Webmail'; //Default was 'Roundcube Webmail'
  187.  
  188. // Path to a local mime magic database file for PHPs finfo extension.
  189. // Set to null if the default path should be used.
  190. #$config['mime_magic'] = '/usr/share/misc/magic'; //default was null
  191. // ----------------------------------
  192. // PLUGINS
  193. // ----------------------------------
  194.  
  195. // List of active plugins (in plugins/ directory)
  196. $config['plugins'] = array('managesieve');
  197.  
  198. // ----------------------------------
  199. // USER INTERFACE
  200. // ----------------------------------
  201. // automatically create the above listed default folders on first login
  202. $config['create_default_folders'] = true; //Default was false
  203.  
  204. // ----------------------------------
  205. // USER PREFERENCES
  206. // ----------------------------------
  207. // display remote inline images
  208. // 0 - Never, always ask
  209. // 1 - Ask if sender is not in address book
  210. // 2 - Always show inline images
  211. $config['show_images'] = 2; //Default was 0
  212.  
  213. // compose html formatted messages by default
  214. // 0 - never, 1 - always, 2 - on reply to HTML message, 3 - on forward or reply to HTML message
  215. $config['htmleditor'] = 1; //Default was 0
  216.  
  217. // save compose message every 120 seconds (2min)
  218. $config['draft_autosave'] = 120; //default was 300
  219.  
  220. // If true, after message delete/move, the next message will be displayed
  221. $config['display_next'] = false; //Default was true
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement