Unable to install mail packages

Hi guys

I recently migrated to a fresh install of EE. I am trying to install webmail on mail.domain.com. When I ran ee install --mail whatever the command is, it asked me for my FQDN. I input domain.com… As it went through its process. It got stuck at this and gave me an error

Installing packages, please wait… Oops Something went wrong!! Check logs for reason tail /var/log/ee/ee.log & Try Again!!!

EE log says this 2018-01-19 20:25:03,003 (DEBUG) ee : logging initialized for ‘ee’ using LoggingLogHandler 2018-01-19 20:25:03,516 (DEBUG) ee : [’/usr/local/bin/ee’, ‘stack’, ‘install’, ‘–mail’] 2018-01-19 20:25:03,517 (DEBUG) ee : collecting arguments/commands for <ee.cli.controllers.base.EEBaseController object at 0x7f0871e1ad68> 2018-01-19 20:25:03,522 (DEBUG) ee : collecting arguments/commands for <ee.cli.plugins.stack.EEStackController object at 0x7f0871e26240> 2018-01-19 20:25:03,523 (DEBUG) ee : collecting arguments/commands for <ee.cli.plugins.stack_services.EEStackStatusController object at 0x7f0871e26710> 2018-01-19 20:25:03,531 (INFO) ee : Initializing EasyEngine Database 2018-01-19 20:25:04,746 (INFO) ee : e[94mMail server is already installede[0m 2018-01-19 20:25:04,746 (DEBUG) ee : e[95mSetting apt_packages variable for Nginxe[0m 2018-01-19 20:25:05,903 (DEBUG) ee : e[95mNginx Stable already installede[0m 2018-01-19 20:25:05,905 (DEBUG) ee : e[95mSetting apt_packages variable for PHPe[0m 2018-01-19 20:25:08,201 (DEBUG) ee : e[95mPHP already installede[0m 2018-01-19 20:25:08,203 (INFO) ee : e[94mPHP already installede[0m 2018-01-19 20:25:08,203 (DEBUG) ee : e[95mSetting apt_packages variable for MySQLe[0m 2018-01-19 20:25:08,203 (DEBUG) ee : e[95mRunning command: mysqladmin pinge[0m 2018-01-19 20:25:08,209 (DEBUG) ee : e[95mCommand Output: , Command Error: /bin/sh: 1: mysqladmin: not found e[0m 2018-01-19 20:25:08,209 (DEBUG) ee : e[95mSetting apt_packages variable for Postfixe[0m 2018-01-19 20:25:09,332 (DEBUG) ee : e[95mPostfix is already installede[0m 2018-01-19 20:25:09,333 (INFO) ee : e[94mPostfix is already installede[0m 2018-01-19 20:25:09,333 (DEBUG) ee : e[95mCalling pre_prefe[0m 2018-01-19 20:25:09,333 (INFO) ee : e[94mAdding repository for MySQL, please wait…e[0m 2018-01-19 20:25:09,334 (DEBUG) ee : e[95mAdding key for deb http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial maine[0m 2018-01-19 20:25:09,334 (DEBUG) ee : e[95mRunning command: gpg --keyserver keyserver.ubuntu.com --recv-keys 0xF1656F24C74CD1D8e[0m 2018-01-19 20:25:09,827 (DEBUG) ee : e[95mCommand Output: , Command Error: gpg: requesting key C74CD1D8 from hkp server keyserver.ubuntu.com gpg: key C74CD1D8: “MariaDB Signing Key [email protected]” not changed gpg: Total number processed: 1 gpg: unchanged: 1 e[0m 2018-01-19 20:25:09,828 (DEBUG) ee : e[95mRunning command: gpg -a --export --armor 0xF1656F24C74CD1D8 | apt-key add - e[0m 2018-01-19 20:25:10,098 (DEBUG) ee : e[95mCommand Output: OK , Command Error: e[0m 2018-01-19 20:25:10,099 (DEBUG) ee : e[95mPre-seeding MySQLe[0m 2018-01-19 20:25:10,099 (DEBUG) ee : e[95mecho "mariadb-server-10.1 mysql-server/root_password password " | debconf-set-selectionse[0m 2018-01-19 20:25:10,401 (DEBUG) ee : e[95mCommand Output: , Command Error: e[0m 2018-01-19 20:25:10,402 (DEBUG) ee : e[95mecho "mariadb-server-10.1 mysql-server/root_password_again password " | debconf-set-selectionse[0m 2018-01-19 20:25:10,637 (DEBUG) ee : e[95mCommand Output: , Command Error: e[0m 2018-01-19 20:25:10,639 (DEBUG) ee : e[95mWritting configuration into MySQL filee[0m 2018-01-19 20:25:10,639 (DEBUG) ee : e[95mSetting my.cnf permissione[0m 2018-01-19 20:25:10,639 (DEBUG) ee : e[95mChanging permission of /etc/mysql/conf.d/my.cnf, Perm:384e[0m 2018-01-19 20:25:10,640 (INFO) ee : e[94mUpdating apt-cache, please wait…e[0m Hit:1 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease Hit:2 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease Hit:4 http://security.ubuntu.com/ubuntu xenial-security InRelease Ign:5 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04 InRelease Hit:6 http://archive.ubuntu.com/ubuntu xenial-updates InRelease Hit:7 http://download.opensuse.org/repositories/home:/rtCamp:/EasyEngine/xUbuntu_16.04 Release Hit:8 http://archive.ubuntu.com/ubuntu xenial-backports InRelease Reading package lists… 2018-01-19 20:25:14,120 (INFO) ee : e[94mInstalling packages, please wait…e[0m Reading package lists… Building dependency tree… Reading state information… The following additional packages will be installed: galera-3 iproute libaio1 libdbd-mysql-perl libhtml-template-perl libjemalloc1 libmariadbclient18 libmysqlclient18 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server-10.1 mariadb-server-core-10.1 socat Suggested packages: libipc-sharedcache-perl mailx mariadb-test tinyca The following NEW packages will be installed: galera-3 iproute libaio1 libdbd-mysql-perl libhtml-template-perl libjemalloc1 libmariadbclient18 libmysqlclient18 mariadb-client-10.1 mariadb-client-core-10.1 mariadb-common mariadb-server mariadb-server-10.1 mariadb-server-core-10.1 percona-toolkit socat Preconfiguring packages … 0 upgraded, 16 newly installed, 0 to remove and 20 not upgraded. 1 not fully installed or removed. Need to get 0 B/23.1 MB of archives. After this operation, 196 MB of additional disk space will be used. Selecting previously unselected package mariadb-common. (Reading database … (Reading database … 5% (Reading database … 10% (Reading database … 15% (Reading database … 20% (Reading database … 25% (Reading database … 30% (Reading database … 35% (Reading database … 40% (Reading database … 45% (Reading database … 50% (Reading database … 55% (Reading database … 60% (Reading database … 65% (Reading database … 70% (Reading database … 75% (Reading database … 80% (Reading database … 85% (Reading database … 90% (Reading database … 95% (Reading database … 100% (Reading database … 66869 files and directories currently installed.) Preparing to unpack …/mariadb-common_10.1.30+maria-1~xenial_all.deb … Unpacking mariadb-common (10.1.30+maria-1~xenial) … Selecting previously unselected package galera-3. Preparing to unpack …/galera-3_25.3.22-xenial_amd64.deb … Unpacking galera-3 (25.3.22-xenial) … Selecting previously unselected package iproute. Preparing to unpack …/iproute_1%3a4.3.0-1ubuntu3.16.04.3_all.deb … Unpacking iproute (1:4.3.0-1ubuntu3.16.04.3) … Selecting previously unselected package libdbd-mysql-perl. Preparing to unpack …/libdbd-mysql-perl_4.033-1ubuntu0.1_amd64.deb … Unpacking libdbd-mysql-perl (4.033-1ubuntu0.1) … Selecting previously unselected package libmysqlclient18. Preparing to unpack …/libmysqlclient18_10.1.30+maria-1~xenial_amd64.deb … Unpacking libmysqlclient18 (10.1.30+maria-1~xenial) … Selecting previously unselected package libmariadbclient18. Preparing to unpack …/libmariadbclient18_10.1.30+maria-1~xenial_amd64.deb … Unpacking libmariadbclient18 (10.1.30+maria-1~xenial) … Selecting previously unselected package mariadb-client-core-10.1. Preparing to unpack …/mariadb-client-core-10.1_10.1.30+maria-1~xenial_amd64.deb … Unpacking mariadb-client-core-10.1 (10.1.30+maria-1~xenial) … Selecting previously unselected package mariadb-client-10.1. Preparing to unpack …/mariadb-client-10.1_10.1.30+maria-1~xenial_amd64.deb … Unpacking mariadb-client-10.1 (10.1.30+maria-1~xenial) … Selecting previously unselected package libaio1:amd64. Preparing to unpack …/libaio1_0.3.110-2_amd64.deb … Unpacking libaio1:amd64 (0.3.110-2) … Selecting previously unselected package libjemalloc1. Preparing to unpack …/libjemalloc1_3.6.0-9ubuntu1_amd64.deb … Unpacking libjemalloc1 (3.6.0-9ubuntu1) … Selecting previously unselected package mariadb-server-core-10.1. Preparing to unpack …/mariadb-server-core-10.1_10.1.30+maria-1~xenial_amd64.deb … Unpacking mariadb-server-core-10.1 (10.1.30+maria-1~xenial) … Selecting previously unselected package socat. Preparing to unpack …/socat_1.7.3.1-1_amd64.deb … Unpacking socat (1.7.3.1-1) … Processing triggers for man-db (2.7.5-1) … Processing triggers for libc-bin (2.23-0ubuntu9) … Setting up mariadb-common (10.1.30+maria-1~xenial) … Selecting previously unselected package mariadb-server-10.1. (Reading database … (Reading database … 5% (Reading database … 10% (Reading database … 15% (Reading database … 20% (Reading database … 25% (Reading database … 30% (Reading database … 35% (Reading database … 40% (Reading database … 45% (Reading database … 50% (Reading database … 55% (Reading database … 60% (Reading database … 65% (Reading database … 70% (Reading database … 75% (Reading database … 80% (Reading database … 85% (Reading database … 90% (Reading database … 95% (Reading database … 100% (Reading database … 67106 files and directories currently installed.) Preparing to unpack …/mariadb-server-10.1_10.1.30+maria-1~xenial_amd64.deb … Unpacking mariadb-server-10.1 (10.1.30+maria-1~xenial) … Selecting previously unselected package libhtml-template-perl. Preparing to unpack …/libhtml-template-perl_2.95-2_all.deb … Unpacking libhtml-template-perl (2.95-2) … Selecting previously unselected package mariadb-server. Preparing to unpack …/mariadb-server_10.1.30+maria-1~xenial_all.deb … Unpacking mariadb-server (10.1.30+maria-1~xenial) … Selecting previously unselected package percona-toolkit. Preparing to unpack …/percona-toolkit_2.2.16-1_all.deb … Unpacking percona-toolkit (2.2.16-1) … Processing triggers for man-db (2.7.5-1) … Processing triggers for systemd (229-4ubuntu21) … Processing triggers for ureadahead (0.100.0-19) … Setting up amavisd-new (1:2.10.1-2ubuntu1) … Creating/updating amavis user account… Job for amavis.service failed because the control process exited with error code. See “systemctl status amavis.service” and “journalctl -xe” for details. invoke-rc.d: initscript amavis, action “start” failed. e[0;1;31m●e[0m amavis.service - LSB: Starts amavisd-new mailfilter Loaded: loaded (/etc/init.d/amavis; bad; vendor preset: enabled) Active: e[0;1;31mfailede[0m (Result: exit-code) since Fri 2018-01-19 20:25:27 UTC; 12ms ago Docs: man:systemd-sysv-generator(8) Process: 29988 ExecStart=/etc/init.d/amavis start e[0;1;31m(code=exited, status=1/FAILURE)e[0m

Jan 19 20:25:27 ubuntu amavis[29988]: The value of variable $myhostname i…en Jan 19 20:25:27 ubuntu amavis[29988]: a fully qualified domain name; perh…h. Jan 19 20:25:27 ubuntu amavis[29988]: You must explicitly assign a FQDN o…me Jan 19 20:25:27 ubuntu amavis[29988]: in /etc/amavis/conf.d/05-node_id, o…'s Jan 19 20:25:27 ubuntu amavis[29988]: network name! Jan 19 20:25:27 ubuntu amavis[29988]: (failed). Jan 19 20:25:27 ubuntu systemd[1]: e[0;1;39mamavis.service: Control process exited, …=1e[0m Jan 19 20:25:27 ubuntu systemd[1]: e[0;1;31mFailed to start LSB: Starts amavisd-new …r.e[0m Jan 19 20:25:27 ubuntu systemd[1]: e[0;1;39mamavis.service: Unit entered failed state.e[0m Jan 19 20:25:27 ubuntu systemd[1]: e[0;1;39mamavis.service: Failed with result ‘exit…’.e[0m Hint: Some lines were ellipsized, use -l to show in full. dpkg: error processing package amavisd-new (–configure): subprocess installed post-installation script returned error exit status 1 Setting up galera-3 (25.3.22-xenial) … Setting up iproute (1:4.3.0-1ubuntu3.16.04.3) … Setting up libdbd-mysql-perl (4.033-1ubuntu0.1) … Setting up libaio1:amd64 (0.3.110-2) … Setting up libjemalloc1 (3.6.0-9ubuntu1) … Setting up socat (1.7.3.1-1) … Setting up libhtml-template-perl (2.95-2) … Setting up percona-toolkit (2.2.16-1) … Setting up libmysqlclient18 (10.1.30+maria-1~xenial) … Setting up libmariadbclient18 (10.1.30+maria-1~xenial) … Setting up mariadb-client-core-10.1 (10.1.30+maria-1~xenial) … Setting up mariadb-client-10.1 (10.1.30+maria-1~xenial) … Setting up mariadb-server-core-10.1 (10.1.30+maria-1~xenial) … Setting up mariadb-server-10.1 (10.1.30+maria-1~xenial) … 2018-01-19 20:25:28 139684518361344 [Note] /usr/sbin/mysqld (mysqld 10.1.30-MariaDB-1~xenial) starting as process 30083 … 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Using mutexes to ref count buffer pool pages 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: The InnoDB memory heap is disabled 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Compressed tables use zlib 1.2.8 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Using Linux native AIO 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Using SSE crc32 instructions 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Initializing buffer pool, size = 256.0M 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Completed initialization of buffer pool 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Highest supported file format is Barracuda. 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: 128 rollback segment(s) are active. 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Waiting for purge to start 2018-01-19 20:25:28 139684518361344 [Note] InnoDB: Percona XtraDB (http://www.percona.com) 5.6.36-82.2 started; log sequence number 74091637 2018-01-19 20:25:28 139683547838208 [Note] InnoDB: Dumping buffer pool(s) not yet started 2018-01-19 20:25:28 139684518361344 [Note] Plugin ‘FEEDBACK’ is disabled. Setting up mariadb-server (10.1.30+maria-1~xenial) … Processing triggers for libc-bin (2.23-0ubuntu9) … Errors were encountered while processing: amavisd-new E: Sub-process /usr/bin/dpkg returned an error code (1) 2018-01-19 20:25:38,596 (INFO) ee : e[94me[91mOops Something went wrong!!e[0m 2018-01-19 20:25:38,597 (ERROR) ee : e[91mCheck logs for reason tail /var/log/ee/ee.log & Try Again!!!e[0m

I couldnt remove the mail package either.

Please guide me.

THANKS

Hello @UsmanGTA, you should take a look on the EE documentation, a FQDN cannot be a root domain, it’s always a subdomain :