1

Topic: error "can't make sub-window" during installation

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2 PGSQL edition.
- Deployed with iRedMail Easy or the downloadable installer? downloadable
- Linux/BSD distribution name and version: Ubuntu 18.04 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PGSQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Followed install steps: create fresh ubuntu 18.04 server, set hostname, run installer, make selections during prompts.  Looks like many install steps work ok and then in the "start iredmail configurations" stageI saw a lot of errors in console. Here is the complete output from that stage:

```
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Generate self-signed SSL cert (2048 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
/home/xalqor/iRedMail-1.2/functions/system_accounts.sh: line 12: [: too many arguments
/home/xalqor/iRedMail-1.2/functions/system_accounts.sh: line 18: [: too many arguments
/home/xalqor/iRedMail-1.2/functions/system_accounts.sh: line 19: [: too many arguments
/home/xalqor/iRedMail-1.2/functions/system_accounts.sh: line 56: [: too many arguments
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
[ INFO ] Configure PostgreSQL database server.
[ INFO ] Setup daily cron job to backup PostgreSQL databases with
can't make sub-window at (12,48), size (1,70)./backup/backup_pgsql.sh
/home/xalqor/iRedMail-1.2/functions/postgresql.sh: line 206: [: too many arguments
cp: target '(1,70)./backup/backup_pgsql.sh' is not a directory
chown: cannot access '(1,70)./backup/backup_pgsql.sh': No such file or directory
chmod: cannot access '(1,70)./backup/backup_pgsql.sh': No such file or directory
Can't do inplace edit: can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (12,48), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_pgsql.sh: No such file or directory.
Can't do inplace edit: can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (12,48), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_pgsql.sh: No such file or directory.
[ INFO ] Configure Postfix (MTA).
postconf: fatal: /etc/postfix/main.cf, line 224: missing '=' after attribute name: "can't make sub-window at (12,48), size (1,70)."
postconf: fatal: /etc/postfix/main.cf, line 224: missing '=' after attribute name: "can't make sub-window at (12,48), size (1,70)."
postconf: fatal: /etc/postfix/main.cf, line 224: missing '=' after attribute name: "can't make sub-window at (12,48), size (1,70)."
postmap: fatal: /etc/postfix/main.cf, line 224: missing '=' after attribute name: "can't make sub-window at (12,48), size (1,70)."
chown: cannot access 'postscreen_cache.db': No such file or directory
chmod: cannot access 'postscreen_cache.db': No such file or directory
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
cp: target '(1,70)./sieve/dovecot.sieve' is not a directory
chown: cannot access "can't": No such file or directory
chown: cannot access 'make': No such file or directory
chown: cannot access 'sub-window': No such file or directory
chown: cannot access 'at': No such file or directory
chown: cannot access '(12,48),': No such file or directory
chown: cannot access 'size': No such file or directory
chown: cannot access '(1,70)./sieve/dovecot.sieve': No such file or directory
chmod: cannot access "can't": No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(12,48),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./sieve/dovecot.sieve': No such file or directory
[ INFO ] Configure mlmmj (mailing list manager).
chown: invalid user: 'mlmmj:mlmmj'
chown: invalid user: 'mlmmj:mlmmj'
chown: invalid user: 'mlmmj:mlmmj'
chown: invalid user: 'mlmmj:mlmmj'
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
[ INFO ] Configure Roundcube webmail.
[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
cp: target '(1,70)./backup/backup_sogo.sh' is not a directory
chmod: cannot access "can't": No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(12,48),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./backup/backup_sogo.sh': No such file or directory
Can't open can't: No such file or directory.
Can't open make: No such file or directory.
Can't open sub-window: No such file or directory.
Can't open at: No such file or directory.
Can't open (12,48),: No such file or directory.
Can't open size: No such file or directory.
Can't open (1,70)./backup/backup_sogo.sh: No such file or directory.
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure netdata (system and application monitor).

*************************************************************************
* iRedMail-1.2 installation and configuration complete.
*************************************************************************

/home/xalqor/iRedMail-1.2/functions/cleanup.sh: line 296: ${FILE_IREDMAIL_INSTALLATION_DETAILS}: ambiguous redirect
/home/xalqor/iRedMail-1.2/functions/cleanup.sh: line 305: ${FILE_IREDMAIL_LINKS}: ambiguous redirect
/home/xalqor/iRedMail-1.2/functions/cleanup.sh: line 314: ${FILE_IREDMAIL_MUA_SETTINGS}: ambiguous redirect
chown: cannot access "can't": No such file or directory
chmod: cannot access "can't": No such file or directory
chown: cannot access 'make': No such file or directory
chmod: cannot access 'make': No such file or directory
chown: cannot access 'sub-window': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chown: cannot access 'at': No such file or directory
chmod: cannot access 'at': No such file or directory
chown: cannot access '(12,48),': No such file or directory
chmod: cannot access '(12,48),': No such file or directory
chown: cannot access 'size': No such file or directory
chmod: cannot access 'size': No such file or directory
chown: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/details.eml': No such file or directory
chmod: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/details.eml': No such file or directory
chown: cannot access "can't": No such file or directory
chmod: cannot access "can't": No such file or directory
chown: cannot access 'make': No such file or directory
chmod: cannot access 'make': No such file or directory
chown: cannot access 'sub-window': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chown: cannot access 'at': No such file or directory
chmod: cannot access 'at': No such file or directory
chown: cannot access '(12,48),': No such file or directory
chmod: cannot access '(12,48),': No such file or directory
chown: cannot access 'size': No such file or directory
chmod: cannot access 'size': No such file or directory
chown: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/links.eml': No such file or directory
chmod: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/links.eml': No such file or directory
chown: cannot access "can't": No such file or directory
chmod: cannot access "can't": No such file or directory
chown: cannot access 'make': No such file or directory
chmod: cannot access 'make': No such file or directory
chown: cannot access 'sub-window': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chown: cannot access 'at': No such file or directory
chmod: cannot access 'at': No such file or directory
chown: cannot access '(12,48),': No such file or directory
chmod: cannot access '(12,48),': No such file or directory
chown: cannot access 'size': No such file or directory
chmod: cannot access 'size': No such file or directory
chown: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/mua.eml': No such file or directory
chmod: cannot access '(1,70)./vmail1/example.com/p/o/s/postmaster//Maildir/new/mua.eml': No such file or directory
< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/default/iptables, with SSHD ports: 22. [Y|n]Y
[ INFO ] Copy firewall sample rules.
< Question > Restart firewall now (with ssh ports: 22)? [y|N]Y
[ INFO ] Restarting firewall ...
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ERROR: /var/log/clamav/freshclam.log is locked by another process
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: https://mailserver.example.com/mail/
* - SOGo groupware: https://mailserver.example.com/SOGo/
* - netdata (monitor): https://mailserver.example.com/netdata/
*
* - Web admin panel (iRedAdmin): https://mailserver.example.com/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@example.com
* - Password: changeit
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
*   - /home/xalqor/iRedMail-1.2/iRedMail.tips
*
* And it's sent to your mail account postmaster@example.com.
*
********************* WARNING **************************************
*
* Please reboot your system to enable all mail services.
*
********************************************************************
root@mailserver:/home/xalqor/iRedMail-1.2#
```

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: error "can't make sub-window" during installation

Also, as a result of the errors, there are some bogus directories created in the iRedMail-1.2 installation directory from where I ran the script:

```
root@mailserver:/home/xalqor/iRedMail-1.2# ls -1
'(1,70).'
'(12,48),'
ChangeLog
Documentations
README.md
at
"can't"
conf
config
dialog
functions
iRedMail.sh
iRedMail.tips
make
pkgs
runtime
samples
size
sub-window
tools
update
```

3

Re: error "can't make sub-window" during installation

Here is the content of ./runtime/install.log where you can also see some of the errors:

```
root@mailserver:/home/xalqor/iRedMail-1.2# cat ./runtime/install.log
[ INFO ] Checking new version of iRedMail ...
+ < DEBUG > Creating necessary directories ...
[ INFO ] apt update ...
+ < DEBUG > Enable apt repo 'multiverse'.
[ INFO ] Fetching source tarballs ...
[ INFO ] + 1 of 6: https://dl.iredmail.org/yum/misc/iRedAdmin-1.0.tar.bz2
[ INFO ] + 2 of 6: https://dl.iredmail.org/yum/misc/mlmmjadmin-2.1.tar.gz
[ INFO ] + 3 of 6: https://dl.iredmail.org/yum/misc/iRedAPD-3.6.tar.gz
[ INFO ] + 4 of 6: https://dl.iredmail.org/yum/misc/netdata-v1.21.1.gz.run
[ INFO ] + 5 of 6: https://dl.iredmail.org/yum/misc/roundc … ete.tar.gz
[ INFO ] + 6 of 6: https://dl.iredmail.org/yum/misc/webpy-0.51.tar.gz
[ INFO ] Validate downloaded source tarballs ...
[ INFO ] Install package: dialog
[ INFO ] Installing package(s): dialog
[ INFO ] Checking configuration file: /home/xalqor/iRedMail-1.2/config ...
[ INFO ] NOT FOUND. Launching installation wizard.
[ INFO ] Add apt repo for SOGo: https://packages.inverse.ca
[ INFO ] Import apt key (0x810273C4) for SOGo repo (https://packages.inverse.ca).
[ INFO ] Resynchronizing the package index files (apt update) ...
[ INFO ] Installing package(s): postfix postfix-pcre libsasl2-modules postgresql postgresql-client postgresql-contrib postfix-pgsql libdbd-pg-perl php-cli php-fpm php-json php-gd php-curl mcrypt php-intl php-xml php-mbstring php-pgsql nginx-full dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-managesieved dovecot-sieve dovecot-pgsql amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime arj nomarch cpio lzop cabextract p7zip-full rpm libmail-spf-perl unrar-free pax lrzip libclamunrar9 mlmmj memcached sogo sogo-activesync sope4.9-gdl1-postgresql python-sqlalchemy python-dnspython python-psycopg2 python-pymysql python-jinja2 python-netifaces python-pycurl python-requests uwsgi uwsgi-plugin-python python-webpy python-bcrypt fail2ban geoip-bin geoip-database zlib1g libuuid1 libmnl0 curl lm-sensors netcat bzip2 acl patch cron tofrodos logwatch unzip bsdutils liblz4-tool
+ < DEBUG > Service control: enable rsyslog firewalld postfix postgresql nginx php7.2-fpm dovecot clamav-daemon amavis clamav-freshclam sogo memcached fail2ban cron.
Synchronizing state of rsyslog.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable rsyslog
Synchronizing state of postfix.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postfix
Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable postgresql
Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
Synchronizing state of php7.2-fpm.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable php7.2-fpm
Synchronizing state of dovecot.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable dovecot
Synchronizing state of clamav-daemon.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable clamav-daemon
amavis.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable amavis
Synchronizing state of clamav-freshclam.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable clamav-freshclam
sogo.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable sogo
Synchronizing state of memcached.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable memcached
Synchronizing state of fail2ban.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable fail2ban
Synchronizing state of cron.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable cron
Failed to enable unit: Unit file firewalld.service does not exist.
+ < DEBUG > Service control: disable exim sendmail spamassassin ufw.
Synchronizing state of spamassassin.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable spamassassin
Synchronizing state of ufw.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install disable ufw
Failed to disable unit: Unit file exim.service does not exist.
[ INFO ] Generate self-signed SSL cert (2048 bits, expire in 10 years).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system accounts.
+ < DEBUG > Create system account: vmail:vmail (2000:2000).
+ < DEBUG > Create system account: vmail:vmail.
+ < DEBUG > Create directory used to store global sieve filters:
can't make sub-window at (12,48), size (1,70)./sieve.
+ < DEBUG > Create system account: mlmmj:mlmmj.
useradd: invalid home directory 'can't'
+ < DEBUG > Create system account: iredadmin:iredadmin.
+ < DEBUG > Create system account: iredapd:iredapd.
+ < DEBUG > Create system account: netdata:netdata.
[ INFO ] Configure Nginx web server.
[ INFO ] Configure PHP.
+ < DEBUG > Hide PHP info from remote users requests: /etc/php/7.2/fpm/php.ini.
+ < DEBUG > Increase 'memory_limit' to 256M: /etc/php/7.2/fpm/php.ini.
+ < DEBUG > Increase 'upload_max_filesize', 'post_max_size' to 10/12M: /etc/php/7.2/fpm/php.ini.
+ < DEBUG > Disable php extension: suhosin. /etc/php/7.2/fpm/php.ini.
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module mcrypt ini file doesn't exist under /etc/php/7.2/mods-available
[ INFO ] Configure PostgreSQL database server.
+ < DEBUG > Initialize PostgreSQL databases.
+ < DEBUG > Make sure PostgreSQL binds to local address: 127.0.0.1.
+ < DEBUG > Set client_min_messages to ERROR.
+ < DEBUG > Copy iRedMail SSL cert/key with strict permission.
+ < DEBUG > Start PostgreSQL server and sleep 5 seconds for initialization
+ < DEBUG > Service control: stop postgresql.
+ < DEBUG > Service control: start postgresql.
+ < DEBUG > Setting password for PostgreSQL admin: (postgres).
ALTER ROLE
+ < DEBUG > Update pg_hba.conf to force local users to authenticate with md5.
+ < DEBUG > Restart PostgreSQL server and sleeping for 5 seconds.
+ < DEBUG > Service control: stop postgresql.
+ < DEBUG > Service control: start postgresql.
+ < DEBUG > Generate /var/lib/postgresql/.pgpass.
+ < DEBUG > Generate sample SQL templates.
+ < DEBUG > Create roles (vmail, vmailadmin) and database: vmail.
CREATE ROLE
CREATE ROLE
CREATE DATABASE
ALTER DATABASE
+ < DEBUG > Create tables in vmail database.
You are now connected to database "vmail" as user "vmailadmin".
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
psql:/var/lib/postgresql/10/main/iredmail.sql:231: ERROR:  syntax error at or near "t"
LINE 14: can't make sub-window at (12,48), size (1,70).',
             ^
psql:/var/lib/postgresql/10/main/iredmail.sql:232: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:233: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:234: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:235: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:236: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:237: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:238: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:239: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:240: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:241: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:242: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:243: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:244: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:245: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:246: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:247: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:248: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:249: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:250: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:251: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:252: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:253: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:254: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:255: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:256: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:257: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:258: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:259: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:260: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:261: ERROR:  relation "mailbox" does not exist
psql:/var/lib/postgresql/10/main/iredmail.sql:262: ERROR:  relation "mailbox" does not exist
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE FUNCTION
CREATE TRIGGER
+ < DEBUG > Grant permissions.
You are now connected to database "vmail" as user "postgres".
psql:/var/lib/postgresql/10/main/grant_permissions.sql:4: ERROR:  relation "mailbox" does not exist
GRANT
+ < DEBUG > Add first domain and postmaster@ user.
You are now connected to database "vmail" as user "vmailadmin".
INSERT 0 1
psql:/var/lib/postgresql/10/main/add_first_domain_and_user.sql:27: ERROR:  relation "mailbox" does not exist
LINE 1: INSERT INTO mailbox (username,
                    ^
INSERT 0 1
INSERT 0 1
[ INFO ] Setup daily cron job to backup PostgreSQL databases with
can't make sub-window at (12,48), size (1,70)./backup/backup_pgsql.sh
[ INFO ] Configure Postfix (MTA).
+ < DEBUG > Enable chroot.
+ < DEBUG > Enable submission and additional transports required by Amavisd and Dovecot.
+ < DEBUG > Copy: /etc/{hosts,resolv.conf,localtime,services} -> /var/spool/postfix/etc/
+ < DEBUG > Disable duplicate log entries (mail.{info,warn,err}) in syslog config file.
+ < DEBUG > Configure Postfix for SQL/LDAP lookup.
+ < DEBUG > Enable postscreen service.
+ < DEBUG > Comment out 'smtp inet ... smtpd' service in /etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'smtpd pass ... smtpd' service in /etc/postfix/master.cf.
+ < DEBUG > Uncomment the new smtp inet ... postscreen service in /etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'tlsproxy unix ... tlsproxy' service in /etc/postfix/master.cf.
+ < DEBUG > Uncomment the new 'dnsblog unix ... dnsblog' service in /etc/postfix/master.cf.
+ < DEBUG > Update /etc/postfix/main.cf to enable postscreen.
+ < DEBUG > Create /tmp/not-exist//postscreen_cache.db.
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
+ < DEBUG > Copy sample Dovecot config file to /etc/dovecot/dovecot.conf.
+ < DEBUG > Configure dovecot: /etc/dovecot/dovecot.conf.
+ < DEBUG > Copy global sieve filter rule file:
can't make sub-window at (12,48), size (1,70)./sieve/dovecot.sieve.
+ < DEBUG > Enable dovecot SASL support in postfix: /etc/postfix/main.cf.
+ < DEBUG > Create directory for Dovecot plugin: Expire.
+ < DEBUG > Configure Dovecot logging.
+ < DEBUG > Generate modular syslog and log rotate config files for dovecot log files.
+ < DEBUG > Create dovecot log file: /var/log/dovecot/dovecot.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot/lda.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot/imap.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot/pop3.log.
+ < DEBUG > Create dovecot log file: /var/log/dovecot/sieve.log.
[ INFO ] Configure mlmmj (mailing list manager).
+ < DEBUG > Generate script: /usr/bin/mlmmj-amime-receive.
+ < DEBUG > Create required directories:
can't make sub-window at (12,48), size (1,70)./mlmmj,
can't make sub-window at (12,48), size (1,70)./mlmmj-archive.
+ < DEBUG > Setting cron job for mlmmj maintenance.
+ < DEBUG > Enable mlmmj transport in postfix: /etc/postfix/main.cf.
+ < DEBUG > Configure mlmmjadmin (RESTful API server used to manage mlmmj).
+ < DEBUG > Extracting: mlmmjadmin-2.1.tar.gz -> /opt
+ < DEBUG > Generate modular syslog and log rotate config files for mlmmjadmin.
+ < DEBUG > Make mlmmjadmin starting after system startup.
+ < DEBUG > Service control: enable mlmmjadmin.
Created symlink /etc/systemd/system/multi-user.target.wants/mlmmjadmin.service -> /lib/systemd/system/mlmmjadmin.service.
[ INFO ] Configure ClamAV (anti-virus toolkit).
+ < DEBUG > Configure ClamAV: /etc/clamav/clamd.conf.
+ < DEBUG > Configure freshclam: /etc/clamav/freshclam.conf.
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
+ < DEBUG > Generate DKIM pem files: /var/lib/dkim/example.com.pem.
Adding user clamav to group amavis
+ < DEBUG > Setting cron job for vmail user to delete virus mail per month.
+ < DEBUG > Import Amavisd database and grant privileges.
CREATE DATABASE
CREATE ROLE
ALTER DATABASE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
ALTER TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE FUNCTION
CREATE TRIGGER
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
INSERT 0 1
INSERT 0 1
UPDATE 1
ALTER DATABASE
[ INFO ] Configure SpamAssassin (content-based spam filter).
+ < DEBUG > Copy sample SpamAssassin config file: /home/xalqor/iRedMail-1.2/samples/spamassassin/local.cf -> /etc/mail/spamassassin/local.cf.
+ < DEBUG > Enable crontabs for SpamAssassin update.
[ INFO ] Configure iRedAPD (postfix policy daemon).
+ < DEBUG > Extracting: iRedAPD-3.6.tar.gz -> /opt
+ < DEBUG > Configure iRedAPD.
+ < DEBUG > Create symbol link: /opt/iredapd/rc_scripts/iredapd.service -> /lib/systemd/system/iredapd.service.
+ < DEBUG > Make iredapd starting after system startup.
+ < DEBUG > Service control: enable iredapd.
Created symlink /etc/systemd/system/multi-user.target.wants/iredapd.service -> /lib/systemd/system/iredapd.service.
+ < DEBUG > Import iRedAPD database template.
CREATE ROLE
CREATE DATABASE
ALTER DATABASE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
INSERT 0 1
+ < DEBUG > Generate modular syslog and log rotate config files for iRedAPD.
[ INFO ] Configure iRedAdmin (official web-based admin panel).
+ < DEBUG > Extracting: iRedAdmin-1.0.tar.bz2 -> /opt/www
+ < DEBUG > Set correct permission for iRedAdmin: /opt/www/iRedAdmin-1.0.
+ < DEBUG > Import iRedAdmin database template.
CREATE ROLE
CREATE DATABASE
ALTER DATABASE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE TABLE
CREATE INDEX
+ < DEBUG > Configure iRedAdmin.
+ < DEBUG > Configure general settings.
+ < DEBUG > Configure iredadmin database related settings.
+ < DEBUG > Configure SQL mail accounts related settings.
+ < DEBUG > Configure Amavisd related settings.
+ < DEBUG > Configure iRedAPD related settings.
+ < DEBUG > Configure Fail2ban integration.
+ < DEBUG > Make sure iredadmin starting after system startup.
+ < DEBUG > Service control: enable iredadmin.
Created symlink /etc/systemd/system/multi-user.target.wants/iredadmin.service -> /lib/systemd/system/iredadmin.service.
[ INFO ] Configure Roundcube webmail.
+ < DEBUG > Extracting: roundcubemail-1.4.3-complete.tar.gz -> /opt/www
+ < DEBUG > Set correct permission for Roundcubemail: /opt/www/roundcubemail-1.4.3.
+ < DEBUG > Import SQL database and privileges for Roundcubemail.
CREATE SEQUENCE
CREATE TABLE
CREATE TABLE
CREATE INDEX
CREATE SEQUENCE
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE SEQUENCE
CREATE TABLE
CREATE INDEX
CREATE SEQUENCE
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE INDEX
CREATE TABLE
CREATE SEQUENCE
CREATE TABLE
CREATE SEQUENCE
CREATE TABLE
CREATE TABLE
INSERT 0 1
ERROR:  relation "mailbox" does not exist
+ < DEBUG > Configure database for Roundcubemail: /opt/www/roundcubemail-1.4.3/config/*.
+ < DEBUG > Setup daily cron job to keep SQL database clean.
+ < DEBUG > Config plugin: managesieve.
+ < DEBUG > Config plugin: password.
+ < DEBUG > Config plugin: enigma.
[ INFO ] Configure SOGo Groupware (Webmail, Calendar, Address Book, ActiveSync).
+ < DEBUG > Initialize SOGo database.
+ < DEBUG > Service control: restart sogo.
[ INFO ] Configure Fail2ban (authentication failure monitor).
+ < DEBUG > Import Fail2ban database and grant privileges.
CREATE DATABASE
CREATE ROLE
ALTER DATABASE
CREATE TABLE
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
CREATE INDEX
ALTER DATABASE
+ < DEBUG > Disable all default filters in /etc/fail2ban/jail.conf.
+ < DEBUG > Create main Fail2ban config file: /etc/fail2ban/fail2ban.local.
+ < DEBUG > Create Fail2ban config file: /etc/fail2ban/jail.local.
+ < DEBUG > Create Fail2ban directory: /etc/fail2ban/jail.d.
+ < DEBUG > Copy modular Fail2ban jail config files to /etc/fail2ban/jail.d.
+ < DEBUG > Copy sample Fail2ban filter config files.
+ < DEBUG > Install netdata with package: netdata-v1.21.1.gz.run.
[ INFO ] Configure netdata (system and application monitor).
+ < DEBUG > Service control: enable netdata.
+ < DEBUG > Generate netdata config file: /home/xalqor/iRedMail-1.2/samples/netdata/netdata.conf -> /opt/netdata/etc/netdata/netdata.conf.
+ < DEBUG > Generate htpasswd file: /etc/nginx/netdata.users.
+ < DEBUG > Generate config files for plugins.
CREATE ROLE
+ < DEBUG > Generate /opt/netdata/etc/netdata/python.d/postgres.conf.
+ < DEBUG > Add sysctl parameters for better netdata performance.
+ < DEBUG > Increase open files limit.
+ < DEBUG > Mail sensitive administration info to postmaster@example.com.
+ < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/root.
+ < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/amavis.
+ < DEBUG > Set file permission to 0600: /var/spool/cron/crontabs/sogo.
[ INFO ] Copy firewall sample rules.
+ < DEBUG > Service control: enable iptables.
iptables.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable iptables
+ < DEBUG > Service control: enable ip6tables.
ip6tables.service is not a native service, redirecting to systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable ip6tables
[ INFO ] Restarting firewall ...
+ < DEBUG > Service control: restart iptables.
+ < DEBUG > Service control: restart ip6tables.
[ INFO ] Updating ClamAV database (freshclam), please wait ...
+ < DEBUG > Send info of chosed packages to iRedMail team to help improve iRedMail:
+ < DEBUG >
+ < DEBUG >    PGSQL=YES
+ < DEBUG >    WEB_SERVER=NGINX
+ < DEBUG >    ROUNDCUBE=YES
+ < DEBUG >    SOGO=YES
+ < DEBUG >    NETDATA=YES
+ < DEBUG >    FAIL2BAN=YES
+ < DEBUG >    IREDADMIN=YES
+ < DEBUG >
```

4

Re: error "can't make sub-window" during installation

It looks like the almost-root-cause of the problem is this failure in the "config" file:

```
export STORAGE_BASE_DIR='
can't make sub-window at (12,48), size (1,70).'
```

So all the script lines referring to STORAGE_BASE_DIR now result in errors with the words "can't", "make", "sub-window", "at", "(12,48),", "size", and "(1,70)." as shown in the output I pasted.

The rest of the "config" file looks fine.

5

Re: error "can't make sub-window" during installation

By the way, I accepted the default location "/var/vmail" for the storage base directory during installation.

6

Re: error "can't make sub-window" during installation

Update:  I scrapped the VM and created a new one, again Ubuntu 18.04, and just started over with the same steps.  This time I did not see the error.

Not knowing what actually caused the error, I think the install script could be improved by doing input validation on the values of variables read from "config" before using them, and re-launch the dialog if any of the values are invalid. For example STORAGE_BASE_DIR should be a valid absolute path, that could have been detected.

7

Re: error "can't make sub-window" during installation

Seems the error was caused by running the iRedMail installer with "sh" shell instead of "bash", they have different syntax.