Merge pull request #99 from modoboa/feature/automx

Added automx support.
This commit is contained in:
Antoine Nguyen
2017-03-17 09:12:35 +01:00
committed by GitHub
15 changed files with 287 additions and 58 deletions

View File

@@ -0,0 +1,41 @@
[automx]
provider = %domain
domains = *
# Protect against DoS
memcache = 127.0.0.1:11211
memcache_ttl = 600
client_error_limit = 20
rate_limit_exception_networks = 127.0.0.0/8, ::1/128
[global]
backend = sql
actions = settings
account_type = email
host = %sql_dsn
query = %sql_query
result_attrs = display_name, email
smtp = yes
smtp_server = %hostname
smtp_port = 587
smtp_encryption = starttls
smtp_auth = plaintext
smtp_auth_identity = ${email}
smtp_refresh_ttl = 6
smtp_default = yes
imap = yes
imap_server = %hostname
imap_port = 143
imap_encryption = starttls
imap_auth = plaintext
imap_auth_identity = ${email}
imap_refresh_ttl = 6
pop = yes
pop_server = %hostname
pop_port = 110
pop_encryption = starttls
pop_auth = plaintext
pop_auth_identity = ${email}

View File

@@ -0,0 +1,16 @@
upstream automx {
server unix:%uwsgi_socket_path fail_timeout=0;
}
server {
listen 80;
server_name %hostname;
access_log /var/log/nginx/%{hostname}-access.log;
error_log /var/log/nginx/%{hostname}-error.log;
location /mail/config-v1.1.xml {
include uwsgi_params;
uwsgi_pass automx;
}
}

View File

@@ -11,7 +11,7 @@ server {
server {
listen 443 ssl;
server_name %hostname;
root %modoboa_instance_path;
root %app_instance_path;
ssl_certificate %tls_cert_file;
ssl_certificate_key %tls_key_file;

View File

@@ -0,0 +1,14 @@
[uwsgi]
uid = %app_user
gid = %app_user
plugins = python
home = %app_venv_path
chdir = %app_instance_path
module = automx_wsgi
master = true
vhost = true
harakiri = 60
processes = %nb_processes
socket = %uwsgi_socket_path
chmod-socket = 660
vacuum = true

View File

@@ -1,9 +1,9 @@
[uwsgi]
uid = %modoboa_user
gid = %modoboa_user
uid = %app_user
gid = %app_user
plugins = python
home = %modoboa_venv_path
chdir = %modoboa_instance_path
home = %app_venv_path
chdir = %app_instance_path
module = instance.wsgi:application
master = true
processes = %nb_processes