From d16fe5044cf16bc552251ef50fd767c825b10c11 Mon Sep 17 00:00:00 2001 From: Zhang Huangbin Date: Tue, 22 Dec 2020 13:10:25 +0800 Subject: [PATCH] Remove apache related info. --- en_US/howto/1-change.mail.attachment.size.md | 21 -------- en_US/howto/track.user.last.login.md | 52 ++++++++++---------- html/change.mail.attachment.size.html | 22 +-------- html/track.user.last.login.html | 52 ++++++++++---------- 4 files changed, 53 insertions(+), 94 deletions(-) diff --git a/en_US/howto/1-change.mail.attachment.size.md b/en_US/howto/1-change.mail.attachment.size.md index f708a488..c57d2424 100644 --- a/en_US/howto/1-change.mail.attachment.size.md +++ b/en_US/howto/1-change.mail.attachment.size.md @@ -118,27 +118,6 @@ limit message size, please add or update this parameter in its config file: $config['max_message_size'] = '100M'; ``` -### Change Roundcube webmail settings to allow large attachment - -Change same settings in file `.htaccess` under roundcube root directory: - -* on RHEL/CentOS, it's `/var/www/roundcubemail/.htaccess` -* on Debian/Ubuntu, it's `/usr/share/apache2/roundcubemail/.htaccess` or - `/opt/www/roundcubemail/.htaccess`. -* on FreeBSD, it's `/usr/local/www/roundcubemail/.htaccess` -* on OpenBSD, it's `/var/www/roundcubemail/.htaccess` - -Note: this `.htaccess` file may not exist on some Linux/BSD distributions, -if it doesn't exist, you can skip this step. - -``` -php_value memory_limit 200M -php_value upload_max_filesize 100M -php_value post_max_size 100M -``` - -Restart Apache or php-fpm service to make it work. - ## Change upload file size in Nginx Find setting `client_max_body_size` in Nginx config file diff --git a/en_US/howto/track.user.last.login.md b/en_US/howto/track.user.last.login.md index 69d18c29..3dc58c9a 100644 --- a/en_US/howto/track.user.last.login.md +++ b/en_US/howto/track.user.last.login.md @@ -128,34 +128,34 @@ map { } } -# If you want to track the time of last email delivered to mailbox via LDA, -# please enable `last_login` plugin in the `protocol lda {}` block in dovecot.conf. -#map { -# pattern = shared/last-login/lda/$user/$domain -# table = last_login -# value_field = lda -# value_type = uint -# -# fields { -# username = $user -# domain = $domain -# } -#} +# Track the time of last email delivered to mailbox via LDA. +# Please enable `last_login` plugin in the `protocol lda {}` block in dovecot.conf. +map { + pattern = shared/last-login/lda/$user/$domain + table = last_login + value_field = lda + value_type = uint -# If you want to track the time of last email delivered to mailbox via LMTP, -# please enable `last_login` plugin in the `protocol lmtp {}` block in dovecot.conf. + fields { + username = $user + domain = $domain + } +} + +# Track the time of last email delivered to mailbox via LMTP, +# Please enable `last_login` plugin in the `protocol lmtp {}` block in dovecot.conf. # We treat lmtp as lda, store the time in sql column `lda`. -#map { -# pattern = shared/last-login/lmtp/$user/$domain -# table = last_login -# value_field = lda -# value_type = uint -# -# fields { -# username = $user -# domain = $domain -# } -#} +map { + pattern = shared/last-login/lmtp/$user/$domain + table = last_login + value_field = lda + value_type = uint + + fields { + username = $user + domain = $domain + } +} ``` Since this file contain SQL username and password, we must protect it with diff --git a/html/change.mail.attachment.size.html b/html/change.mail.attachment.size.html index 85c42366..649c6b6c 100644 --- a/html/change.mail.attachment.size.html +++ b/html/change.mail.attachment.size.html @@ -26,10 +26,7 @@
  • Change message size limit in postfix
  • Change message size limit in iRedAPD
  • Change PHP settings to upload large file
  • -
  • Roundcube webmail -
  • +
  • Roundcube webmail
  • Change upload file size in Nginx
  • Change file size limits in SOGo
  • Change attachment size limit in Microsoft Outlook
  • @@ -144,23 +141,6 @@ limit message size, please add or update this parameter in its config file:

    $config['max_message_size'] = '100M';
     
    -

    Change Roundcube webmail settings to allow large attachment

    -

    Change same settings in file .htaccess under roundcube root directory:

    - -

    Note: this .htaccess file may not exist on some Linux/BSD distributions, -if it doesn't exist, you can skip this step.

    -
    php_value    memory_limit   200M
    -php_value    upload_max_filesize    100M
    -php_value    post_max_size  100M
    -
    - -

    Restart Apache or php-fpm service to make it work.

    Change upload file size in Nginx

    Find setting client_max_body_size in Nginx config file /etc/nginx/conf-enabled/client_max_body_size.conf, change the size to a diff --git a/html/track.user.last.login.html b/html/track.user.last.login.html index 64044b8c..f56a3706 100644 --- a/html/track.user.last.login.html +++ b/html/track.user.last.login.html @@ -149,34 +149,34 @@ map { } } -# If you want to track the time of last email delivered to mailbox via LDA, -# please enable `last_login` plugin in the `protocol lda {}` block in dovecot.conf. -#map { -# pattern = shared/last-login/lda/$user/$domain -# table = last_login -# value_field = lda -# value_type = uint -# -# fields { -# username = $user -# domain = $domain -# } -#} +# Track the time of last email delivered to mailbox via LDA. +# Please enable `last_login` plugin in the `protocol lda {}` block in dovecot.conf. +map { + pattern = shared/last-login/lda/$user/$domain + table = last_login + value_field = lda + value_type = uint -# If you want to track the time of last email delivered to mailbox via LMTP, -# please enable `last_login` plugin in the `protocol lmtp {}` block in dovecot.conf. + fields { + username = $user + domain = $domain + } +} + +# Track the time of last email delivered to mailbox via LMTP, +# Please enable `last_login` plugin in the `protocol lmtp {}` block in dovecot.conf. # We treat lmtp as lda, store the time in sql column `lda`. -#map { -# pattern = shared/last-login/lmtp/$user/$domain -# table = last_login -# value_field = lda -# value_type = uint -# -# fields { -# username = $user -# domain = $domain -# } -#} +map { + pattern = shared/last-login/lmtp/$user/$domain + table = last_login + value_field = lda + value_type = uint + + fields { + username = $user + domain = $domain + } +}

    Since this file contain SQL username and password, we must protect it with