Updated automx config
This commit is contained in:
@@ -44,12 +44,12 @@ class Automx(base.Installer):
|
|||||||
sql_query = (
|
sql_query = (
|
||||||
"SELECT first_name || ' ' || last_name AS display_name, email"
|
"SELECT first_name || ' ' || last_name AS display_name, email"
|
||||||
", SPLIT_PART(email, '@', 2) AS domain "
|
", SPLIT_PART(email, '@', 2) AS domain "
|
||||||
"FROM core_user WHERE email='%s' AND is_active")
|
"FROM core_user WHERE email='%s' AND is_active;")
|
||||||
else:
|
else:
|
||||||
sql_query = (
|
sql_query = (
|
||||||
"SELECT concat(first_name, ' ', last_name) AS display_name, "
|
"SELECT concat(first_name, ' ', last_name) AS display_name, "
|
||||||
"email, SUBSTRING_INDEX(email, '@', -1) AS domain "
|
"email, SUBSTRING_INDEX(email, '@', -1) AS domain "
|
||||||
"FROM core_user WHERE email='%s' AND is_active=1"
|
"FROM core_user WHERE email='%s' AND is_active=1;"
|
||||||
)
|
)
|
||||||
context.update({"sql_dsn": sql_dsn, "sql_query": sql_query})
|
context.update({"sql_dsn": sql_dsn, "sql_query": sql_query})
|
||||||
return context
|
return context
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
provider = %domain
|
provider = %domain
|
||||||
domains = *
|
domains = *
|
||||||
|
|
||||||
|
#debug=yes
|
||||||
|
#logfile = /srv/automx/automx.log
|
||||||
|
|
||||||
# Protect against DoS
|
# Protect against DoS
|
||||||
memcache = 127.0.0.1:11211
|
memcache = 127.0.0.1:11211
|
||||||
memcache_ttl = 600
|
memcache_ttl = 600
|
||||||
@@ -16,6 +19,8 @@ host = %sql_dsn
|
|||||||
query = %sql_query
|
query = %sql_query
|
||||||
result_attrs = display_name, email
|
result_attrs = display_name, email
|
||||||
|
|
||||||
|
display_name = ${display_name}
|
||||||
|
|
||||||
smtp = yes
|
smtp = yes
|
||||||
smtp_server = %hostname
|
smtp_server = %hostname
|
||||||
smtp_port = 587
|
smtp_port = 587
|
||||||
@@ -32,10 +37,3 @@ imap_encryption = starttls
|
|||||||
imap_auth = plaintext
|
imap_auth = plaintext
|
||||||
imap_auth_identity = ${email}
|
imap_auth_identity = ${email}
|
||||||
imap_refresh_ttl = 6
|
imap_refresh_ttl = 6
|
||||||
|
|
||||||
pop = yes
|
|
||||||
pop_server = %hostname
|
|
||||||
pop_port = 110
|
|
||||||
pop_encryption = starttls
|
|
||||||
pop_auth = plaintext
|
|
||||||
pop_auth_identity = ${email}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user