Просмотр исходного кода

Upgrade OpenSSL & move dns templates to common folder (#2802)

* upgrade openssl & move dns templates to common folder

* move dovecot configs to common folder

note: install time config change required for main dovecot.conf for RHEL
Ice Lake 3 лет назад
Родитель
Сommit
2360db55b9
43 измененных файлов с 13 добавлено и 522 удалено
  1. 1 1
      bin/v-update-dns-templates
  2. 0 0
      install/common/dovecot/conf.d/10-auth.conf
  3. 0 0
      install/common/dovecot/conf.d/10-logging.conf
  4. 0 0
      install/common/dovecot/conf.d/10-mail.conf
  5. 0 0
      install/common/dovecot/conf.d/10-master.conf
  6. 0 0
      install/common/dovecot/conf.d/10-ssl.conf
  7. 0 0
      install/common/dovecot/conf.d/20-imap.conf
  8. 0 0
      install/common/dovecot/conf.d/20-pop3.conf
  9. 0 0
      install/common/dovecot/conf.d/90-quota.conf
  10. 0 0
      install/common/dovecot/conf.d/auth-passwdfile.conf.ext
  11. 0 0
      install/common/dovecot/dovecot.conf
  12. 0 0
      install/common/dovecot/sieve/20-managesieve.conf
  13. 0 0
      install/common/dovecot/sieve/90-sieve-extprograms.conf
  14. 0 0
      install/common/dovecot/sieve/90-sieve.conf
  15. 0 0
      install/common/templates/dns/child-ns.tpl
  16. 0 0
      install/common/templates/dns/default-nomail.tpl
  17. 0 0
      install/common/templates/dns/default.tpl
  18. 0 0
      install/common/templates/dns/gmail.tpl
  19. 0 0
      install/common/templates/dns/office365.tpl
  20. 0 0
      install/common/templates/dns/zoho.tpl
  21. 2 2
      install/hst-install-debian.sh
  22. 2 2
      install/hst-install-ubuntu.sh
  23. 0 5
      install/rpm/dovecot/conf.d/10-auth.conf
  24. 0 1
      install/rpm/dovecot/conf.d/10-logging.conf
  25. 0 8
      install/rpm/dovecot/conf.d/10-mail.conf
  26. 0 29
      install/rpm/dovecot/conf.d/10-master.conf
  27. 0 13
      install/rpm/dovecot/conf.d/10-ssl.conf
  28. 0 76
      install/rpm/dovecot/conf.d/15-mailboxes.conf
  29. 0 59
      install/rpm/dovecot/conf.d/20-imap.conf
  30. 0 92
      install/rpm/dovecot/conf.d/20-pop3.conf
  31. 0 84
      install/rpm/dovecot/conf.d/90-quota.conf
  32. 0 9
      install/rpm/dovecot/conf.d/auth-passwdfile.conf.ext
  33. 0 58
      install/rpm/dovecot/dovecot.conf
  34. 0 12
      install/rpm/templates/dns/child-ns.tpl
  35. 0 11
      install/rpm/templates/dns/default-nomail.tpl
  36. 0 19
      install/rpm/templates/dns/default.tpl
  37. 0 12
      install/rpm/templates/dns/gmail.tpl
  38. 0 16
      install/rpm/templates/dns/office365.tpl
  39. 0 9
      install/rpm/templates/dns/zoho.tpl
  40. 1 1
      install/upgrade/manual/install_sieve.sh
  41. 1 1
      install/upgrade/versions/1.00.0-190618.sh
  42. 1 1
      src/hst_autocompile.sh
  43. 5 1
      src/hst_bootstrap_install.sh

+ 1 - 1
bin/v-update-dns-templates

@@ -29,7 +29,7 @@ check_hestia_demo_mode
 #----------------------------------------------------------#
 
 # Update templates
-cp -rf $HESTIA_INSTALL_DIR/templates/dns $HESTIA/data/templates/
+cp -rf $HESTIA_COMMON_DIR/templates/dns $HESTIA/data/templates/
 
 #----------------------------------------------------------#
 #                       Hestia                             #

+ 0 - 0
install/deb/dovecot/conf.d/10-auth.conf → install/common/dovecot/conf.d/10-auth.conf


+ 0 - 0
install/deb/dovecot/conf.d/10-logging.conf → install/common/dovecot/conf.d/10-logging.conf


+ 0 - 0
install/deb/dovecot/conf.d/10-mail.conf → install/common/dovecot/conf.d/10-mail.conf


+ 0 - 0
install/deb/dovecot/conf.d/10-master.conf → install/common/dovecot/conf.d/10-master.conf


+ 0 - 0
install/deb/dovecot/conf.d/10-ssl.conf → install/common/dovecot/conf.d/10-ssl.conf


+ 0 - 0
install/deb/dovecot/conf.d/20-imap.conf → install/common/dovecot/conf.d/20-imap.conf


+ 0 - 0
install/deb/dovecot/conf.d/20-pop3.conf → install/common/dovecot/conf.d/20-pop3.conf


+ 0 - 0
install/deb/dovecot/conf.d/90-quota.conf → install/common/dovecot/conf.d/90-quota.conf


+ 0 - 0
install/deb/dovecot/conf.d/auth-passwdfile.conf.ext → install/common/dovecot/conf.d/auth-passwdfile.conf.ext


+ 0 - 0
install/deb/dovecot/dovecot.conf → install/common/dovecot/dovecot.conf


+ 0 - 0
install/deb/dovecot/sieve/20-managesieve.conf → install/common/dovecot/sieve/20-managesieve.conf


+ 0 - 0
install/deb/dovecot/sieve/90-sieve-extprograms.conf → install/common/dovecot/sieve/90-sieve-extprograms.conf


+ 0 - 0
install/deb/dovecot/sieve/90-sieve.conf → install/common/dovecot/sieve/90-sieve.conf


+ 0 - 0
install/deb/templates/dns/child-ns.tpl → install/common/templates/dns/child-ns.tpl


+ 0 - 0
install/deb/templates/dns/default-nomail.tpl → install/common/templates/dns/default-nomail.tpl


+ 0 - 0
install/deb/templates/dns/default.tpl → install/common/templates/dns/default.tpl


+ 0 - 0
install/deb/templates/dns/gmail.tpl → install/common/templates/dns/gmail.tpl


+ 0 - 0
install/deb/templates/dns/office365.tpl → install/common/templates/dns/office365.tpl


+ 0 - 0
install/deb/templates/dns/zoho.tpl → install/common/templates/dns/zoho.tpl


+ 2 - 2
install/hst-install-debian.sh

@@ -1678,7 +1678,7 @@ fi
 if [ "$dovecot" = 'yes' ]; then
     echo "[ * ] Configuring Dovecot POP/IMAP mail server..."
     gpasswd -a dovecot mail > /dev/null 2>&1
-    cp -rf $HESTIA_INSTALL_DIR/dovecot /etc/
+    cp -rf $HESTIA_COMMON_DIR/dovecot /etc/
     cp -f $HESTIA_INSTALL_DIR/logrotate/dovecot /etc/logrotate.d/
     chown -R root:root /etc/dovecot*
     rm -f /etc/dovecot/conf.d/15-mailboxes.conf
@@ -1827,7 +1827,7 @@ if [ "$sieve" = 'yes' ]; then
     sed -i "s/mail_plugins = quota imap_quota/mail_plugins = quota imap_quota imap_sieve/g" /etc/dovecot/conf.d/20-imap.conf
 
     # replace dovecot-sieve config files
-    cp -f $HESTIA_INSTALL_DIR/dovecot/sieve/* /etc/dovecot/conf.d
+    cp -f $HESTIA_COMMON_DIR/dovecot/sieve/* /etc/dovecot/conf.d
 
     echo -e "require [\"fileinto\"];\n# rule:[SPAM]\nif header :contains \"X-Spam-Flag\" \"YES\" {\n    fileinto \"INBOX.Spam\";\n}\n" > /etc/dovecot/sieve/default
 

+ 2 - 2
install/hst-install-ubuntu.sh

@@ -1751,7 +1751,7 @@ fi
 if [ "$dovecot" = 'yes' ]; then
     echo "[ * ] Configuring Dovecot POP/IMAP mail server..."
     gpasswd -a dovecot mail > /dev/null 2>&1
-    cp -rf $HESTIA_INSTALL_DIR/dovecot /etc/
+    cp -rf $HESTIA_COMMON_DIR/dovecot /etc/
     cp -f $HESTIA_INSTALL_DIR/logrotate/dovecot /etc/logrotate.d/
     rm -f /etc/dovecot/conf.d/15-mailboxes.conf
 
@@ -1890,7 +1890,7 @@ if [ "$sieve" = 'yes' ]; then
     sed -i "s/mail_plugins = quota imap_quota/mail_plugins = quota imap_quota imap_sieve/g" /etc/dovecot/conf.d/20-imap.conf
 
     # replace dovecot-sieve config files
-    cp -f $HESTIA_INSTALL_DIR/dovecot/sieve/* /etc/dovecot/conf.d
+    cp -f $HESTIA_COMMON_DIR/dovecot/sieve/* /etc/dovecot/conf.d
 
     # Dovecot default file install
     echo -e "require [\"fileinto\"];\n# rule:[SPAM]\nif header :contains \"X-Spam-Flag\" \"YES\" {\n    fileinto \"INBOX.Spam\";\n}\n" > /etc/dovecot/sieve/default

+ 0 - 5
install/rpm/dovecot/conf.d/10-auth.conf

@@ -1,5 +0,0 @@
-disable_plaintext_auth = no
-auth_username_format = %u
-auth_verbose = yes
-auth_mechanisms = plain login
-!include auth-passwdfile.conf.ext

+ 0 - 1
install/rpm/dovecot/conf.d/10-logging.conf

@@ -1 +0,0 @@
-log_path = /var/log/dovecot.log

+ 0 - 8
install/rpm/dovecot/conf.d/10-mail.conf

@@ -1,8 +0,0 @@
-mail_privileged_group = mail
-mail_access_groups = mail
-mail_location = maildir:%h/mail/%d/%n
-pop3_uidl_format = %08Xu%08Xv
-
-mailbox_list_index = yes
-mailbox_idle_check_interval = 30 secs
-maildir_copy_with_hardlinks = yes

+ 0 - 29
install/rpm/dovecot/conf.d/10-master.conf

@@ -1,29 +0,0 @@
-service imap-login {
-  inet_listener imap {
-  }
-  inet_listener imaps {
-  }
-}
-
-service pop3-login {
-  inet_listener pop3 {
-  }
-  inet_listener pop3s {
-  }
-}
-
-
-service imap {
-}
-
-service pop3 {
-}
-
-service auth {
-  unix_listener auth-client {
-    group = mail
-    mode = 0660
-    user = dovecot
-  }
-  user = dovecot
-}

+ 0 - 13
install/rpm/dovecot/conf.d/10-ssl.conf

@@ -1,13 +0,0 @@
-ssl = yes
-#ssl_protocols = !SSLv3 !TLSv1
-ssl_prefer_server_ciphers = yes
-ssl_cipher_list = ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:ECDHE-ECDSA-DES-CBC3-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:DES-CBC3-SHA:!DSS
-
-ssl_cert = </usr/local/hestia/ssl/certificate.crt
-ssl_key = </usr/local/hestia/ssl/certificate.key
-
-# From and up to version 2.2
-#ssl_dh_parameters_length = 4096
-
-# From version 2.3
-#ssl_dh = </etc/ssl/dhparam.pem

+ 0 - 76
install/rpm/dovecot/conf.d/15-mailboxes.conf

@@ -1,76 +0,0 @@
-##
-## Mailbox definitions
-##
-
-# Each mailbox is specified in a separate mailbox section. The section name
-# specifies the mailbox name. If it has spaces, you can put the name
-# "in quotes". These sections can contain the following mailbox settings:
-#
-# auto:
-#   Indicates whether the mailbox with this name is automatically created
-#   implicitly when it is first accessed. The user can also be automatically
-#   subscribed to the mailbox after creation. The following values are
-#   defined for this setting:
-#
-#     no        - Never created automatically.
-#     create    - Automatically created, but no automatic subscription.
-#     subscribe - Automatically created and subscribed.
-#
-# special_use:
-#   A space-separated list of SPECIAL-USE flags (RFC 6154) to use for the
-#   mailbox. There are no validity checks, so you could specify anything
-#   you want in here, but it's not a good idea to use flags other than the
-#   standard ones specified in the RFC:
-#
-#     \All      - This (virtual) mailbox presents all messages in the
-#                 user's message store.
-#     \Archive  - This mailbox is used to archive messages.
-#     \Drafts   - This mailbox is used to hold draft messages.
-#     \Flagged  - This (virtual) mailbox presents all messages in the
-#                 user's message store marked with the IMAP \Flagged flag.
-#     \Junk     - This mailbox is where messages deemed to be junk mail
-#                 are held.
-#     \Sent     - This mailbox is used to hold copies of messages that
-#                 have been sent.
-#     \Trash    - This mailbox is used to hold messages that have been
-#                 deleted.
-#
-# comment:
-#   Defines a default comment or note associated with the mailbox. This
-#   value is accessible through the IMAP METADATA mailbox entries
-#   "/shared/comment" and "/private/comment". Users with sufficient
-#   privileges can override the default value for entries with a custom
-#   value.
-
-# NOTE: Assumes "namespace inbox" has been defined in 10-mail.conf.
-namespace inbox {
-  inbox = yes
-  # These mailboxes are widely used and could perhaps be created automatically:
-  mailbox Drafts {
-    special_use = \Drafts
-  }
-  mailbox Junk {
-    special_use = \Junk
-  }
-  mailbox Trash {
-    special_use = \Trash
-  }
-
-  # For \Sent mailboxes there are two widely used names. We'll mark both of
-  # them as \Sent. User typically deletes one of them if duplicates are created.
-  mailbox Sent {
-    special_use = \Sent
-  }
-
-  # If you have a virtual "All messages" mailbox:
-  #mailbox virtual/All {
-  #  special_use = \All
-  #  comment = All my messages
-  #}
-
-  # If you have a virtual "Flagged" mailbox:
-  #mailbox virtual/Flagged {
-  #  special_use = \Flagged
-  #  comment = All my flagged messages
-  #}
-}

+ 0 - 59
install/rpm/dovecot/conf.d/20-imap.conf

@@ -1,59 +0,0 @@
-##
-## IMAP specific settings
-##
-
-protocol imap {
-  # Maximum IMAP command line length. Some clients generate very long command
-  # lines with huge mailboxes, so you may need to raise this if you get
-  # "Too long argument" or "IMAP command line too large" errors often.
-  #imap_max_line_length = 64k
-
-  # Maximum number of IMAP connections allowed for a user from each IP address.
-  # NOTE: The username is compared case-sensitively.
-  #mail_max_userip_connections = 10
-
-  # Space separated list of plugins to load (default is global mail_plugins).
-  #mail_plugins = $mail_plugins
-  mail_plugins = quota imap_quota
-
-  # IMAP logout format string:
-  #  %i - total number of bytes read from client
-  #  %o - total number of bytes sent to client
-  #imap_logout_format = bytes=%i/%o
-
-  # Override the IMAP CAPABILITY response. If the value begins with '+',
-  # add the given capabilities on top of the defaults (e.g. +XFOO XBAR).
-  #imap_capability = 
-
-  # How long to wait between "OK Still here" notifications when client is
-  # IDLEing.
-  #imap_idle_notify_interval = 2 mins
-
-  # ID field names and values to send to clients. Using * as the value makes
-  # Dovecot use the default value. The following fields have default values
-  # currently: name, version, os, os-version, support-url, support-email.
-  #imap_id_send = 
-
-  # ID fields sent by client to log. * means everything.
-  #imap_id_log =
-
-  # Workarounds for various client bugs:
-  #   delay-newmail:
-  #     Send EXISTS/RECENT new mail notifications only when replying to NOOP
-  #     and CHECK commands. Some clients ignore them otherwise, for example OSX
-  #     Mail (<v2.1). Outlook Express breaks more badly though, without this it
-  #     may show user "Message no longer in server" errors. Note that OE6 still
-  #     breaks even with this workaround if synchronization is set to
-  #     "Headers Only".
-  #   tb-extra-mailbox-sep:
-  #     Thunderbird gets somehow confused with LAYOUT=fs (mbox and dbox) and
-  #     adds extra '/' suffixes to mailbox names. This option causes Dovecot to
-  #     ignore the extra '/' instead of treating it as invalid mailbox name.
-  #   tb-lsub-flags:
-  #     Show \Noselect flags for LSUB replies with LAYOUT=fs (e.g. mbox).
-  #     This makes Thunderbird realize they aren't selectable and show them
-  #     greyed out, instead of only later giving "not selectable" popup error.
-  #
-  # The list is space-separated.
-  #imap_client_workarounds = 
-}

+ 0 - 92
install/rpm/dovecot/conf.d/20-pop3.conf

@@ -1,92 +0,0 @@
-##
-## POP3 specific settings
-##
-
-protocol pop3 {
-  # Don't try to set mails non-recent or seen with POP3 sessions. This is
-  # mostly intended to reduce disk I/O. With maildir it doesn't move files
-  # from new/ to cur/, with mbox it doesn't write Status-header.
-  #pop3_no_flag_updates = no
-
-  # Support LAST command which exists in old POP3 specs, but has been removed
-  # from new ones. Some clients still wish to use this though. Enabling this
-  # makes RSET command clear all \Seen flags from messages.
-  #pop3_enable_last = no
-
-  # If mail has X-UIDL header, use it as the mail's UIDL.
-  #pop3_reuse_xuidl = no
-
-  # Keep the mailbox locked for the entire POP3 session.
-  #pop3_lock_session = no
-
-  # POP3 requires message sizes to be listed as if they had CR+LF linefeeds.
-  # Many POP3 servers violate this by returning the sizes with LF linefeeds,
-  # because it's faster to get. When this setting is enabled, Dovecot still
-  # tries to do the right thing first, but if that requires opening the
-  # message, it fallbacks to the easier (but incorrect) size.
-  #pop3_fast_size_lookups = no
-
-  # POP3 UIDL (unique mail identifier) format to use. You can use following
-  # variables, along with the variable modifiers described in
-  # doc/wiki/Variables.txt (e.g. %Uf for the filename in uppercase)
-  #
-  #  %v - Mailbox's IMAP UIDVALIDITY
-  #  %u - Mail's IMAP UID
-  #  %m - MD5 sum of the mailbox headers in hex (mbox only)
-  #  %f - filename (maildir only)
-  #  %g - Mail's GUID
-  #
-  # If you want UIDL compatibility with other POP3 servers, use:
-  #  UW's ipop3d         : %08Xv%08Xu
-  #  Courier             : %f or %v-%u (both might be used simultaneosly)
-  #  Cyrus (<= 2.1.3)    : %u
-  #  Cyrus (>= 2.1.4)    : %v.%u
-  #  Dovecot v0.99.x     : %v.%u
-  #  tpop3d              : %Mf
-  #
-  # Note that Outlook 2003 seems to have problems with %v.%u format which was
-  # Dovecot's default, so if you're building a new server it would be a good
-  # idea to change this. %08Xu%08Xv should be pretty fail-safe.
-  #
-  #pop3_uidl_format = %08Xu%08Xv
-
-  # Permanently save UIDLs sent to POP3 clients, so pop3_uidl_format changes
-  # won't change those UIDLs. Currently this works only with Maildir.
-  #pop3_save_uidl = no
-
-  # What to do about duplicate UIDLs if they exist?
-  #   allow: Show duplicates to clients.
-  #   rename: Append a temporary -2, -3, etc. counter after the UIDL.
-  #pop3_uidl_duplicates = allow
-
-  # POP3 logout format string:
-  #  %i - total number of bytes read from client
-  #  %o - total number of bytes sent to client
-  #  %t - number of TOP commands
-  #  %p - number of bytes sent to client as a result of TOP command
-  #  %r - number of RETR commands
-  #  %b - number of bytes sent to client as a result of RETR command
-  #  %d - number of deleted messages
-  #  %m - number of messages (before deletion)
-  #  %s - mailbox size in bytes (before deletion)
-  #  %u - old/new UIDL hash. may help finding out if UIDLs changed unexpectedly
-  #pop3_logout_format = top=%t/%p, retr=%r/%b, del=%d/%m, size=%s
-
-  # Maximum number of POP3 connections allowed for a user from each IP address.
-  # NOTE: The username is compared case-sensitively.
-  #mail_max_userip_connections = 10
-
-  # Space separated list of plugins to load (default is global mail_plugins).
-  #mail_plugins = $mail_plugins
-  mail_plugins = quota
-
-  # Workarounds for various client bugs:
-  #   outlook-no-nuls:
-  #     Outlook and Outlook Express hang if mails contain NUL characters.
-  #     This setting replaces them with 0x80 character.
-  #   oe-ns-eoh:
-  #     Outlook Express and Netscape Mail breaks if end of headers-line is
-  #     missing. This option simply sends it if it's missing.
-  # The list is space-separated.
-  #pop3_client_workarounds = 
-}

+ 0 - 84
install/rpm/dovecot/conf.d/90-quota.conf

@@ -1,84 +0,0 @@
-##
-## Quota configuration.
-##
-
-# Note that you also have to enable quota plugin in mail_plugins setting.
-# <doc/wiki/Quota.txt>
-
-##
-## Quota limits
-##
-
-# Quota limits are set using "quota_rule" parameters. To get per-user quota
-# limits, you can set/override them by returning "quota_rule" extra field
-# from userdb. It's also possible to give mailbox-specific limits, for example
-# to give additional 100 MB when saving to Trash:
-
-plugin {
-  #quota_rule = *:storage=1G
-  #quota_rule2 = Trash:storage=+100M
-
-  # LDA/LMTP allows saving the last mail to bring user from under quota to
-  # over quota, if the quota doesn't grow too high. Default is to allow as
-  # long as quota will stay under 10% above the limit. Also allowed e.g. 10M.
-  #quota_grace = 10%%
-
-  # Quota plugin can also limit the maximum accepted mail size.
-  #quota_max_mail_size = 100M
-}
-
-##
-## Quota warnings
-##
-
-# You can execute a given command when user exceeds a specified quota limit.
-# Each quota root has separate limits. Only the command for the first
-# exceeded limit is excecuted, so put the highest limit first.
-# The commands are executed via script service by connecting to the named
-# UNIX socket (quota-warning below).
-# Note that % needs to be escaped as %%, otherwise "% " expands to empty.
-
-plugin {
-  #quota_warning = storage=95%% quota-warning 95 %u
-  #quota_warning2 = storage=80%% quota-warning 80 %u
-}
-
-# Example quota-warning service. The unix listener's permissions should be
-# set in a way that mail processes can connect to it. Below example assumes
-# that mail processes run as vmail user. If you use mode=0666, all system users
-# can generate quota warnings to anyone.
-#service quota-warning {
-#  executable = script /usr/local/bin/quota-warning.sh
-#  user = dovecot
-#  unix_listener quota-warning {
-#    user = vmail
-#  }
-#}
-
-##
-## Quota backends
-##
-
-# Multiple backends are supported:
-#   dirsize: Find and sum all the files found from mail directory.
-#            Extremely SLOW with Maildir. It'll eat your CPU and disk I/O.
-#   dict: Keep quota stored in dictionary (eg. SQL)
-#   maildir: Maildir++ quota
-#   fs: Read-only support for filesystem quota
-
-plugin {
-  #quota = dirsize:User quota
-  quota = maildir:User quota
-  #quota = dict:User quota::proxy::quota
-  #quota = fs:User quota
-}
-
-# Multiple quota roots are also possible, for example this gives each user
-# their own 100MB quota and one shared 1GB quota within the domain:
-plugin {
-  #quota = dict:user::proxy::quota
-  #quota2 = dict:domain:%d:proxy::quota_domain
-  #quota_rule = *:storage=102400
-  #quota2_rule = *:storage=1048576
-}
-

+ 0 - 9
install/rpm/dovecot/conf.d/auth-passwdfile.conf.ext

@@ -1,9 +0,0 @@
-passdb {
-  driver = passwd-file
-  args = scheme=MD5-CRYPT username_format=%n /etc/exim/domains/%d/passwd
-}
-
-userdb {
-  driver = passwd-file
-  args = username_format=%n /etc/exim/domains/%d/passwd
-}

+ 0 - 58
install/rpm/dovecot/dovecot.conf

@@ -1,58 +0,0 @@
-protocols = imap pop3
-listen = *, ::
-base_dir = /var/run/dovecot/
-login_greeting = Mail Delivery Agent
-!include conf.d/*.conf
-!include_try conf.d/domains/*.conf
-
-namespace {
-    type = private
-    separator = /
-    inbox = yes
-    list = yes
-
-    mailbox Archive {
-        auto = subscribe
-        special_use = \Archive
-    }
-
-    mailbox Drafts {
-        auto = subscribe
-        special_use = \Drafts
-    }
-
-    mailbox Trash {
-        auto = subscribe
-        special_use = \Trash
-    }
-
-    mailbox "Deleted Messages" {
-        auto = no
-        special_use = \Trash
-    }
-
-    mailbox Spam {
-        auto = subscribe
-        special_use = \Junk
-    }
-
-    mailbox Junk {
-        auto = no
-        special_use = \Junk
-    }
-
-    mailbox Sent {
-        auto = subscribe
-        special_use = \Sent
-    }
-
-    mailbox "Sent Mail" {
-        auto = no
-        special_use = \Sent
-    }
-    
-    mailbox "Sent Messages" {
-        auto = no
-        special_use = \Sent
-    }
-}

+ 0 - 12
install/rpm/templates/dns/child-ns.tpl

@@ -1,12 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='ns1.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='ns2.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='ns1' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='5' RECORD='ns2' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='9' RECORD='webmail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='@' TYPE='MX' PRIORITY='0' VALUE='mail.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='11' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='_dmarc' TYPE='TXT' PRIORITY='' VALUE='"v=DMARC1; p=quarantine; pct=100"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 11
install/rpm/templates/dns/default-nomail.tpl

@@ -1,11 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='5' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns5%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns6%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns7%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns8%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='9' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='11' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 19
install/rpm/templates/dns/default.tpl

@@ -1,19 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns3%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns4%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='5' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns5%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns6%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns7%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns8%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='9' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='11' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='mail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='13' RECORD='smtp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='14' RECORD='pop' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='15' RECORD='imap' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='16' RECORD='webmail' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='17' RECORD='@' TYPE='MX' PRIORITY='0' VALUE='mail.%domain%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='18' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='19' RECORD='_dmarc' TYPE='TXT' PRIORITY='' VALUE='"v=DMARC1; p=quarantine; pct=100"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 12
install/rpm/templates/dns/gmail.tpl

@@ -1,12 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='5' RECORD='localhost' TYPE='A' PRIORITY='' VALUE='127.0.0.1' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='@' TYPE='MX' PRIORITY='1' VALUE='ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT1.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='9' RECORD='@' TYPE='MX' PRIORITY='5' VALUE='ALT2.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT3.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='11' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='ALT4.ASPMX.L.GOOGLE.COM.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% include:_spf.google.com -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 16
install/rpm/templates/dns/office365.tpl

@@ -1,16 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% include:spf.protection.outlook.com -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='_dmarc' TYPE='TXT' PRIORITY='' VALUE='v=DMARC1; p=none; pct=100; fo=1'
-ID='9' RECORD='autodiscover' TYPE='CNAME' PRIORITY='' VALUE='autodiscover.outlook.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='lyncdiscover' TYPE='CNAME' PRIORITY='' VALUE='webdir.online.lync.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='11' RECORD='sip' TYPE='CNAME' PRIORITY='' VALUE='sipdir.online.lync.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='12' RECORD='enterpriseregistration' TYPE='CNAME' PRIORITY='' VALUE='enterpriseregistration.windows.net.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='13' RECORD='enterpriseenrollment' TYPE='CNAME' PRIORITY='' VALUE='enterpriseenrollment.manage.microsoft.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='14' RECORD='_sip._tls' TYPE='SRV' PRIORITY='100' VALUE='1 443 sipdir.online.lync.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='15' RECORD='_sipfederationtls._tcp' TYPE='SRV' PRIORITY='100' VALUE='1 5061 sipfed.online.lync.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='16' RECORD='login' TYPE='CNAME' PRIORITY='' VALUE='login.microsoftonline.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='17' RECORD='mail' TYPE='CNAME' PRIORITY='' VALUE='mail.office365.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 0 - 9
install/rpm/templates/dns/zoho.tpl

@@ -1,9 +0,0 @@
-ID='1' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns1%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='2' RECORD='@' TYPE='NS' PRIORITY='' VALUE='%ns2%.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='3' RECORD='@' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='4' RECORD='ftp' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='6' RECORD='www' TYPE='A' PRIORITY='' VALUE='%ip%' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='7' RECORD='@' TYPE='MX' PRIORITY='10' VALUE='mx.zoho.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='8' RECORD='@' TYPE='MX' PRIORITY='20' VALUE='mx2.zoho.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='9' RECORD='@' TYPE='MX' PRIORITY='50' VALUE='mx3.zoho.com.' SUSPENDED='no' TIME='%time%' DATE='%date%'
-ID='10' RECORD='@' TYPE='TXT' PRIORITY='' VALUE='"v=spf1 a mx ip4:%ip% include:zoho.com -all"' SUSPENDED='no' TIME='%time%' DATE='%date%'

+ 1 - 1
install/upgrade/manual/install_sieve.sh

@@ -54,7 +54,7 @@ if [ "$HAS_DOVECOT_SIEVE_INSTALLED" = "0" ]; then
     sed -i "s/mail_plugins = quota imap_quota/mail_plugins = quota imap_quota imap_sieve/g" /etc/dovecot/conf.d/20-imap.conf
     
     # replace dovecot-sieve config files
-    cp -f $HESTIA_INSTALL_DIR/dovecot/sieve/* /etc/dovecot/conf.d
+    cp -f $HESTIA_COMMON_DIR/dovecot/sieve/* /etc/dovecot/conf.d
     
     # dovecot default file install
     mkdir /etc/dovecot/sieve

+ 1 - 1
install/upgrade/versions/1.00.0-190618.sh

@@ -208,7 +208,7 @@ fi
 if [ -f /etc/dovecot/dovecot.conf ]; then
     # Update Dovecot configuration and restart Dovecot service
     mv  /etc/dovecot/dovecot.conf $HESTIA_BACKUP/conf/
-    cp -f $HESTIA_INSTALL_DIR/dovecot/dovecot.conf /etc/dovecot/dovecot.conf
+    cp -f $HESTIA_COMMON_DIR/dovecot/dovecot.conf /etc/dovecot/dovecot.conf
     systemctl restart dovecot
     sleep 0.5
 fi

+ 1 - 1
src/hst_autocompile.sh

@@ -224,7 +224,7 @@ if [ -e "/etc/redhat-release" ]; then
 else
     HESTIA_V="${BUILD_VER}_${BUILD_ARCH}"
 fi
-OPENSSL_V='3.0.3'
+OPENSSL_V='3.0.5'
 PCRE_V='10.40'
 ZLIB_V='1.2.12'
 

+ 5 - 1
src/hst_bootstrap_install.sh

@@ -18,4 +18,8 @@ chmod +x hst_autocompile.sh
 ./hst_autocompile.sh --hestia $branch no
 
 # Execute Hestia Control Panel installer with default dummy options for testing
-bash hst-install-$os.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-$os.test.local --with-debs /tmp/hestiacp-src/debs
+if [ -f "/etc/redhat-release" ]; then
+    bash hst-install-$os.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-$os.test.local --with-rpms /tmp/hestiacp-src/rpms
+else
+    bash hst-install-$os.sh -f -y no -e admin@test.local -p P@ssw0rd -s hestia-$branch-$os.test.local --with-debs /tmp/hestiacp-src/debs
+fi