[SOLVED] Fresh Install on Debian Buster - fatal: cannot execute /usr/sbin/postconf! // SMTP Offline

Discussion in 'Installation/Configuration' started by Garrett Phaylor, Sep 22, 2020.

  1. Garrett Phaylor

    Garrett Phaylor New Member

    Hey everyone,

    Brand new here to ISPConfig having an issue, did a fresh install on Debian and most seems to be working just fine except my SMTP Server is offline and throwing errors after finishing a fresh install.

    I followed this guide: https://www.howtoforge.com/perfect-server-debian-10-nginx-bind-dovecot-ispconfig-3.1/

    Mail Log:
    Sep 22 16:11:48 web1 postfix/postfix-script[11980]: starting the Postfix mail system
    Sep 22 16:11:48 web1 postfix/master[11982]: daemon started -- version 3.4.14, configuration /etc/postfix
    Sep 22 16:13:18 web1 postfix/postfix-script[12191]: fatal: cannot execute /usr/sbin/postconf!
    Sep 22 16:13:19 web1 postfix/master[11982]: terminating on signal 15
    Sep 22 16:15:05 web1 postfix/postqueue[12285]: warning: Mail system is down -- accessing queue directly

    Mail Warn Log:
    Sep 22 16:10:04 web1 postfix/postqueue[11073]: warning: Mail system is down -- accessing queue directly
    Sep 22 16:13:18 web1 postfix/postfix-script[12191]: fatal: cannot execute /usr/sbin/postconf!
    Sep 22 16:15:05 web1 postfix/postqueue[12285]: warning: Mail system is down -- accessing q

    Mail Error Log:
    Sep 22 16:13:18 web1 postfix/postfix-script[12191]: fatal: cannot execute /usr/sbin/postconf!
    ------
    Any help would be truly appreciated guys! I'm really interested in working with ISPConfig.

    Thanks for the future help everyone!
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Don't think I've run into that one; what do you get for 'ls -l /usr/sbin/postconf' ? You could reinstall the postfix package and see if that fixes it ('apt reinstall postfix').
     
  3. Garrett Phaylor

    Garrett Phaylor New Member

    Hey Jesse!
    Thanks for your help!
    -----
    [email protected]:~# ls -l /usr/sbin/postconf
    -rwxr-xr-x 1 root root 187872 Jun 29 20:33 /usr/sbin/postconf
    -----
    [email protected]:~# apt reinstall postfix
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following package was automatically installed and is no longer required:
    liblockfile1
    Use 'apt autoremove' to remove it.
    0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
    Need to get 0 B/1,519 kB of archives.
    After this operation, 0 B of additional disk space will be used.
    Preconfiguring packages ...
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $destinations in scalar chomp at /tmp/postfix.config.ompH6G line 223.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $mynetworks in scalar chomp at /tmp/postfix.config.ompH6G line 287.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $protos in scalar chomp at /tmp/postfix.config.ompH6G line 389.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    (Reading database ... 57766 files and directories currently installed.)
    Preparing to unpack .../postfix_3.4.14-0+deb10u1_amd64.deb ...
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/tmp.ci/config line 223.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/tmp.ci/config line 287.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/tmp.ci/config line 389.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    Unpacking postfix (3.4.14-0+deb10u1) over (3.4.14-0+deb10u1) ...
    Setting up postfix (3.4.14-0+deb10u1) ...
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $destinations in scalar chomp at /var/lib/dpkg/info/postfix.config line 223.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $mynetworks in scalar chomp at /var/lib/dpkg/info/postfix.config line 287.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.
    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    Use of uninitialized value $protos in scalar chomp at /var/lib/dpkg/info/postfix.config line 389.
    Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Debconf/Client/ConfModule.pm line 121.

    Postfix (main.cf) configuration was not changed. If you need to make changes,
    edit /etc/postfix/main.cf (and others) as needed. To view Postfix
    configuration values, see postconf(1).

    After modifying main.cf, be sure to run 'service postfix reload'.

    postconf: fatal: file /etc/postfix/master.cf: line 18: bad field count
    -----
    I checked my master.cf and I don't see anything wrong from the guide I used.
    -----
    I went ahead and ran ispconfig_update.sh, reconfigured services; it now says SMTP Server Online but POP3 and IMAP are now Offline.

    Mail Log:
    Sep 22 16:55:04 web1 postfix/postqueue[1656]: warning: Mail system is down -- accessing queue directly
    Sep 22 16:59:55 web1 postfix/postfix-script[2618]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
    Sep 22 16:59:55 web1 postfix/postfix-script[2657]: starting the Postfix mail system
    Sep 22 16:59:55 web1 postfix/master[2659]: daemon started -- version 3.4.14, configuration /etc/postfix
    Sep 22 17:00:04 web1 postfix/smtpd[2927]: connect from localhost[::1]
    Sep 22 17:00:04 web1 postfix/smtpd[2927]: lost connection after CONNECT from localhost[::1]
    Sep 22 17:00:04 web1 postfix/smtpd[2927]: disconnect from localhost[::1] commands=0/0
    Sep 22 17:02:12 web1 postfix/postfix-script[3907]: stopping the Postfix mail system
    Sep 22 17:02:12 web1 postfix/master[2659]: terminating on signal 15
    Sep 22 17:02:12 web1 postfix/postfix-script[4065]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
    Sep 22 17:02:12 web1 postfix/postfix-script[4104]: starting the Postfix mail system
    Sep 22 17:02:12 web1 postfix/master[4106]: daemon started -- version 3.4.14, configuration /etc/postfix
    Sep 22 17:02:13 web1 amavis[4129]: starting. /usr/sbin/amavisd-new at web1.hv-servers.com amavisd-new-2.11.0 (20160426), Unicode aware, LC_ALL="C", LANG="en_US"
    Sep 22 17:02:13 web1 amavis[4136]: Net::Server: Group Not Defined. Defaulting to EGID '122 122'
    Sep 22 17:02:13 web1 amavis[4136]: Net::Server: User Not Defined. Defaulting to EUID '114'
    Sep 22 17:02:13 web1 amavis[4136]: No $altermime, not using it
    Sep 22 17:02:13 web1 amavis[4136]: No ext program for .lz4, tried: lz4c -d
    Sep 22 17:02:13 web1 amavis[4136]: No ext program for .rpm, tried: rpm2cpio.pl, rpm2cpio
    Sep 22 17:02:13 web1 amavis[4136]: No ext program for .rar, tried: unrar-free
    Sep 22 17:02:13 web1 amavis[4136]: No ext program for .zoo, tried: zoo
    Sep 22 17:02:13 web1 amavis[4136]: No ext program for .doc, tried: ripole
    Sep 22 17:02:13 web1 amavis[4136]: No decoder for .F
    Sep 22 17:02:13 web1 amavis[4136]: No decoder for .doc
    Sep 22 17:02:13 web1 amavis[4136]: No decoder for .lz4
    Sep 22 17:02:13 web1 amavis[4136]: No decoder for .zoo
    Sep 22 17:02:13 web1 amavis[4136]: Using primary internal av scanner code for ClamAV-clamd
    Sep 22 17:02:13 web1 amavis[4136]: Found secondary av scanner ClamAV-clamscan at /usr/bin/clamscan
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: cannot get RSA certificate from file "/etc/postfix/smtpd.cert": disabling TLS support
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:288:fopen('/etc/postfix/smtpd.cert','r'):
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:20074002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:290:
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:140DC002:SSL routines:use_certificate_chain_file:system lib:../ssl/ssl_rsa.c:615:
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: connect from localhost[::1]
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: SASL: Connect to private/auth failed: No such file or directory
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: fatal: no SASL authentication mechanisms
    Sep 22 17:05:06 web1 postfix/master[4106]: warning: process /usr/lib/postfix/sbin/smtpd pid 4326 exit status 1
    Sep 22 17:05:06 web1 postfix/master[4106]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling
    Sep 22 17:05:32 web1 postfix/postfix-script[4346]: refreshing the Postfix mail system
    Sep 22 17:05:32 web1 postfix/master[4106]: reload -- version 3.4.14, configuration /etc/postfix

    Mail Warn Log:
    Sep 22 16:59:55 web1 postfix/postfix-script[2618]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
    Sep 22 17:02:12 web1 postfix/postfix-script[4065]: warning: symlink leaves directory: /etc/postfix/./makedefs.out
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: cannot get RSA certificate from file "/etc/postfix/smtpd.cert": disabling TLS support
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:288:fopen('/etc/postfix/smtpd.cert','r'):
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:20074002:BIO routines:file_ctrl:system lib:../crypto/bio/bss_file.c:290:
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: TLS library problem: error:140DC002:SSL routines:use_certificate_chain_file:system lib:../ssl/ssl_rsa.c:615:
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: warning: SASL: Connect to private/auth failed: No such file or directory
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: fatal: no SASL authentication mechanisms
    Sep 22 17:05:06 web1 postfix/master[4106]: warning: process /usr/lib/postfix/sbin/smtpd pid 4326 exit status 1
    Sep 22 17:05:06 web1 postfix/master[4106]: warning: /usr/lib/postfix/sbin/smtpd: bad command startup -- throttling

    Mail Error Log:
    Sep 22 17:05:05 web1 postfix/smtpd[4326]: fatal: no SASL authentication mechanisms
     
  4. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    What is in your master.cf? Sounds like an error towards the top...
     
    Garrett Phaylor likes this.
  5. Garrett Phaylor

    Garrett Phaylor New Member

    Code:
    [email protected]:~# nano /etc/postfix/master.cf
      GNU nano 3.2                                                                                               /etc/postfix/master.cf
    #
    # Postfix master process configuration file.  For details on the format
    # of the file, see the master(5) manual page (command: "man 5 master" or
    # on-line: http://www.postfix.org/master.5.html).
    #
    # Do not forget to execute "postfix reload" after editing this file.
    #
    # ==========================================================================
    # service type  private unpriv  chroot  wakeup  maxproc command + args
    #               (yes)   (yes)   (no)    (never) (100)
    # ==========================================================================
    smtp      inet  n       -       y       -       -       smtpd
    #smtp      inet  n       -       y       -       1       postscreen
    #smtpd     pass  -       -       y       -       -       smtpd
    #dnsblog   unix  -       -       y       -       0       dnsblog
    #tlsproxy  unix  -       -       y       -       0       tlsproxy
    submission inet n       -       y       -       -       smtpd
    -o syslog_name=postfix/submission
    -o smtpd_tls_security_level=encrypt
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o smtpd_tls_auth_only=yes
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=
    #  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       y       -       -       smtpd
    -o syslog_name=postfix/smtps
    -o smtpd_tls_wrappermode=yes
    -o smtpd_sasl_auth_enable=yes
    -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=
    #  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    18th line would be if I'm not mistaken "-o syslog_name=postfix/submission" and checks out from the guide I used that's what is suppose to be and also the rest of /etc/postfix/master.cf or did I completely foul up somewhere?

    Thanks for your continued help Jesse!
     
  6. nhybgtvfr

    nhybgtvfr Active Member

    looking at that the lines starting with -o all need to be indented by two spaces:

    Code:
    submission inet n       -       y       -       -       smtpd
      -o syslog_name=postfix/submission
      -o smtpd_tls_security_level=encrypt
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    #  -o smtpd_tls_auth_only=yes
    #  -o smtpd_reject_unlisted_recipient=no
    #  -o smtpd_client_restrictions=$mua_client_restrictions
    #  -o smtpd_helo_restrictions=$mua_helo_restrictions
    #  -o smtpd_sender_restrictions=$mua_sender_restrictions
    #  -o smtpd_recipient_restrictions=
    #  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
    #  -o milter_macro_daemon_name=ORIGINATING
    smtps     inet  n       -       y       -       -       smtpd
      -o syslog_name=postfix/smtps
      -o smtpd_tls_wrappermode=yes
      -o smtpd_sasl_auth_enable=yes
      -o smtpd_client_restrictions=permit_sasl_authenticated,reject
    
     
    Last edited: Sep 23, 2020
    Garrett Phaylor likes this.
  7. Garrett Phaylor

    Garrett Phaylor New Member

    Wow, I'm a goof! :oops:
    Thanks for your help again Jesse!:D

    Edit: Oh and nhybgtvfr too thanks man!
     
    Last edited: Sep 23, 2020

Share This Page