Replaced automx by Modoboa autoconfig service
This commit is contained in:
@@ -1,39 +0,0 @@
|
||||
[automx]
|
||||
provider = %domain
|
||||
domains = *
|
||||
|
||||
#debug=yes
|
||||
#logfile = /srv/automx/automx.log
|
||||
|
||||
# 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
|
||||
action = settings
|
||||
account_type = email
|
||||
host = %sql_dsn
|
||||
query = %sql_query
|
||||
result_attrs = display_name, email
|
||||
|
||||
display_name = ${display_name}
|
||||
|
||||
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
|
||||
@@ -1,18 +1,14 @@
|
||||
upstream automx {
|
||||
server unix:%uwsgi_socket_path fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name %hostname;
|
||||
root /srv/automx/instance;
|
||||
root %app_instance_path;
|
||||
|
||||
access_log /var/log/nginx/%{hostname}-access.log;
|
||||
error_log /var/log/nginx/%{hostname}-error.log;
|
||||
|
||||
location /mail/config-v1.1.xml {
|
||||
location ~ ^/(mail/config-v1.1.xml|mobileconfig) {
|
||||
include uwsgi_params;
|
||||
uwsgi_pass automx;
|
||||
uwsgi_pass modoboa;
|
||||
}
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
[uwsgi]
|
||||
uid = %app_user
|
||||
gid = %app_user
|
||||
plugins = %uwsgi_plugin
|
||||
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
|
||||
Reference in New Issue
Block a user