mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-26 06:08:38 +01:00
Changed user for dkim management
This commit is contained in:
@@ -51,7 +51,8 @@ def update_domain_mxs_and_mailboxes(sender, instance, **kwargs):
|
||||
def create_dkim_key(sender, instance, **kwargs):
|
||||
if not instance.enable_dkim:
|
||||
return
|
||||
django_rq.enqueue(call_command,
|
||||
queue = django_rq.get_queue('dkim')
|
||||
queue.enqueue(call_command,
|
||||
"modo",
|
||||
"manage_dkim_keys",
|
||||
f"--domain={instance.name}")
|
||||
|
||||
@@ -257,21 +257,11 @@ REDIS_URL = 'redis://{}:{}/{}'.format(REDIS_HOST, REDIS_PORT, REDIS_QUOTA_DB)
|
||||
# RQ
|
||||
|
||||
RQ_QUEUES = {
|
||||
'default': {
|
||||
'dkim': {
|
||||
'HOST': REDIS_HOST,
|
||||
'PORT': REDIS_PORT,
|
||||
'DB': 0,
|
||||
},
|
||||
'high': {
|
||||
'HOST': REDIS_HOST,
|
||||
'PORT': REDIS_PORT,
|
||||
'DB': 0,
|
||||
},
|
||||
'low': {
|
||||
'HOST': REDIS_HOST,
|
||||
'PORT': REDIS_PORT,
|
||||
'DB': 0,
|
||||
}
|
||||
}
|
||||
|
||||
# Password validation
|
||||
|
||||
Reference in New Issue
Block a user