exim4-config script automated?

后端 未结 3 1051
借酒劲吻你
借酒劲吻你 2021-01-06 15:32

I need to setup exim4 on multiple servers however I was wondering if it\'s possible to create a script that will automatically go through the install process and set it up o

相关标签:
3条回答
  • 2021-01-06 16:17

    when I had this problem I did it like this using debconf-set-selections

    debconf-set-selections <<CONF
    exim4-config    exim4/dc_other_hostnames        string  $hostnames
    exim4-config    exim4/dc_eximconfig_configtype  select  internet site; mail is sent and received directly using SMTP
    exim4-config    exim4/no_config boolean true
    # rest of the secret sauce omitted...
    CONF
    
    0 讨论(0)
  • 2021-01-06 16:23

    You need to create /etc/exim4/update-exim4.conf.conf with your local values and then install Exim4 non-interactively, as suggested by @Dogsbody:

    export DEBIAN_FRONTEND=noninteractive
    apt-get install -y exim4-daemon-light
    

    If you already have Exim4 installed, you need to edit the config file and then execute the following, as suggested here:

    dpkg-reconfigure -fnoninteractive exim4-config
    
    0 讨论(0)
  • 2021-01-06 16:25

    The proper solution for Debian is to populate the Debconf database with your choices before running dpkg-reconfigure. Read man debconf-set-selections for details. There is a howto at https://www.debian-administration.org/article/394/Automating_new_Debian_installations_with_preseeding

    0 讨论(0)
提交回复
热议问题