Revision 2a2c6c0a

b/ci/schemas/one_node_squeeze/deploy.conf
25 25
lib = /usr/lib/snf-deploy
26 26
# dir to store executed commands (to enforce sequential execution)
27 27
cmd = /var/run/snf-deploy/cmd
28
# dir to be used by Django for file-based mail backend
29
mail_dir = /var/log/gunicorn/synnefo-mails
28 30

  
29 31
[keys]
30 32
# whether to create new keys
b/ci/schemas/one_node_wheezy/deploy.conf
25 25
lib = /usr/lib/snf-deploy
26 26
# dir to store executed commands (to enforce sequential execution)
27 27
cmd = /var/run/snf-deploy/cmd
28
# dir to be used by Django for file-based mail backend
29
mail_dir = /var/log/gunicorn/synnefo-mails
28 30

  
29 31
[keys]
30 32
# whether to create new keys
b/snf-deploy/conf/deploy.conf
25 25
lib = /usr/lib/snf-deploy
26 26
# dir to store executed commands (to enforce sequential execution)
27 27
cmd = /var/run/snf-deploy/cmd
28
# dir to be used by Django for file-based mail backend
29
mail_dir = /var/log/gunicorn/synnefo-mails
28 30

  
29 31
[keys]
30 32
# whether to create new keys
b/snf-deploy/fabfile.py
518 518
        "EMAIL_SUBJECT_PREFIX": env.host,
519 519
        "domain": env.env.domain,
520 520
        "HOST": host_info.fqdn,
521
        "MAIL_DIR": env.env.mail_dir,
521 522
    }
522 523
    custom = customize_settings_from_tmpl(tmpl, replace)
523 524
    put(custom, tmpl, mode=0644)
525
    try_run("mkdir -p {0}; chown root:www-data {0}; chmod 775 {0}".format(env.env.mail_dir))
524 526
    try_run("/etc/init.d/gunicorn restart")
525 527

  
526 528
@roles("accounts")
b/snf-deploy/files/etc/synnefo/astakos.conf
34 34

  
35 35
ASTAKOS_COOKIE_DOMAIN = '%DOMAIN%'
36 36

  
37
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
38
EMAIL_FILE_PATH = '/var/log/gunicorn/synnefo-mails'
39

  
40 37
ASTAKOS_SERVICES = {
41 38
    'cyclades': {
42 39
        'url': 'https://%CYCLADES%/ui/',
b/snf-deploy/files/etc/synnefo/common.conf
7 7

  
8 8
SERVER_EMAIL = "root@%HOST%"
9 9

  
10
EMAIL_BACKEND = 'django.core.mail.backends.filebased.EmailBackend'
11
EMAIL_FILE_PATH = "%MAIL_DIR%"

Also available in: Unified diff