Where to set ":LAYOUT=fs" in ISPConfig

Discussion in 'Installation/Configuration' started by Evan Connolly, Feb 8, 2021.

  1. Evan Connolly

    Evan Connolly New Member

    Hi all,

    I'm trying out ISPConfig3 and like to add ":LAYOUT=fs" to mail_location in dovecot. On my old server I had the following in /etc/dovecot/conf.d/10-mail.conf
    Code:
    ...
    mail_location = maildir:~/.maildir:LAYOUT=fs
    ...
    ISPConfig seems to ignore this setting and takes it from the database. When I add it to the password_query or the user_query in /etc/dovecot/dovecot-sql.conf it either complains about or ignores it.

    Is there a way to have subfolders in the email client also als subfolders in the filesystem? So basically I want to have "/" as folder separator instead of "."

    Thanks
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The dovecot conf file is /etc/dovecot/dovecot.conf. Files in conf.d are not used at all on an ISPConfig system.
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    This file will be overwritten when doing a ISPConfig update. In the future, you can use a separate file for custom settings: https://git.ispconfig.org/ispconfig/ispconfig3/-/issues/5988
     
  5. Evan Connolly

    Evan Connolly New Member

    Neither
    Code:
    mail_location = maildir:/home/vmail/%d/%u/Maildir:LAYOUT=fs
    
    in /etc/dovecot/dovecot.conf nor
    Code:
    user_query = SELECT email as user, maildir as home, CONCAT( maildir_format, ':', maildir, '/', IF(maildir_format='maildir','Maildir',maildir_format)),':LAYOUT=fs' as mail, uid, gid, CONCAT('*:storage=', quota, 'B') AS quota_rule, CONCAT(maildir, '/.sieve') as sieve FROM mail_user WHERE (login = '%u' OR email = '%u') AND `disable%Ls` = 'n' AND server_id = '1'
    
    in /etc/dovecot/dovecot-sql.conf works. It just gets ignored.
     
  6. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    The `':LAYOUT=fs'` is outside of the CONCAT() function.
     
  7. Evan Connolly

    Evan Connolly New Member

    oops, but it still doesn't work after correcting it.
     
  8. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    What output do you get from a doveadm user lookup?
     
  9. Evan Connolly

    Evan Connolly New Member

    Code:
    # doveadm user [email protected]
    field   value
    uid   5000
    gid   5000
    home   /home/vmail/xxx/test1
    mail   maildir:/home/vmail/xxx/test1/Maildir:LAYOUT=fs
    quota_rule   *:storage=0B
    sieve   /home/vmail/xxx/test1/.sieve
    
    On my current server where it is working without ISPConfig and all config done in dovecot it is
    Code:
    # doveadm user administrator
    field   value
    uid   1000
    gid   1000
    home   /home/administrator
    mail   maildir:~/.maildir:LAYOUT=fs
    system_groups_user   administrator
    
     
    Last edited: Feb 10, 2021
  10. Steini86

    Steini86 Active Member

    What do you mean by "doesn't work"? Do you test with a mail client or with the doveadm tools?
    Already existing folders are not renamed, so the folder structure remains the same and you have to do that by hand.
     
  11. Evan Connolly

    Evan Connolly New Member

    With "does't work" I meant, folders are still created as ".folder.subfolder" etc. when I create folders in Thunderbird and not as "folder/subfolder". I also tried with adding
    Code:
    namespace inbox {
      separator = /
      inbox = yes
    }
    
    to dovecot.conf
     

Share This Page