From c375fede5b20ab3a252fcf331131268867d02977 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Mon, 5 Jun 2017 12:40:41 +0200 Subject: [PATCH 01/15] Fix the nginx container build (package name changed for nginx-lua) (cherry picked from commit 4e212e3d6072b918b50be1d51f30aa93dc5dcda4) --- nginx/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/Dockerfile b/nginx/Dockerfile index b253ee35..15d00972 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -1,6 +1,6 @@ FROM nginx:alpine -RUN apk add --no-cache nginx-lua openssl +RUN apk add --no-cache nginx-mod-http-lua openssl COPY nginx.conf.default /etc/nginx/nginx.conf.default COPY nginx.conf.fallback /etc/nginx/nginx.conf.fallback From 1454ef9c9abd5fe84c03993e1297c87e7014b675 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Mon, 5 Jun 2017 13:13:06 +0200 Subject: [PATCH 02/15] Properly load the nginx lua module (cherry picked from commit 4bdd8c1df5fc29e9cdd350aaaadd05daa405af73) --- nginx/nginx.conf.default | 2 ++ nginx/nginx.conf.fallback | 2 ++ 2 files changed, 4 insertions(+) diff --git a/nginx/nginx.conf.default b/nginx/nginx.conf.default index 0d57ca50..80df4402 100644 --- a/nginx/nginx.conf.default +++ b/nginx/nginx.conf.default @@ -3,6 +3,8 @@ user nginx; worker_processes 1; error_log /dev/stderr info; pid /var/run/nginx.pid; +include /etc/nginx/modules/devel_kit.conf; +include /etc/nginx/modules/http_lua.conf; events { worker_connections 1024; diff --git a/nginx/nginx.conf.fallback b/nginx/nginx.conf.fallback index bf5cd869..8d071333 100644 --- a/nginx/nginx.conf.fallback +++ b/nginx/nginx.conf.fallback @@ -3,6 +3,8 @@ user nginx; worker_processes 1; error_log /dev/stderr info; pid /var/run/nginx.pid; +include /etc/nginx/modules/devel_kit.conf; +include /etc/nginx/modules/http_lua.conf; events { worker_connections 1024; From 22e7ee9dbe09ab0f85537b5c1fe91b4e2142e374 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Wed, 22 Mar 2017 19:26:38 +0100 Subject: [PATCH 03/15] Fix the nginx startup script (cherry picked from commit e26c6f7a6e462fd7e907494b8e68b213315cc43d) --- nginx/start.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nginx/start.sh b/nginx/start.sh index 2cb65f1a..a0f7718b 100755 --- a/nginx/start.sh +++ b/nginx/start.sh @@ -1,11 +1,10 @@ #!/bin/sh -if [[ -z ENABLE_CERTBOT || -f /certs/cert.pem ]] +if [ -z ENABLE_CERTBOT ] || [ -f /certs/cert.pem ] then cp /etc/nginx/nginx.conf.default /etc/nginx/nginx.conf else - openssl req -newkey rsa:2048 -x509 -keyout /tmp/snakeoil.pem -out /tmp/snakeoil.pem -days 365 -nodes -subj "/C=NA/ST=None/ -L=None/O=None/CN=$DOMAIN" + openssl req -newkey rsa:2048 -x509 -keyout /tmp/snakeoil.pem -out /tmp/snakeoil.pem -days 365 -nodes -subj "/C=NA/ST=None/L=None/O=None/CN=$DOMAIN" cp /etc/nginx/nginx.conf.fallback /etc/nginx/nginx.conf fi From b245e520bac168ba097a7efe6ed30cf9c1020d02 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sat, 2 Sep 2017 20:00:17 +0200 Subject: [PATCH 04/15] Fix a regression introduced in 3e85bb2d7381c42bdc75db9c6400c4503cc8dd78, bypassing sender restrictions on port 25 --- postfix/conf/master.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix/conf/master.cf b/postfix/conf/master.cf index 565d1a62..a196f496 100644 --- a/postfix/conf/master.cf +++ b/postfix/conf/master.cf @@ -3,7 +3,7 @@ # Exposed SMTP services smtp inet n - n - - smtpd - -o smtpd_sender_restrictions=permit_mynetworks,permit + -o smtpd_helo_restrictions=permit_mynetworks,permit submission inet n - n - - smtpd -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes From 2b3b1aeb19d97373ef79bf1953ba0ad466bc17de Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 3 Sep 2017 15:43:30 +0200 Subject: [PATCH 05/15] Add a button to keep forwarded messages --- admin/mailu/admin/forms.py | 1 + admin/mailu/admin/models.py | 1 + admin/mailu/admin/templates/user/forward.html | 6 +- .../translations/de/LC_MESSAGES/messages.po | 155 ++++++++++------- .../translations/en/LC_MESSAGES/messages.po | 108 +++++++----- .../translations/fr/LC_MESSAGES/messages.po | 164 +++++++++++------- .../translations/pt/LC_MESSAGES/messages.po | 117 +++++++------ admin/messages.pot | 112 +++++++----- admin/migrations/versions/73e56bad5ec5_.py | 24 +++ 9 files changed, 421 insertions(+), 267 deletions(-) create mode 100644 admin/migrations/versions/73e56bad5ec5_.py diff --git a/admin/mailu/admin/forms.py b/admin/mailu/admin/forms.py index d653a2f8..ec3c7164 100644 --- a/admin/mailu/admin/forms.py +++ b/admin/mailu/admin/forms.py @@ -77,6 +77,7 @@ class UserPasswordForm(flask_wtf.FlaskForm): class UserForwardForm(flask_wtf.FlaskForm): forward_enabled = fields.BooleanField(_('Enable forwarding')) + forward_keep = fields.BooleanField(_('Keep a copy of the emails')) forward_destination = fields.StringField( _('Destination'), [validators.Optional(), validators.Email()] ) diff --git a/admin/mailu/admin/models.py b/admin/mailu/admin/models.py index 54405745..a1828a84 100644 --- a/admin/mailu/admin/models.py +++ b/admin/mailu/admin/models.py @@ -146,6 +146,7 @@ class User(Base, Email): # Filters forward_enabled = db.Column(db.Boolean(), nullable=False, default=False) forward_destination = db.Column(db.String(255), nullable=True, default=None) + forward_keep = db.Column(db.Boolean(), nullable=False, default=True) reply_enabled = db.Column(db.Boolean(), nullable=False, default=False) reply_subject = db.Column(db.String(255), nullable=True, default=None) reply_body = db.Column(db.Text(), nullable=True, default=None) diff --git a/admin/mailu/admin/templates/user/forward.html b/admin/mailu/admin/templates/user/forward.html index fb98f3d6..116aae2e 100644 --- a/admin/mailu/admin/templates/user/forward.html +++ b/admin/mailu/admin/templates/user/forward.html @@ -12,8 +12,10 @@
{{ form.hidden_tag() }} {{ macros.form_field(form.forward_enabled, - onchange="if(this.checked){$('#forward_destination').removeAttr('disabled')} - else{$('#forward_destination').attr('disabled', '')}") }} + onchange="if(this.checked){$('#forward_destination,#forward_keep').removeAttr('disabled')} + else{$('#forward_destination,#forward_keep').attr('disabled', '')}") }} + {{ macros.form_field(form.forward_keep, + **{("enabled" if user.forward_enabled else "disabled"): ""}) }} {{ macros.form_field(form.forward_destination, **{("enabled" if user.forward_enabled else "disabled"): ""}) }} {{ macros.form_field(form.submit) }} diff --git a/admin/mailu/translations/de/LC_MESSAGES/messages.po b/admin/mailu/translations/de/LC_MESSAGES/messages.po index c969bb38..4488f662 100644 --- a/admin/mailu/translations/de/LC_MESSAGES/messages.po +++ b/admin/mailu/translations/de/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: stefan.auditor@erdfisch.de\n" -"POT-Creation-Date: 2016-11-10 10:52+0100\n" +"POT-Creation-Date: 2017-09-03 15:30+0200\n" "PO-Revision-Date: 2016-11-09 21:43+0100\n" "Last-Translator: Stefan Auditor \n" "Language: de\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" +"Generated-By: Babel 2.5.0\n" #: mailu/admin/forms.py:32 msgid "Invalid email address." @@ -26,12 +26,12 @@ msgstr "Ungültige E-Mail-Adresse." msgid "Confirm" msgstr "Bestätigen" -#: mailu/admin/forms.py:40 mailu/admin/forms.py:54 +#: mailu/admin/forms.py:40 mailu/admin/forms.py:55 msgid "E-mail" msgstr "E-Mail" -#: mailu/admin/forms.py:41 mailu/admin/forms.py:55 mailu/admin/forms.py:72 -#: mailu/admin/forms.py:120 +#: mailu/admin/forms.py:41 mailu/admin/forms.py:56 mailu/admin/forms.py:73 +#: mailu/admin/forms.py:122 msgid "Password" msgstr "Passwort" @@ -53,131 +53,164 @@ msgstr "Maximale Anzahl Benutzer" msgid "Maximum alias count" msgstr "Maximale Anzahl Aliase" -#: mailu/admin/forms.py:49 mailu/admin/forms.py:60 mailu/admin/forms.py:98 +#: mailu/admin/forms.py:49 +msgid "Maximum user quota" +msgstr "" + +#: mailu/admin/forms.py:50 mailu/admin/forms.py:61 mailu/admin/forms.py:100 #: mailu/admin/templates/alias/list.html:22 #: mailu/admin/templates/domain/list.html:22 #: mailu/admin/templates/user/list.html:24 msgid "Comment" msgstr "Kommentar" -#: mailu/admin/forms.py:50 mailu/admin/forms.py:99 +#: mailu/admin/forms.py:51 mailu/admin/forms.py:101 msgid "Create" msgstr "Erstellen" -#: mailu/admin/forms.py:56 +#: mailu/admin/forms.py:57 msgid "Confirm password" msgstr "Passwort bestätigen" -#: mailu/admin/forms.py:57 mailu/admin/templates/user/list.html:23 +#: mailu/admin/forms.py:58 mailu/admin/templates/user/list.html:23 msgid "Quota" msgstr "Quota" -#: mailu/admin/forms.py:58 +#: mailu/admin/forms.py:59 msgid "Allow IMAP access" msgstr "Zugriff via IMAP erlauben" -#: mailu/admin/forms.py:59 +#: mailu/admin/forms.py:60 msgid "Allow POP3 access" msgstr "Zugriff via POP3 erlauben" -#: mailu/admin/forms.py:61 +#: mailu/admin/forms.py:62 msgid "Save" msgstr "Speichern" -#: mailu/admin/forms.py:65 +#: mailu/admin/forms.py:66 msgid "Displayed name" msgstr "Angezeigter Name" -#: mailu/admin/forms.py:66 +#: mailu/admin/forms.py:67 msgid "Enable spam filter" msgstr "Spam-Filter aktivieren" -#: mailu/admin/forms.py:67 +#: mailu/admin/forms.py:68 msgid "Spam filter threshold" msgstr "Spam-Filter Schwellenwert" -#: mailu/admin/forms.py:68 +#: mailu/admin/forms.py:69 msgid "Save settings" msgstr "Einstellungen speichern" -#: mailu/admin/forms.py:73 +#: mailu/admin/forms.py:74 msgid "Password check" msgstr "Passwort prüfen" -#: mailu/admin/forms.py:74 mailu/admin/templates/sidebar.html:13 +#: mailu/admin/forms.py:75 mailu/admin/templates/sidebar.html:13 msgid "Update password" msgstr "Passwort aktualisieren" -#: mailu/admin/forms.py:78 +#: mailu/admin/forms.py:79 msgid "Enable forwarding" msgstr "Weiterleitung aktivieren" -#: mailu/admin/forms.py:80 mailu/admin/forms.py:97 +#: mailu/admin/forms.py:80 +msgid "Keep a copy of the emails" +msgstr "" + +#: mailu/admin/forms.py:82 mailu/admin/forms.py:99 #: mailu/admin/templates/alias/list.html:21 msgid "Destination" msgstr "Ziel" -#: mailu/admin/forms.py:82 mailu/admin/forms.py:90 +#: mailu/admin/forms.py:84 mailu/admin/forms.py:92 msgid "Update" msgstr "Aktualisieren" -#: mailu/admin/forms.py:86 +#: mailu/admin/forms.py:88 msgid "Enable automatic reply" msgstr "Automatische Antwort aktivieren" -#: mailu/admin/forms.py:87 +#: mailu/admin/forms.py:89 msgid "Reply subject" msgstr "Antwort Betreff" -#: mailu/admin/forms.py:88 +#: mailu/admin/forms.py:90 msgid "Reply body" msgstr "Antwort Text" -#: mailu/admin/forms.py:94 +#: mailu/admin/forms.py:96 msgid "Alias" msgstr "Alias" -#: mailu/admin/forms.py:96 +#: mailu/admin/forms.py:98 msgid "Use SQL LIKE Syntax (e.g. for catch-all aliases)" msgstr "SQL LIKE Syntax nutzen (z.B. für Catch-All Aliase)" -#: mailu/admin/forms.py:103 +#: mailu/admin/forms.py:105 msgid "Admin email" msgstr "Administrator E-Mail" -#: mailu/admin/forms.py:104 mailu/admin/forms.py:109 mailu/admin/forms.py:121 +#: mailu/admin/forms.py:106 mailu/admin/forms.py:111 mailu/admin/forms.py:124 msgid "Submit" msgstr "Absenden" -#: mailu/admin/forms.py:108 +#: mailu/admin/forms.py:110 msgid "Manager email" msgstr "Manager E-Mail" -#: mailu/admin/forms.py:113 +#: mailu/admin/forms.py:115 msgid "Protocol" msgstr "Protokoll" -#: mailu/admin/forms.py:116 +#: mailu/admin/forms.py:118 msgid "Hostname or IP" msgstr "Hostname oder IP" -#: mailu/admin/forms.py:117 +#: mailu/admin/forms.py:119 msgid "TCP port" msgstr "Port" -#: mailu/admin/forms.py:118 +#: mailu/admin/forms.py:120 msgid "Enable TLS" msgstr "Verschlüsselung aktivieren" -#: mailu/admin/forms.py:119 mailu/admin/templates/fetch/list.html:21 +#: mailu/admin/forms.py:121 mailu/admin/templates/fetch/list.html:21 msgid "Username" msgstr "Benutzername" +#: mailu/admin/forms.py:123 +msgid "Keep emails on the server" +msgstr "" + +#: mailu/admin/forms.py:128 +msgid "Announcement subject" +msgstr "Bekanntmachung Betreff" + +#: mailu/admin/forms.py:130 +msgid "Announcement body" +msgstr "Bekanntmachung Text" + +#: mailu/admin/forms.py:132 +msgid "Send" +msgstr "Absenden" + +#: mailu/admin/templates/announcement.html:4 +msgid "Public announcement" +msgstr "Öffentliche Bekanntmachung" + +#: mailu/admin/templates/announcement.html:8 +msgid "from" +msgstr "von" + #: mailu/admin/templates/confirm.html:4 msgid "Confirm action" msgstr "Aktion bestätigen" #: mailu/admin/templates/confirm.html:12 +#, python-format msgid "You are about to %(action)s. Please confirm your action." msgstr "Bitte bestätigen: %(action)s." @@ -187,7 +220,9 @@ msgstr "Docker Fehler" #: mailu/admin/templates/docker-error.html:12 msgid "An error occurred while talking to the Docker server." -msgstr "Während der Kommunikation mit dem Docker Server ist ein Fehler aufgetreten." +msgstr "" +"Während der Kommunikation mit dem Docker Server ist ein Fehler " +"aufgetreten." #: mailu/admin/templates/login.html:6 msgid "Your account" @@ -205,7 +240,7 @@ msgstr "Dienst-Status" msgid "Service" msgstr "Dienst" -#: mailu/admin/templates/fetch/list.html:23 +#: mailu/admin/templates/fetch/list.html:24 #: mailu/admin/templates/services.html:12 msgid "Status" msgstr "Status" @@ -258,6 +293,10 @@ msgstr "Abmelden" msgid "Administration" msgstr "Administration" +#: mailu/admin/templates/sidebar.html:45 +msgid "Announcement" +msgstr "Bekanntmachung" + #: mailu/admin/templates/sidebar.html:50 msgid "Administrators" msgstr "Administratoren" @@ -305,7 +344,7 @@ msgstr "E-Mail" #: mailu/admin/templates/admin/list.html:23 #: mailu/admin/templates/alias/list.html:30 #: mailu/admin/templates/domain/list.html:32 -#: mailu/admin/templates/fetch/list.html:31 +#: mailu/admin/templates/fetch/list.html:32 #: mailu/admin/templates/manager/list.html:25 #: mailu/admin/templates/user/list.html:32 msgid "Delete" @@ -329,21 +368,21 @@ msgstr "Alias hinzufügen" #: mailu/admin/templates/alias/list.html:23 #: mailu/admin/templates/domain/list.html:23 -#: mailu/admin/templates/fetch/list.html:24 +#: mailu/admin/templates/fetch/list.html:25 #: mailu/admin/templates/user/list.html:25 msgid "Created" msgstr "Erstellt" #: mailu/admin/templates/alias/list.html:24 #: mailu/admin/templates/domain/list.html:24 -#: mailu/admin/templates/fetch/list.html:25 +#: mailu/admin/templates/fetch/list.html:26 #: mailu/admin/templates/user/list.html:26 msgid "Last edit" msgstr "Zuletzt bearbeitet" #: mailu/admin/templates/alias/list.html:29 #: mailu/admin/templates/domain/list.html:31 -#: mailu/admin/templates/fetch/list.html:30 +#: mailu/admin/templates/fetch/list.html:31 #: mailu/admin/templates/user/list.html:31 msgid "Edit" msgstr "Bearbeiten" @@ -434,9 +473,21 @@ msgid "Endpoint" msgstr "Endpunkt" #: mailu/admin/templates/fetch/list.html:22 +msgid "Keep emails" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:23 msgid "Last check" msgstr "Letzte Prüfung" +#: mailu/admin/templates/fetch/list.html:36 +msgid "yes" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:36 +msgid "no" +msgstr "" + #: mailu/admin/templates/manager/create.html:4 msgid "Add a manager" msgstr "Einen Manager hinzufügen" @@ -449,30 +500,6 @@ msgstr "Manager Liste" msgid "Add manager" msgstr "Manager hinzufügen" -#: mailu/admin/forms.py:125 -msgid "Announcement subject" -msgstr "Bekanntmachung Betreff" - -#: mailu/admin/forms.py:127 -msgid "Announcement body" -msgstr "Bekanntmachung Text" - -#: mailu/admin/forms.py:129 -msgid "Send" -msgstr "Absenden" - -#: mailu/admin/templates/announcement.html:4 -msgid "Public announcement" -msgstr "Öffentliche Bekanntmachung" - -#: mailu/admin/templates/announcement.html:8 -msgid "from" -msgstr "von" - -#: mailu/admin/templates/sidebar.html:45 -msgid "Announcement" -msgstr "Bekanntmachung" - #: mailu/admin/templates/user/create.html:4 msgid "New user" msgstr "Neuer Benutzer" diff --git a/admin/mailu/translations/en/LC_MESSAGES/messages.po b/admin/mailu/translations/en/LC_MESSAGES/messages.po index d96ef9b0..88604cbc 100644 --- a/admin/mailu/translations/en/LC_MESSAGES/messages.po +++ b/admin/mailu/translations/en/LC_MESSAGES/messages.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-11-10 10:52+0100\n" +"POT-Creation-Date: 2017-09-03 15:30+0200\n" "PO-Revision-Date: 2016-10-02 15:02+0200\n" "Last-Translator: FULL NAME \n" "Language: en\n" @@ -16,7 +16,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" +"Generated-By: Babel 2.5.0\n" #: mailu/admin/forms.py:32 msgid "Invalid email address." @@ -26,12 +26,12 @@ msgstr "" msgid "Confirm" msgstr "" -#: mailu/admin/forms.py:40 mailu/admin/forms.py:54 +#: mailu/admin/forms.py:40 mailu/admin/forms.py:55 msgid "E-mail" msgstr "" -#: mailu/admin/forms.py:41 mailu/admin/forms.py:55 mailu/admin/forms.py:72 -#: mailu/admin/forms.py:120 +#: mailu/admin/forms.py:41 mailu/admin/forms.py:56 mailu/admin/forms.py:73 +#: mailu/admin/forms.py:122 msgid "Password" msgstr "" @@ -53,135 +53,147 @@ msgstr "" msgid "Maximum alias count" msgstr "" -#: mailu/admin/forms.py:49 mailu/admin/forms.py:60 mailu/admin/forms.py:98 +#: mailu/admin/forms.py:49 +msgid "Maximum user quota" +msgstr "" + +#: mailu/admin/forms.py:50 mailu/admin/forms.py:61 mailu/admin/forms.py:100 #: mailu/admin/templates/alias/list.html:22 #: mailu/admin/templates/domain/list.html:22 #: mailu/admin/templates/user/list.html:24 msgid "Comment" msgstr "" -#: mailu/admin/forms.py:50 mailu/admin/forms.py:99 +#: mailu/admin/forms.py:51 mailu/admin/forms.py:101 msgid "Create" msgstr "" -#: mailu/admin/forms.py:56 +#: mailu/admin/forms.py:57 msgid "Confirm password" msgstr "" -#: mailu/admin/forms.py:57 mailu/admin/templates/user/list.html:23 +#: mailu/admin/forms.py:58 mailu/admin/templates/user/list.html:23 msgid "Quota" msgstr "" -#: mailu/admin/forms.py:58 +#: mailu/admin/forms.py:59 msgid "Allow IMAP access" msgstr "" -#: mailu/admin/forms.py:59 +#: mailu/admin/forms.py:60 msgid "Allow POP3 access" msgstr "" -#: mailu/admin/forms.py:61 +#: mailu/admin/forms.py:62 msgid "Save" msgstr "" -#: mailu/admin/forms.py:65 +#: mailu/admin/forms.py:66 msgid "Displayed name" msgstr "" -#: mailu/admin/forms.py:66 +#: mailu/admin/forms.py:67 msgid "Enable spam filter" msgstr "" -#: mailu/admin/forms.py:67 +#: mailu/admin/forms.py:68 msgid "Spam filter threshold" msgstr "" -#: mailu/admin/forms.py:68 +#: mailu/admin/forms.py:69 msgid "Save settings" msgstr "" -#: mailu/admin/forms.py:73 +#: mailu/admin/forms.py:74 msgid "Password check" msgstr "" -#: mailu/admin/forms.py:74 mailu/admin/templates/sidebar.html:13 +#: mailu/admin/forms.py:75 mailu/admin/templates/sidebar.html:13 msgid "Update password" msgstr "" -#: mailu/admin/forms.py:78 +#: mailu/admin/forms.py:79 msgid "Enable forwarding" msgstr "" -#: mailu/admin/forms.py:80 mailu/admin/forms.py:97 +#: mailu/admin/forms.py:80 +msgid "Keep a copy of the emails" +msgstr "" + +#: mailu/admin/forms.py:82 mailu/admin/forms.py:99 #: mailu/admin/templates/alias/list.html:21 msgid "Destination" msgstr "" -#: mailu/admin/forms.py:82 mailu/admin/forms.py:90 +#: mailu/admin/forms.py:84 mailu/admin/forms.py:92 msgid "Update" msgstr "" -#: mailu/admin/forms.py:86 +#: mailu/admin/forms.py:88 msgid "Enable automatic reply" msgstr "" -#: mailu/admin/forms.py:87 +#: mailu/admin/forms.py:89 msgid "Reply subject" msgstr "" -#: mailu/admin/forms.py:88 +#: mailu/admin/forms.py:90 msgid "Reply body" msgstr "" -#: mailu/admin/forms.py:94 +#: mailu/admin/forms.py:96 msgid "Alias" msgstr "" -#: mailu/admin/forms.py:96 +#: mailu/admin/forms.py:98 msgid "Use SQL LIKE Syntax (e.g. for catch-all aliases)" msgstr "" -#: mailu/admin/forms.py:103 +#: mailu/admin/forms.py:105 msgid "Admin email" msgstr "" -#: mailu/admin/forms.py:104 mailu/admin/forms.py:109 mailu/admin/forms.py:121 +#: mailu/admin/forms.py:106 mailu/admin/forms.py:111 mailu/admin/forms.py:124 msgid "Submit" msgstr "" -#: mailu/admin/forms.py:108 +#: mailu/admin/forms.py:110 msgid "Manager email" msgstr "" -#: mailu/admin/forms.py:113 +#: mailu/admin/forms.py:115 msgid "Protocol" msgstr "" -#: mailu/admin/forms.py:116 +#: mailu/admin/forms.py:118 msgid "Hostname or IP" msgstr "" -#: mailu/admin/forms.py:117 +#: mailu/admin/forms.py:119 msgid "TCP port" msgstr "" -#: mailu/admin/forms.py:118 +#: mailu/admin/forms.py:120 msgid "Enable TLS" msgstr "" -#: mailu/admin/forms.py:119 mailu/admin/templates/fetch/list.html:21 +#: mailu/admin/forms.py:121 mailu/admin/templates/fetch/list.html:21 msgid "Username" msgstr "" -#: mailu/admin/forms.py:125 +#: mailu/admin/forms.py:123 +msgid "Keep emails on the server" +msgstr "" + +#: mailu/admin/forms.py:128 msgid "Announcement subject" msgstr "" -#: mailu/admin/forms.py:127 +#: mailu/admin/forms.py:130 msgid "Announcement body" msgstr "" -#: mailu/admin/forms.py:129 +#: mailu/admin/forms.py:132 msgid "Send" msgstr "" @@ -226,7 +238,7 @@ msgstr "" msgid "Service" msgstr "" -#: mailu/admin/templates/fetch/list.html:23 +#: mailu/admin/templates/fetch/list.html:24 #: mailu/admin/templates/services.html:12 msgid "Status" msgstr "" @@ -330,7 +342,7 @@ msgstr "" #: mailu/admin/templates/admin/list.html:23 #: mailu/admin/templates/alias/list.html:30 #: mailu/admin/templates/domain/list.html:32 -#: mailu/admin/templates/fetch/list.html:31 +#: mailu/admin/templates/fetch/list.html:32 #: mailu/admin/templates/manager/list.html:25 #: mailu/admin/templates/user/list.html:32 msgid "Delete" @@ -354,21 +366,21 @@ msgstr "" #: mailu/admin/templates/alias/list.html:23 #: mailu/admin/templates/domain/list.html:23 -#: mailu/admin/templates/fetch/list.html:24 +#: mailu/admin/templates/fetch/list.html:25 #: mailu/admin/templates/user/list.html:25 msgid "Created" msgstr "" #: mailu/admin/templates/alias/list.html:24 #: mailu/admin/templates/domain/list.html:24 -#: mailu/admin/templates/fetch/list.html:25 +#: mailu/admin/templates/fetch/list.html:26 #: mailu/admin/templates/user/list.html:26 msgid "Last edit" msgstr "" #: mailu/admin/templates/alias/list.html:29 #: mailu/admin/templates/domain/list.html:31 -#: mailu/admin/templates/fetch/list.html:30 +#: mailu/admin/templates/fetch/list.html:31 #: mailu/admin/templates/user/list.html:31 msgid "Edit" msgstr "" @@ -459,9 +471,21 @@ msgid "Endpoint" msgstr "" #: mailu/admin/templates/fetch/list.html:22 +msgid "Keep emails" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:23 msgid "Last check" msgstr "" +#: mailu/admin/templates/fetch/list.html:36 +msgid "yes" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:36 +msgid "no" +msgstr "" + #: mailu/admin/templates/manager/create.html:4 msgid "Add a manager" msgstr "" diff --git a/admin/mailu/translations/fr/LC_MESSAGES/messages.po b/admin/mailu/translations/fr/LC_MESSAGES/messages.po index b4cb16be..97d394ca 100644 --- a/admin/mailu/translations/fr/LC_MESSAGES/messages.po +++ b/admin/mailu/translations/fr/LC_MESSAGES/messages.po @@ -1,11 +1,18 @@ + msgid "" msgstr "" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: POEditor.com\n" -"Project-Id-Version: Mailu\n" +"Project-Id-Version: Mailu\n" +"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" +"POT-Creation-Date: 2017-09-03 15:30+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" "Language: fr\n" +"Language-Team: fr \n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Generated-By: Babel 2.5.0\n" #: mailu/admin/forms.py:32 msgid "Invalid email address." @@ -15,12 +22,12 @@ msgstr "Adresse e-mail invalide" msgid "Confirm" msgstr "Confirmer" -#: mailu/admin/forms.py:40 mailu/admin/forms.py:54 +#: mailu/admin/forms.py:40 mailu/admin/forms.py:55 msgid "E-mail" msgstr "E-mail" -#: mailu/admin/forms.py:41 mailu/admin/forms.py:55 mailu/admin/forms.py:72 -#: mailu/admin/forms.py:120 +#: mailu/admin/forms.py:41 mailu/admin/forms.py:56 mailu/admin/forms.py:73 +#: mailu/admin/forms.py:122 msgid "Password" msgstr "Mot de passe" @@ -42,131 +49,164 @@ msgstr "Nombre maximum d'utilisateurs" msgid "Maximum alias count" msgstr "Nombre maximum d'alias" -#: mailu/admin/forms.py:49 mailu/admin/forms.py:60 mailu/admin/forms.py:98 +#: mailu/admin/forms.py:49 +msgid "Maximum user quota" +msgstr "" + +#: mailu/admin/forms.py:50 mailu/admin/forms.py:61 mailu/admin/forms.py:100 #: mailu/admin/templates/alias/list.html:22 #: mailu/admin/templates/domain/list.html:22 #: mailu/admin/templates/user/list.html:24 msgid "Comment" msgstr "Commentaire" -#: mailu/admin/forms.py:50 mailu/admin/forms.py:99 +#: mailu/admin/forms.py:51 mailu/admin/forms.py:101 msgid "Create" msgstr "Créer" -#: mailu/admin/forms.py:56 +#: mailu/admin/forms.py:57 msgid "Confirm password" msgstr "Confirmer le mot de passe" -#: mailu/admin/forms.py:57 mailu/admin/templates/user/list.html:23 +#: mailu/admin/forms.py:58 mailu/admin/templates/user/list.html:23 msgid "Quota" msgstr "Quota" -#: mailu/admin/forms.py:58 +#: mailu/admin/forms.py:59 msgid "Allow IMAP access" msgstr "Autoriser l'accès IMAP" -#: mailu/admin/forms.py:59 +#: mailu/admin/forms.py:60 msgid "Allow POP3 access" msgstr "Autoriser l'accès POP3" -#: mailu/admin/forms.py:61 +#: mailu/admin/forms.py:62 msgid "Save" msgstr "Enregistrer" -#: mailu/admin/forms.py:65 +#: mailu/admin/forms.py:66 msgid "Displayed name" msgstr "Nom affiché" -#: mailu/admin/forms.py:66 +#: mailu/admin/forms.py:67 msgid "Enable spam filter" msgstr "Activer le filtre anti-spam" -#: mailu/admin/forms.py:67 +#: mailu/admin/forms.py:68 msgid "Spam filter threshold" msgstr "Seuil du filtre anti-spam" -#: mailu/admin/forms.py:68 +#: mailu/admin/forms.py:69 msgid "Save settings" msgstr "Enregistrer les préférences" -#: mailu/admin/forms.py:73 +#: mailu/admin/forms.py:74 msgid "Password check" msgstr "Vérifier le mot de passe" -#: mailu/admin/forms.py:74 mailu/admin/templates/sidebar.html:13 +#: mailu/admin/forms.py:75 mailu/admin/templates/sidebar.html:13 msgid "Update password" msgstr "Changer de mot de passe" -#: mailu/admin/forms.py:78 +#: mailu/admin/forms.py:79 msgid "Enable forwarding" msgstr "Activer la redirection" -#: mailu/admin/forms.py:80 mailu/admin/forms.py:97 +#: mailu/admin/forms.py:80 +msgid "Keep a copy of the emails" +msgstr "" + +#: mailu/admin/forms.py:82 mailu/admin/forms.py:99 #: mailu/admin/templates/alias/list.html:21 msgid "Destination" msgstr "Destination" -#: mailu/admin/forms.py:82 mailu/admin/forms.py:90 +#: mailu/admin/forms.py:84 mailu/admin/forms.py:92 msgid "Update" msgstr "Mettre à jour" -#: mailu/admin/forms.py:86 +#: mailu/admin/forms.py:88 msgid "Enable automatic reply" msgstr "Activer les réponses automatique" -#: mailu/admin/forms.py:87 +#: mailu/admin/forms.py:89 msgid "Reply subject" msgstr "Sujet du message" -#: mailu/admin/forms.py:88 +#: mailu/admin/forms.py:90 msgid "Reply body" msgstr "Corps de la réponse" -#: mailu/admin/forms.py:94 +#: mailu/admin/forms.py:96 msgid "Alias" msgstr "Alias" -#: mailu/admin/forms.py:96 +#: mailu/admin/forms.py:98 msgid "Use SQL LIKE Syntax (e.g. for catch-all aliases)" msgstr "Utiliser la syntaxe SQL LIKE (par exemple pour les alias catch-all)" -#: mailu/admin/forms.py:103 +#: mailu/admin/forms.py:105 msgid "Admin email" msgstr "Email de l'administrateur" -#: mailu/admin/forms.py:104 mailu/admin/forms.py:109 mailu/admin/forms.py:121 +#: mailu/admin/forms.py:106 mailu/admin/forms.py:111 mailu/admin/forms.py:124 msgid "Submit" msgstr "Valider" -#: mailu/admin/forms.py:108 +#: mailu/admin/forms.py:110 msgid "Manager email" msgstr "E-mail du gérant" -#: mailu/admin/forms.py:113 +#: mailu/admin/forms.py:115 msgid "Protocol" msgstr "Protocole" -#: mailu/admin/forms.py:116 +#: mailu/admin/forms.py:118 msgid "Hostname or IP" msgstr "Nom d'hôte ou adresse IP" -#: mailu/admin/forms.py:117 +#: mailu/admin/forms.py:119 msgid "TCP port" msgstr "Port TCP" -#: mailu/admin/forms.py:118 +#: mailu/admin/forms.py:120 msgid "Enable TLS" msgstr "Activer TLS" -#: mailu/admin/forms.py:119 mailu/admin/templates/fetch/list.html:21 +#: mailu/admin/forms.py:121 mailu/admin/templates/fetch/list.html:21 msgid "Username" msgstr "Nom d'utilisateur" +#: mailu/admin/forms.py:123 +msgid "Keep emails on the server" +msgstr "" + +#: mailu/admin/forms.py:128 +msgid "Announcement subject" +msgstr "Sujet de l'annonce" + +#: mailu/admin/forms.py:130 +msgid "Announcement body" +msgstr "Corps de l'annonce" + +#: mailu/admin/forms.py:132 +msgid "Send" +msgstr "Envoyer" + +#: mailu/admin/templates/announcement.html:4 +msgid "Public announcement" +msgstr "Annonce globale" + +#: mailu/admin/templates/announcement.html:8 +msgid "from" +msgstr "de" + #: mailu/admin/templates/confirm.html:4 msgid "Confirm action" msgstr "Confirmer" #: mailu/admin/templates/confirm.html:12 +#, python-format msgid "You are about to %(action)s. Please confirm your action." msgstr "Vous allez %(action)s. Merci de confirmer votre action." @@ -194,7 +234,7 @@ msgstr "Etat des services" msgid "Service" msgstr "Service" -#: mailu/admin/templates/fetch/list.html:23 +#: mailu/admin/templates/fetch/list.html:24 #: mailu/admin/templates/services.html:12 msgid "Status" msgstr "Etat" @@ -247,6 +287,10 @@ msgstr "Déconnexion" msgid "Administration" msgstr "Administration" +#: mailu/admin/templates/sidebar.html:45 +msgid "Announcement" +msgstr "Annonce" + #: mailu/admin/templates/sidebar.html:50 msgid "Administrators" msgstr "Administrateurs" @@ -294,7 +338,7 @@ msgstr "E-mail" #: mailu/admin/templates/admin/list.html:23 #: mailu/admin/templates/alias/list.html:30 #: mailu/admin/templates/domain/list.html:32 -#: mailu/admin/templates/fetch/list.html:31 +#: mailu/admin/templates/fetch/list.html:32 #: mailu/admin/templates/manager/list.html:25 #: mailu/admin/templates/user/list.html:32 msgid "Delete" @@ -318,21 +362,21 @@ msgstr "Ajouter un alias" #: mailu/admin/templates/alias/list.html:23 #: mailu/admin/templates/domain/list.html:23 -#: mailu/admin/templates/fetch/list.html:24 +#: mailu/admin/templates/fetch/list.html:25 #: mailu/admin/templates/user/list.html:25 msgid "Created" msgstr "Création" #: mailu/admin/templates/alias/list.html:24 #: mailu/admin/templates/domain/list.html:24 -#: mailu/admin/templates/fetch/list.html:25 +#: mailu/admin/templates/fetch/list.html:26 #: mailu/admin/templates/user/list.html:26 msgid "Last edit" msgstr "Dernière modification" #: mailu/admin/templates/alias/list.html:29 #: mailu/admin/templates/domain/list.html:31 -#: mailu/admin/templates/fetch/list.html:30 +#: mailu/admin/templates/fetch/list.html:31 #: mailu/admin/templates/user/list.html:31 msgid "Edit" msgstr "Modifier" @@ -423,9 +467,21 @@ msgid "Endpoint" msgstr "Source" #: mailu/admin/templates/fetch/list.html:22 +msgid "Keep emails" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:23 msgid "Last check" msgstr "Dernier relevé" +#: mailu/admin/templates/fetch/list.html:36 +msgid "yes" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:36 +msgid "no" +msgstr "" + #: mailu/admin/templates/manager/create.html:4 msgid "Add a manager" msgstr "Ajouter un gérant" @@ -438,30 +494,6 @@ msgstr "Liste des gérants" msgid "Add manager" msgstr "Ajouter le gérant" -#: mailu/admin/forms.py:125 -msgid "Announcement subject" -msgstr "Sujet de l'annonce" - -#: mailu/admin/forms.py:127 -msgid "Announcement body" -msgstr "Corps de l'annonce" - -#: mailu/admin/forms.py:129 -msgid "Send" -msgstr "Envoyer" - -#: mailu/admin/templates/announcement.html:4 -msgid "Public announcement" -msgstr "Annonce globale" - -#: mailu/admin/templates/announcement.html:8 -msgid "from" -msgstr "de" - -#: mailu/admin/templates/sidebar.html:45 -msgid "Announcement" -msgstr "Annonce" - #: mailu/admin/templates/user/create.html:4 msgid "New user" msgstr "Nouvel utilisateur" diff --git a/admin/mailu/translations/pt/LC_MESSAGES/messages.po b/admin/mailu/translations/pt/LC_MESSAGES/messages.po index 1a1e97a1..8ab3cb7c 100644 --- a/admin/mailu/translations/pt/LC_MESSAGES/messages.po +++ b/admin/mailu/translations/pt/LC_MESSAGES/messages.po @@ -1,4 +1,4 @@ -# Translations template for PROJECT. +# Portuguese (Brazil) translations for PROJECT. # Copyright (C) 2016 ORGANIZATION # This file is distributed under the same license as the PROJECT project. # FIRST AUTHOR , 2016. @@ -7,18 +7,16 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2017-03-27 11:37-0300\n" +"POT-Creation-Date: 2017-09-03 15:30+0200\n" "PO-Revision-Date: 2017-03-27 11:43-0300\n" "Last-Translator: \n" -"Language-Team: \n" "Language: pt_BR\n" +"Language-Team: \n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" +"Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" -"X-Generator: Poedit 1.8.9\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Poedit-Basepath: .\n" +"Generated-By: Babel 2.5.0\n" #: mailu/admin/forms.py:32 msgid "Invalid email address." @@ -28,12 +26,12 @@ msgstr "Endereço de e-mail inválido" msgid "Confirm" msgstr "Confirmar" -#: mailu/admin/forms.py:40 mailu/admin/forms.py:54 +#: mailu/admin/forms.py:40 mailu/admin/forms.py:55 msgid "E-mail" msgstr "E-mail" -#: mailu/admin/forms.py:41 mailu/admin/forms.py:55 mailu/admin/forms.py:72 -#: mailu/admin/forms.py:120 +#: mailu/admin/forms.py:41 mailu/admin/forms.py:56 mailu/admin/forms.py:73 +#: mailu/admin/forms.py:122 msgid "Password" msgstr "Senha" @@ -55,139 +53,147 @@ msgstr "Quantidade máxima de usuários" msgid "Maximum alias count" msgstr "Quantidade máxima de alias" -#: mailu/admin/forms.py:49 mailu/admin/forms.py:60 mailu/admin/forms.py:98 +#: mailu/admin/forms.py:49 +msgid "Maximum user quota" +msgstr "" + +#: mailu/admin/forms.py:50 mailu/admin/forms.py:61 mailu/admin/forms.py:100 #: mailu/admin/templates/alias/list.html:22 #: mailu/admin/templates/domain/list.html:22 #: mailu/admin/templates/user/list.html:24 msgid "Comment" msgstr "Comentário" -#: mailu/admin/forms.py:50 mailu/admin/forms.py:99 +#: mailu/admin/forms.py:51 mailu/admin/forms.py:101 msgid "Create" msgstr "Criar" -#: mailu/admin/forms.py:56 +#: mailu/admin/forms.py:57 msgid "Confirm password" msgstr "Confirmar senha" -#: mailu/admin/forms.py:57 mailu/admin/templates/user/list.html:23 +#: mailu/admin/forms.py:58 mailu/admin/templates/user/list.html:23 msgid "Quota" msgstr "Quota" -#: mailu/admin/forms.py:58 +#: mailu/admin/forms.py:59 msgid "Allow IMAP access" msgstr "Permitir acesso IMAP" -#: mailu/admin/forms.py:59 +#: mailu/admin/forms.py:60 msgid "Allow POP3 access" msgstr "Permitir acesso POP3" -#: mailu/admin/forms.py:61 +#: mailu/admin/forms.py:62 msgid "Save" msgstr "Salvar" -#: mailu/admin/forms.py:65 +#: mailu/admin/forms.py:66 msgid "Displayed name" msgstr "Nome de exibição" -#: mailu/admin/forms.py:66 +#: mailu/admin/forms.py:67 msgid "Enable spam filter" msgstr "Habilitar filtro de spam" -#: mailu/admin/forms.py:67 +#: mailu/admin/forms.py:68 msgid "Spam filter threshold" msgstr "Limite de filtro de spam" -#: mailu/admin/forms.py:68 +#: mailu/admin/forms.py:69 msgid "Save settings" msgstr "Salvar configurações" -#: mailu/admin/forms.py:73 +#: mailu/admin/forms.py:74 msgid "Password check" msgstr "Confirmação de senha" -#: mailu/admin/forms.py:74 mailu/admin/templates/sidebar.html:13 +#: mailu/admin/forms.py:75 mailu/admin/templates/sidebar.html:13 msgid "Update password" msgstr "Alterar senha" -#: mailu/admin/forms.py:78 +#: mailu/admin/forms.py:79 msgid "Enable forwarding" msgstr "Habilitar encaminhamento" -#: mailu/admin/forms.py:80 mailu/admin/forms.py:97 +#: mailu/admin/forms.py:80 +msgid "Keep a copy of the emails" +msgstr "" + +#: mailu/admin/forms.py:82 mailu/admin/forms.py:99 #: mailu/admin/templates/alias/list.html:21 msgid "Destination" msgstr "Destinatário" -#: mailu/admin/forms.py:82 mailu/admin/forms.py:90 +#: mailu/admin/forms.py:84 mailu/admin/forms.py:92 msgid "Update" msgstr "Atualizar" -#: mailu/admin/forms.py:86 +#: mailu/admin/forms.py:88 msgid "Enable automatic reply" msgstr "Habilitar resposta automática" -#: mailu/admin/forms.py:87 +#: mailu/admin/forms.py:89 msgid "Reply subject" msgstr "Assunto da resposta" -#: mailu/admin/forms.py:88 +#: mailu/admin/forms.py:90 msgid "Reply body" msgstr "Corpo da resposta" -#: mailu/admin/forms.py:94 +#: mailu/admin/forms.py:96 msgid "Alias" msgstr "Alias" -#: mailu/admin/forms.py:96 +#: mailu/admin/forms.py:98 msgid "Use SQL LIKE Syntax (e.g. for catch-all aliases)" msgstr "Usar sintaxe estilo SQL(ex: for catch-all aliases)" -#: mailu/admin/forms.py:103 +#: mailu/admin/forms.py:105 msgid "Admin email" msgstr "E-mail do administrador" -#: mailu/admin/forms.py:104 mailu/admin/forms.py:109 mailu/admin/forms.py:121 +#: mailu/admin/forms.py:106 mailu/admin/forms.py:111 mailu/admin/forms.py:124 msgid "Submit" msgstr "Enviar" -#: mailu/admin/forms.py:108 +#: mailu/admin/forms.py:110 msgid "Manager email" msgstr "E-mail do gerente" -#: mailu/admin/forms.py:113 +#: mailu/admin/forms.py:115 msgid "Protocol" msgstr "Protocolo" -#: mailu/admin/forms.py:116 +#: mailu/admin/forms.py:118 msgid "Hostname or IP" msgstr "Hostname ou IP" -#: mailu/admin/forms.py:117 +#: mailu/admin/forms.py:119 msgid "TCP port" msgstr "Porta TCP" -#: mailu/admin/forms.py:118 +#: mailu/admin/forms.py:120 msgid "Enable TLS" msgstr "Habilitar TLS" -#: mailu/admin/forms.py:119 mailu/admin/templates/fetch/list.html:21 +#: mailu/admin/forms.py:121 mailu/admin/templates/fetch/list.html:21 msgid "Username" msgstr "Usuário" -#: mailu/admin/forms.py:121 +#: mailu/admin/forms.py:123 msgid "Keep emails on the server" msgstr "Manter os e-mails no servidor" -#: mailu/admin/forms.py:125 +#: mailu/admin/forms.py:128 msgid "Announcement subject" msgstr "Título do comunicado" -#: mailu/admin/forms.py:127 +#: mailu/admin/forms.py:130 msgid "Announcement body" msgstr "Corpo do comunicado" -#: mailu/admin/forms.py:129 +#: mailu/admin/forms.py:132 msgid "Send" msgstr "Enviar" @@ -232,7 +238,7 @@ msgstr "Status do serviço" msgid "Service" msgstr "Serviço" -#: mailu/admin/templates/fetch/list.html:23 +#: mailu/admin/templates/fetch/list.html:24 #: mailu/admin/templates/services.html:12 msgid "Status" msgstr "Status" @@ -336,7 +342,7 @@ msgstr "Email" #: mailu/admin/templates/admin/list.html:23 #: mailu/admin/templates/alias/list.html:30 #: mailu/admin/templates/domain/list.html:32 -#: mailu/admin/templates/fetch/list.html:31 +#: mailu/admin/templates/fetch/list.html:32 #: mailu/admin/templates/manager/list.html:25 #: mailu/admin/templates/user/list.html:32 msgid "Delete" @@ -360,21 +366,21 @@ msgstr "Adicionar alias" #: mailu/admin/templates/alias/list.html:23 #: mailu/admin/templates/domain/list.html:23 -#: mailu/admin/templates/fetch/list.html:24 +#: mailu/admin/templates/fetch/list.html:25 #: mailu/admin/templates/user/list.html:25 msgid "Created" msgstr "Criado" #: mailu/admin/templates/alias/list.html:24 #: mailu/admin/templates/domain/list.html:24 -#: mailu/admin/templates/fetch/list.html:25 +#: mailu/admin/templates/fetch/list.html:26 #: mailu/admin/templates/user/list.html:26 msgid "Last edit" msgstr "Última edição" #: mailu/admin/templates/alias/list.html:29 #: mailu/admin/templates/domain/list.html:31 -#: mailu/admin/templates/fetch/list.html:30 +#: mailu/admin/templates/fetch/list.html:31 #: mailu/admin/templates/user/list.html:31 msgid "Edit" msgstr "Editar" @@ -465,9 +471,21 @@ msgid "Endpoint" msgstr "Endpoint" #: mailu/admin/templates/fetch/list.html:22 +msgid "Keep emails" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:23 msgid "Last check" msgstr "Última verificação" +#: mailu/admin/templates/fetch/list.html:36 +msgid "yes" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:36 +msgid "no" +msgstr "" + #: mailu/admin/templates/manager/create.html:4 msgid "Add a manager" msgstr "Adicionar gerente" @@ -516,3 +534,4 @@ msgstr "Atualizar senha" #: mailu/admin/templates/user/reply.html:4 msgid "Automatic reply" msgstr "Resposta automática" + diff --git a/admin/messages.pot b/admin/messages.pot index 83eb1e61..09ef316b 100644 --- a/admin/messages.pot +++ b/admin/messages.pot @@ -1,21 +1,21 @@ # Translations template for PROJECT. -# Copyright (C) 2016 ORGANIZATION +# Copyright (C) 2017 ORGANIZATION # This file is distributed under the same license as the PROJECT project. -# FIRST AUTHOR , 2016. +# FIRST AUTHOR , 2017. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2016-11-10 10:52+0100\n" +"POT-Creation-Date: 2017-09-03 15:30+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"Generated-By: Babel 2.3.4\n" +"Generated-By: Babel 2.5.0\n" #: mailu/admin/forms.py:32 msgid "Invalid email address." @@ -25,12 +25,12 @@ msgstr "" msgid "Confirm" msgstr "" -#: mailu/admin/forms.py:40 mailu/admin/forms.py:54 +#: mailu/admin/forms.py:40 mailu/admin/forms.py:55 msgid "E-mail" msgstr "" -#: mailu/admin/forms.py:41 mailu/admin/forms.py:55 mailu/admin/forms.py:72 -#: mailu/admin/forms.py:120 +#: mailu/admin/forms.py:41 mailu/admin/forms.py:56 mailu/admin/forms.py:73 +#: mailu/admin/forms.py:122 msgid "Password" msgstr "" @@ -52,135 +52,147 @@ msgstr "" msgid "Maximum alias count" msgstr "" -#: mailu/admin/forms.py:49 mailu/admin/forms.py:60 mailu/admin/forms.py:98 +#: mailu/admin/forms.py:49 +msgid "Maximum user quota" +msgstr "" + +#: mailu/admin/forms.py:50 mailu/admin/forms.py:61 mailu/admin/forms.py:100 #: mailu/admin/templates/alias/list.html:22 #: mailu/admin/templates/domain/list.html:22 #: mailu/admin/templates/user/list.html:24 msgid "Comment" msgstr "" -#: mailu/admin/forms.py:50 mailu/admin/forms.py:99 +#: mailu/admin/forms.py:51 mailu/admin/forms.py:101 msgid "Create" msgstr "" -#: mailu/admin/forms.py:56 +#: mailu/admin/forms.py:57 msgid "Confirm password" msgstr "" -#: mailu/admin/forms.py:57 mailu/admin/templates/user/list.html:23 +#: mailu/admin/forms.py:58 mailu/admin/templates/user/list.html:23 msgid "Quota" msgstr "" -#: mailu/admin/forms.py:58 +#: mailu/admin/forms.py:59 msgid "Allow IMAP access" msgstr "" -#: mailu/admin/forms.py:59 +#: mailu/admin/forms.py:60 msgid "Allow POP3 access" msgstr "" -#: mailu/admin/forms.py:61 +#: mailu/admin/forms.py:62 msgid "Save" msgstr "" -#: mailu/admin/forms.py:65 +#: mailu/admin/forms.py:66 msgid "Displayed name" msgstr "" -#: mailu/admin/forms.py:66 +#: mailu/admin/forms.py:67 msgid "Enable spam filter" msgstr "" -#: mailu/admin/forms.py:67 +#: mailu/admin/forms.py:68 msgid "Spam filter threshold" msgstr "" -#: mailu/admin/forms.py:68 +#: mailu/admin/forms.py:69 msgid "Save settings" msgstr "" -#: mailu/admin/forms.py:73 +#: mailu/admin/forms.py:74 msgid "Password check" msgstr "" -#: mailu/admin/forms.py:74 mailu/admin/templates/sidebar.html:13 +#: mailu/admin/forms.py:75 mailu/admin/templates/sidebar.html:13 msgid "Update password" msgstr "" -#: mailu/admin/forms.py:78 +#: mailu/admin/forms.py:79 msgid "Enable forwarding" msgstr "" -#: mailu/admin/forms.py:80 mailu/admin/forms.py:97 +#: mailu/admin/forms.py:80 +msgid "Keep a copy of the emails" +msgstr "" + +#: mailu/admin/forms.py:82 mailu/admin/forms.py:99 #: mailu/admin/templates/alias/list.html:21 msgid "Destination" msgstr "" -#: mailu/admin/forms.py:82 mailu/admin/forms.py:90 +#: mailu/admin/forms.py:84 mailu/admin/forms.py:92 msgid "Update" msgstr "" -#: mailu/admin/forms.py:86 +#: mailu/admin/forms.py:88 msgid "Enable automatic reply" msgstr "" -#: mailu/admin/forms.py:87 +#: mailu/admin/forms.py:89 msgid "Reply subject" msgstr "" -#: mailu/admin/forms.py:88 +#: mailu/admin/forms.py:90 msgid "Reply body" msgstr "" -#: mailu/admin/forms.py:94 +#: mailu/admin/forms.py:96 msgid "Alias" msgstr "" -#: mailu/admin/forms.py:96 +#: mailu/admin/forms.py:98 msgid "Use SQL LIKE Syntax (e.g. for catch-all aliases)" msgstr "" -#: mailu/admin/forms.py:103 +#: mailu/admin/forms.py:105 msgid "Admin email" msgstr "" -#: mailu/admin/forms.py:104 mailu/admin/forms.py:109 mailu/admin/forms.py:121 +#: mailu/admin/forms.py:106 mailu/admin/forms.py:111 mailu/admin/forms.py:124 msgid "Submit" msgstr "" -#: mailu/admin/forms.py:108 +#: mailu/admin/forms.py:110 msgid "Manager email" msgstr "" -#: mailu/admin/forms.py:113 +#: mailu/admin/forms.py:115 msgid "Protocol" msgstr "" -#: mailu/admin/forms.py:116 +#: mailu/admin/forms.py:118 msgid "Hostname or IP" msgstr "" -#: mailu/admin/forms.py:117 +#: mailu/admin/forms.py:119 msgid "TCP port" msgstr "" -#: mailu/admin/forms.py:118 +#: mailu/admin/forms.py:120 msgid "Enable TLS" msgstr "" -#: mailu/admin/forms.py:119 mailu/admin/templates/fetch/list.html:21 +#: mailu/admin/forms.py:121 mailu/admin/templates/fetch/list.html:21 msgid "Username" msgstr "" -#: mailu/admin/forms.py:125 +#: mailu/admin/forms.py:123 +msgid "Keep emails on the server" +msgstr "" + +#: mailu/admin/forms.py:128 msgid "Announcement subject" msgstr "" -#: mailu/admin/forms.py:127 +#: mailu/admin/forms.py:130 msgid "Announcement body" msgstr "" -#: mailu/admin/forms.py:129 +#: mailu/admin/forms.py:132 msgid "Send" msgstr "" @@ -225,7 +237,7 @@ msgstr "" msgid "Service" msgstr "" -#: mailu/admin/templates/fetch/list.html:23 +#: mailu/admin/templates/fetch/list.html:24 #: mailu/admin/templates/services.html:12 msgid "Status" msgstr "" @@ -329,7 +341,7 @@ msgstr "" #: mailu/admin/templates/admin/list.html:23 #: mailu/admin/templates/alias/list.html:30 #: mailu/admin/templates/domain/list.html:32 -#: mailu/admin/templates/fetch/list.html:31 +#: mailu/admin/templates/fetch/list.html:32 #: mailu/admin/templates/manager/list.html:25 #: mailu/admin/templates/user/list.html:32 msgid "Delete" @@ -353,21 +365,21 @@ msgstr "" #: mailu/admin/templates/alias/list.html:23 #: mailu/admin/templates/domain/list.html:23 -#: mailu/admin/templates/fetch/list.html:24 +#: mailu/admin/templates/fetch/list.html:25 #: mailu/admin/templates/user/list.html:25 msgid "Created" msgstr "" #: mailu/admin/templates/alias/list.html:24 #: mailu/admin/templates/domain/list.html:24 -#: mailu/admin/templates/fetch/list.html:25 +#: mailu/admin/templates/fetch/list.html:26 #: mailu/admin/templates/user/list.html:26 msgid "Last edit" msgstr "" #: mailu/admin/templates/alias/list.html:29 #: mailu/admin/templates/domain/list.html:31 -#: mailu/admin/templates/fetch/list.html:30 +#: mailu/admin/templates/fetch/list.html:31 #: mailu/admin/templates/user/list.html:31 msgid "Edit" msgstr "" @@ -458,9 +470,21 @@ msgid "Endpoint" msgstr "" #: mailu/admin/templates/fetch/list.html:22 +msgid "Keep emails" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:23 msgid "Last check" msgstr "" +#: mailu/admin/templates/fetch/list.html:36 +msgid "yes" +msgstr "" + +#: mailu/admin/templates/fetch/list.html:36 +msgid "no" +msgstr "" + #: mailu/admin/templates/manager/create.html:4 msgid "Add a manager" msgstr "" diff --git a/admin/migrations/versions/73e56bad5ec5_.py b/admin/migrations/versions/73e56bad5ec5_.py new file mode 100644 index 00000000..ad7c0c93 --- /dev/null +++ b/admin/migrations/versions/73e56bad5ec5_.py @@ -0,0 +1,24 @@ +""" Add the ability to keep forwarded messages + +Revision ID: 73e56bad5ec5 +Revises: 3f6994568962 +Create Date: 2017-09-03 15:36:07.821002 + +""" + +# revision identifiers, used by Alembic. +revision = '73e56bad5ec5' +down_revision = '3f6994568962' + +from alembic import op +import sqlalchemy as sa + + +def upgrade(): + with op.batch_alter_table('user') as batch: + batch.add_column(sa.Column('forward_keep', sa.Boolean(), nullable=False, server_default=sa.sql.expression.true())) + + +def downgrade(): + with op.batch_alter_table('user') as batch: + batch.drop_column('forward_keep') From c834d34bae477221ef513befa0dac48c610ed943 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 3 Sep 2017 15:46:39 +0200 Subject: [PATCH 06/15] Implement keeping or dropping forwarded messages in postfix --- postfix/conf/sqlite-virtual_alias_maps.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix/conf/sqlite-virtual_alias_maps.cf b/postfix/conf/sqlite-virtual_alias_maps.cf index 0a4896b1..619bc610 100644 --- a/postfix/conf/sqlite-virtual_alias_maps.cf +++ b/postfix/conf/sqlite-virtual_alias_maps.cf @@ -4,7 +4,7 @@ query = FROM (SELECT destination, email, wildcard, localpart FROM alias UNION - SELECT email||(CASE WHEN forward_enabled=1 THEN ','||forward_destination ELSE '' END) AS destination, email, 0 as wildcard, localpart FROM user) + SELECT (CASE WHEN forward_enabled=1 THEN (CASE WHEN forward_keep=1 THEN email||',' ELSE '')||forward_destination ELSE email END) AS destination, email, 0 as wildcard, localpart FROM user) WHERE ( wildcard = 0 From 1fa01745a3bc4ad755bdfa9b31c777aadeb418f1 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 3 Sep 2017 16:08:43 +0200 Subject: [PATCH 07/15] Add the ability to customize the Postfix master configuration --- postfix/start.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/postfix/start.sh b/postfix/start.sh index 57660bee..cee1862f 100755 --- a/postfix/start.sh +++ b/postfix/start.sh @@ -5,7 +5,7 @@ for VARIABLE in `env | cut -f1 -d=`; do sed -i "s={{ $VARIABLE }}=${!VARIABLE}=g" /etc/postfix/*.cf done -# Override Postfix configuration +# Override Postfix main configuration if [ -f /overrides/postfix.cf ]; then while read line; do postconf -e "$line" @@ -15,6 +15,16 @@ else echo "No extra postfix settings loaded because optional '/overrides/postfix.cf' not provided." fi +# Override Postfix master configuration +if [ -f /overrides/master.cf ]; then + while read line; do + postconf -M "$line" + done < /overrides/master.cf + echo "Loaded '/overrides/master.cf'" +else + echo "No extra postfix settings loaded because optional '/overrides/master.cf' not provided." +fi + # Include table-map files if ls -A /overrides/*.map 1> /dev/null 2>&1; then cp /overrides/*.map /etc/postfix/ From bffc51401d8bddd7418b6d8546e9b6317619cf23 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 3 Sep 2017 16:18:08 +0200 Subject: [PATCH 08/15] Add a recipient delimiter for extended addresses --- postfix/conf/main.cf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postfix/conf/main.cf b/postfix/conf/main.cf index 6cd514e8..4b8db9bd 100644 --- a/postfix/conf/main.cf +++ b/postfix/conf/main.cf @@ -28,6 +28,9 @@ mydestination = # Relayhost if any is configured relayhost = {{ RELAYHOST }} +# Recipient delimiter for extended addresses +recipient_delimiter = + + ############### # TLS ############### From e1533a12e31d59065873ed5d35b0b6a0e40b3091 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 3 Sep 2017 18:51:50 +0200 Subject: [PATCH 09/15] Allow one manager to add another to the domain, fixes #203 --- admin/mailu/admin/views/managers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/mailu/admin/views/managers.py b/admin/mailu/admin/views/managers.py index fea2e930..98b1def8 100644 --- a/admin/mailu/admin/views/managers.py +++ b/admin/mailu/admin/views/managers.py @@ -23,7 +23,7 @@ def manager_create(domain_name): ] if form.validate_on_submit(): user = models.User.query.get(form.manager.data) - if user not in available_users: + if user.email not in [user.email for user in available_users]: flask.abort(403) elif user in domain.managers: flask.flash('User %s is already manager' % user, 'error') From b40f3f35cae56f1d2c1a0f61dccab47fbfb637bf Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 12:32:48 +0200 Subject: [PATCH 10/15] Backport a fix from 14f30b30 --- nginx/start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx/start.sh b/nginx/start.sh index a0f7718b..3f65b90c 100755 --- a/nginx/start.sh +++ b/nginx/start.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ -z ENABLE_CERTBOT ] || [ -f /certs/cert.pem ] +if [ -z $ENABLE_CERTBOT ] || [ -f /certs/cert.pem ] then cp /etc/nginx/nginx.conf.default /etc/nginx/nginx.conf else From 921f9f73c3cf2cd010cbe8e594079dfd8a674516 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 13:04:43 +0200 Subject: [PATCH 11/15] Fix #249 --- admin/mailu/__init__.py | 4 +++- admin/mailu/certbot.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/admin/mailu/__init__.py b/admin/mailu/__init__.py index ff98ece0..aeb4d89e 100644 --- a/admin/mailu/__init__.py +++ b/admin/mailu/__init__.py @@ -46,7 +46,9 @@ login_manager = flask_login.LoginManager() login_manager.init_app(app) babel = flask_babel.Babel(app) translations = list(map(str, babel.list_translations())) -scheduler = background.BackgroundScheduler() +scheduler = background.BackgroundScheduler({ + 'apscheduler.timezone': 'UTC' +}) # Manager commnad manager = flask_script.Manager(app) diff --git a/admin/mailu/certbot.py b/admin/mailu/certbot.py index 036809bb..71e0309c 100644 --- a/admin/mailu/certbot.py +++ b/admin/mailu/certbot.py @@ -44,7 +44,7 @@ def certbot_install(domain): @scheduler.scheduled_job('date') -@scheduler.scheduled_job('cron', hour=96, minute=0) +@scheduler.scheduled_job('cron', day='*/4', hour=0, minute=0) def generate_cert(): print("Generating TLS certificates using Certbot") hostname = app.config["HOSTNAME"] From 7f50f4c184d97c092a15a209f86f1a2340319143 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 13:36:24 +0200 Subject: [PATCH 12/15] Fix the sqlite query, fix #243 --- postfix/conf/sqlite-virtual_alias_maps.cf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postfix/conf/sqlite-virtual_alias_maps.cf b/postfix/conf/sqlite-virtual_alias_maps.cf index 619bc610..a96fb034 100644 --- a/postfix/conf/sqlite-virtual_alias_maps.cf +++ b/postfix/conf/sqlite-virtual_alias_maps.cf @@ -4,7 +4,7 @@ query = FROM (SELECT destination, email, wildcard, localpart FROM alias UNION - SELECT (CASE WHEN forward_enabled=1 THEN (CASE WHEN forward_keep=1 THEN email||',' ELSE '')||forward_destination ELSE email END) AS destination, email, 0 as wildcard, localpart FROM user) + SELECT (CASE WHEN forward_enabled=1 THEN (CASE WHEN forward_keep=1 THEN email||',' ELSE '' END)||forward_destination ELSE email END) AS destination, email, 0 as wildcard, localpart FROM user) WHERE ( wildcard = 0 From 1deee71e51a8e9e5bfab23a97bd83756a9764f7e Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 13:56:46 +0200 Subject: [PATCH 13/15] Fix the postconf command and rename the override file, fix #239 --- postfix/start.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/postfix/start.sh b/postfix/start.sh index cee1862f..e34543a5 100755 --- a/postfix/start.sh +++ b/postfix/start.sh @@ -16,13 +16,13 @@ else fi # Override Postfix master configuration -if [ -f /overrides/master.cf ]; then +if [ -f /overrides/postfix.master ]; then while read line; do - postconf -M "$line" - done < /overrides/master.cf - echo "Loaded '/overrides/master.cf'" + postconf -Me "$line" + done < /overrides/postfix.master + echo "Loaded '/overrides/postfix.master'" else - echo "No extra postfix settings loaded because optional '/overrides/master.cf' not provided." + echo "No extra postfix settings loaded because optional '/overrides/postfix.master' not provided." fi # Include table-map files From 4ee086a52a3f60b54d31a400a0c0bdb503d61eba Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 14:09:16 +0200 Subject: [PATCH 14/15] Make the recipient delimiter customizeable, fixes #233 and #164 --- .env.dist | 4 ++++ dovecot/conf/dovecot.conf | 2 +- postfix/conf/main.cf | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.env.dist b/.env.dist index add937bd..d365eb75 100644 --- a/.env.dist +++ b/.env.dist @@ -73,6 +73,10 @@ RELAYHOST= # Fetchmail delay FETCHMAIL_DELAY=600 +# Recipient delimiter, character used to delimiter localpart from custom address part +# e.g. localpart+custom@domain;tld +RECIPIENT_DELIMITER=+ + ################################### # Nginx settings ################################### diff --git a/dovecot/conf/dovecot.conf b/dovecot/conf/dovecot.conf index 0f4b04d8..928b4d3e 100644 --- a/dovecot/conf/dovecot.conf +++ b/dovecot/conf/dovecot.conf @@ -127,7 +127,7 @@ service imap-login { protocol lmtp { mail_plugins = $mail_plugins sieve - recipient_delimiter = + + recipient_delimiter = {{ RECIPIENT_DELIMITER }} } service lmtp { diff --git a/postfix/conf/main.cf b/postfix/conf/main.cf index 4b8db9bd..b806a46f 100644 --- a/postfix/conf/main.cf +++ b/postfix/conf/main.cf @@ -29,7 +29,7 @@ mydestination = relayhost = {{ RELAYHOST }} # Recipient delimiter for extended addresses -recipient_delimiter = + +recipient_delimiter = {{ RECIPIENT_DELIMITER }} ############### # TLS From 4e1869b635517420e3bd436847ff65448641efe6 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Sun, 10 Sep 2017 14:38:45 +0200 Subject: [PATCH 15/15] Increase the max size of http requests, fix #207 --- nginx-no-https/nginx.conf.default | 1 + nginx/nginx.conf.default | 1 + nginx/nginx.conf.fallback | 1 + 3 files changed, 3 insertions(+) diff --git a/nginx-no-https/nginx.conf.default b/nginx-no-https/nginx.conf.default index 4062f7b0..f2480ad1 100644 --- a/nginx-no-https/nginx.conf.default +++ b/nginx-no-https/nginx.conf.default @@ -23,6 +23,7 @@ http { sendfile on; keepalive_timeout 65; server_tokens off; + client_max_body_size 25m; server { listen 80; diff --git a/nginx/nginx.conf.default b/nginx/nginx.conf.default index 1e2fb4ae..69ccc90b 100644 --- a/nginx/nginx.conf.default +++ b/nginx/nginx.conf.default @@ -23,6 +23,7 @@ http { sendfile on; keepalive_timeout 65; server_tokens off; + client_max_body_size 25m; server { listen 80; diff --git a/nginx/nginx.conf.fallback b/nginx/nginx.conf.fallback index a6dc68f5..9b3e1e95 100644 --- a/nginx/nginx.conf.fallback +++ b/nginx/nginx.conf.fallback @@ -18,6 +18,7 @@ http { sendfile on; keepalive_timeout 65; server_tokens off; + client_max_body_size 25m; server { listen 80;