summaryrefslogtreecommitdiffstats
path: root/roles/webmail
diff options
context:
space:
mode:
Diffstat (limited to 'roles/webmail')
-rw-r--r--roles/webmail/files/etc/nginx/sites-available/roundcube1
-rw-r--r--roles/webmail/tasks/roundcube.yml2
-rw-r--r--roles/webmail/templates/etc/postfix/main.cf.j27
3 files changed, 6 insertions, 4 deletions
diff --git a/roles/webmail/files/etc/nginx/sites-available/roundcube b/roles/webmail/files/etc/nginx/sites-available/roundcube
index 5bff410..8251841 100644
--- a/roles/webmail/files/etc/nginx/sites-available/roundcube
+++ b/roles/webmail/files/etc/nginx/sites-available/roundcube
@@ -47,6 +47,7 @@ server {
error_log /var/log/nginx/roundcube.error.log info;
index index.php;
+ client_max_body_size 64m;
location = /index.php {
include fastcgi/php;
include fastcgi/php-ssl;
diff --git a/roles/webmail/tasks/roundcube.yml b/roles/webmail/tasks/roundcube.yml
index 558f062..ebe93c8 100644
--- a/roles/webmail/tasks/roundcube.yml
+++ b/roles/webmail/tasks/roundcube.yml
@@ -33,7 +33,7 @@
- { var: default_port, value: "143" }
- { var: imap_auth_type, value: "'plain'" }
- { var: imap_cache, value: "null" }
- - { var: messages_cache, value: "FALSE" }
+ - { var: messages_cache, value: "null" }
# SMTP
- { var: smtp_server, value: "'localhost'" }
- { var: smtp_port, value: "2580" }
diff --git a/roles/webmail/templates/etc/postfix/main.cf.j2 b/roles/webmail/templates/etc/postfix/main.cf.j2
index 048302a..9d535c6 100644
--- a/roles/webmail/templates/etc/postfix/main.cf.j2
+++ b/roles/webmail/templates/etc/postfix/main.cf.j2
@@ -91,12 +91,13 @@ smtpd_sender_restrictions =
reject_non_fqdn_sender
reject_unknown_sender_domain
+smtpd_relay_restrictions =
+ permit_mynetworks
+ reject
+
smtpd_recipient_restrictions =
- # RFC requirements
reject_non_fqdn_recipient
reject_unknown_recipient_domain
- permit_mynetworks
- reject
smtpd_data_restrictions =
reject_unauth_pipelining