ISPConfig3 + Bettercrypto - Dovecot problem

Discussion in 'Installation/Configuration' started by Rabenkind, Jan 12, 2018.

  1. till

    till Super Moderator Staff Member ISPConfig Developer

    Just follow the exact commands I posted in #19:

    Code:
    cd /tmp
    wget https://ispconfig.org/downloads/ISPConfig-3.1.11.tar.gz
    tar xfz ISPConfig-3.1.11.tar.gz
    cp ispconfig3_install/install/tpl/debian6_dovecot2.conf.master /usr/local/ispconfig/server/conf-custom/install/
    vi /usr/local/ispconfig/server/conf-custom/install/debian6_dovecot2.conf.master
    and you end up with the correct template opened in the vi editor on the shell.
     
  2. Loveless

    Loveless Member

    Yes, but where do I put my dovecot.conf if I want to overrule other conf after updating ispconfig?
    In other words; What is the custom conf template for /etc/dovecot/dovecot.conf ?
    Do I put it in /usr/local/ispconfig/server/conf-custom/install/tpl/ ? And if so, what should it be called?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    That's the source of the dovecot.conf file. So just edit the file as opened in the editor and press save.

    The one that is opened in the editor when you followed my instructions.
     
  4. Loveless

    Loveless Member

    Never mind, I misread your post 19.
    I see it now. Thanks!

    debian6_dovecot2.conf.master
     
  5. slagroom

    slagroom Member

    Is this also possible with a debian12 install of ISPconfig? I'd very much like to try out this lucene search option mentioned in this thread.
    Would an overriding conf file be named /usr/local/ispconfig/server/conf-custom/install/debian12_dovecot2.conf.master ?
    Or, as it looks like such entries belong in /etc/dovecot/conf.d/90-plugin.conf How do I create a template that survives ispconfig updates?
     
  6. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I thought the files on conf-custom/ are for that like @till explained in #21?
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    The steps are:

    1) Find the template in install/tpl/ of the ISPConfig tar.gz that is used as basis for the config file that you are trying to customize.
    2) Copy this template to the folder /usr/local/ispconfig/server/conf-custom/install/ and do not alter its filename.
    3) Customize the file you copied in the way you want.
     
    slagroom likes this.
  8. slagroom

    slagroom Member

    Wow, great, there's even a lucene available in the deb 12 default stable repo! I love dovecot, they've revived this fts I just read, because turns out many users preferred it over others so they compiled packages again!
    # apt install dovecot-lucene
    using
    /usr/local/ispconfig/server/conf-custom/instal/dovecot_custom.conf.master
    I can now put in plugin config for it to use. I'll let you know if it works and how I finetuned its config after thorough testing.
    ---
    OK, unfortunately, the custom config does not override settings because of its position in the ispconfig set master for dovecot;

    Code:
    2023-09-14 12:37:20 master: Info: Dovecot v2.3.19.1 (9b53102964) starting up for imap, pop3, lmtp, sieve (core dumps disabled)
    2023-09-14 12:37:20 doveconf: Warning: /etc/dovecot/conf.d/99-ispconfig-custom-config.conf line 9: Global setting xyz won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 79 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 79)
    2023-09-14 12:37:20 doveconf: Warning: /etc/dovecot/conf.d/99-ispconfig-custom-config.conf line 14: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 70 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 70)
    2023-09-14 12:37:20 config: Warning: /etc/dovecot/conf.d/99-ispconfig-custom-config.conf line 9: Global setting abc won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 79 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 79)
    2023-09-14 12:37:20 config: Warning: /etc/dovecot/conf.d/99-ispconfig-custom-config.conf line 14: Global setting mail_plugins won't change the setting inside an earlier filter at /etc/dovecot/dovecot.conf line 70 (if this is intentional, avoid this warning by moving the global setting before /etc/dovecot/dovecot.conf line 70)
    
    I think the line:
    !include_try conf.d/99-ispconfig-custom-config.conf
    should be on top, rather than at the bottom, in your dovecot.conf ?
    This perhaps makes: https://forum.howtoforge.com/thread...postfix-and-dovecot-config.86559/#post-419665 incorrect @Th0m ?
     
    Last edited: Sep 14, 2023

Share This Page