# Mail: start error during install

**URL:** https://syncloud.discourse.group/t/mail-start-error-during-install/238
**Category:** Existing Apps
**Tags:** mail-server
**Created:** [13 September 2022 16:45 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238 "2022-09-13T16:45:13Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [13 September 2022 16:45 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/1 "2022-09-13T16:45:13Z")

</div>

Hi Boris,  
I have tried to install this app. Unfortunately it fails. Here follows the error:

```auto
root@syncloud:~# sudo snap install mail
error: cannot perform the following tasks:
- Start snap "mail" (239) services ([start snap.mail.php-fpm.service snap.mail.o pendkim.service snap.mail.nginx.service snap.mail.postfix.service snap.mail.dove cot.service snap.mail.postgresql.service] failed with exit status 1: Job for sna p.mail.postfix.service failed because the control process exited with error code .
See "systemctl status snap.mail.postfix.service" and "journalctl -xe" for detail s.
)
root@syncloud:~#

```

I’m running an Odroid HC4 with :  
System:1481  
Installer:312

```auto
root@syncloud:~# hostnamectl
   Static hostname: syncloud
         Icon name: computer
        Machine ID: b65ee67f8c094915aa9809c66458a868
           Boot ID: 49d5289a913044108909507304977352
  Operating System: Debian GNU/Linux 10 (buster)
            Kernel: Linux 4.9.236-63
      Architecture: arm64

```

Thanks for your help

Simone

p.s.: this topic is apparently VERY similar to [this](https://syncloud.discourse.group/t/syncloud-mail-app-failed-to-start-during-install/47) one but the errors on console are different. Here’s why I preferred to open a new thread. Thanks

---

<div class="post-metadata">

### Author: ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)
#### Post date: [13 September 2022 20:04 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/2 "2022-09-13T20:04:10Z")

</div>

Could you send logs from Settings - Support?

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [13 September 2022 21:38 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/3 "2022-09-13T21:38:13Z")

</div>

just done, immediately after having tried to install Mail. Thanks, ciao  
Simone

---

<div class="post-metadata">

### Author: ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)
#### Post date: [14 September 2022 05:56 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/4 "2022-09-14T05:56:32Z")

</div>

Looks like something is already running on mail port 25:

```auto
syncloud postfix/master[29191]: fatal: bind 0.0.0.0 port 25: Address already in use

```

Did you install anything on the device not from Syncloud store or maybe configured some app to become mail server (not sure if that is possible)?

Can you check what is running on that port?

```auto
netstat -lnp | grep :25

```

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [14 September 2022 07:27 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/5 "2022-09-14T07:27:54Z")

</div>

```auto
root@syncloud:~# netstat -lnp | grep :25
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 2703/exim4
tcp6 0 0 ::1:25 :::* LISTEN 2703/exim4
root@syncloud:~#

```

I have googled “exim”. It’s a package related to mail processing. Just removed, Mail installed successfully:

```auto
root@syncloud:~# sudo snap install mail
mail 239 from 'syncloud' installed
root@syncloud:~#

```

. Thanks a lot!

---

<div class="post-metadata">

### Author: ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)
#### Post date: [14 September 2022 07:51 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/6 "2022-09-14T07:51:43Z")

</div>

Did you install exim yourself before that?

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [14 September 2022 07:57 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/7 "2022-09-14T07:57:55Z")

</div>

no, I suppose that I got it installed as a dependency during some manual installation. During the last few months I have tried very few apps via apt-get. Some of them, I suppose, are designed as desktop environment application and could have lead to “tons” of packages installed as dependencies. I have just run `apt autoremove` but very few packages have been removed. Example: I have tried Qbittorrent just yesterday…it was a huge installation…then I have discovered qBittorrent-nox, a light version with a web gui.

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [3 October 2022 07:02 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/8 "2022-10-03T07:02:15Z")

</div>

> [@boris](#):
>
> id you install exim yourself before that?

Hi Boris,  
I think this is interesting for you:

1. I’ve just reflashed (with latest image 😉 )
2. manually installed mdadm to assemble my RAID1 disks;
3. activated it;
4. installed nextcloud → OK;
5. installed rocket.chat → OK;
6. installed mail → same error due to “exim” running on port 25.

So my answer to your question is: I really don’t know when exim was installed during those steps 🤯  
**Anyway, I know the solution. This message is for the sole purpose of giving you useful information.**  
Ciao

Simone

---

<div class="post-metadata">

### Author: ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)
#### Post date: [3 October 2022 07:45 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/9 "2022-10-03T07:45:09Z")

</div>

Probably from step 2?  
Can you reflash the image and install mail right away?

Latest just in case:  
[https://github.com/syncloud/image/releases/download/22.09/syncloud-odroid-hc4-22.09.img.xz](https://github.com/syncloud/image/releases/download/22.09/syncloud-odroid-hc4-22.09.img.xz)

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [7 October 2022 08:01 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/10 "2022-10-07T08:01:36Z")

</div>

hi Boris,  
I have not spent any time with Syncloud during the last days, I beg you pardon.  
I will not reflash due to lack of time 😉 but I’m gonna look for the reverse dependencies of exim4 and related packages. Apt-get command has on option to do that. As soon as I’ll spend time on Syncloud I’ll do that.  
Ciao  
Simone

---

<div class="post-metadata">

### Author: ![boris](https://avatars.discourse-cdn.com/v4/letter/b/74df32/32.png) [@boris](https://syncloud.discourse.group/u/boris)
#### Post date: [9 October 2022 09:37 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/11 "2022-10-09T09:37:18Z")

</div>

Ok, at least you can install mail now.

For the use of apt we should disable it by default and allow enabling it with a big warning “IT WILL BREAK YOUR SYSTEM” 🙂

For the mdadm itself I am am actually working right now on adding a multi disk support to our storage UI which will use btrfs and drops the need for any manual command line setup.

---

<div class="post-metadata">

### Author: ![SimoneBuralli](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@SimoneBuralli](https://syncloud.discourse.group/u/SimoneBuralli)
#### Post date: [9 October 2022 16:18 UTC](https://syncloud.discourse.group/t/mail-start-error-during-install/238/12 "2022-10-09T16:18:47Z")

</div>

😃  
I have looked for rev dependencies of exim4. They are too many:

```auto
root@syncloud:~# apt-cache rdepends exim4
exim4
Reverse Depends:
  alpine
 |vzdump
 |vm
 |uucp
 |systraq
 |systemd-cron
 |sxid
  rmail
 |sauce
 |ripit
 |rt4-clients
 |reportbug
 |renattach
  prayer-accountd
  postgrey
 |popa3d
 |mlmmj
 |mailto
 |mailgraph
 |maildrop
 |mailagent
 |killer
 |ipband
  greylistd
 |geximon
 |debsecan
 |debarchiver
 |darcs-monitor
 |broctl
  bley
 |biabam
 |backuppc
root@syncloud:~#

```

Being that we suspect _mdadm_ to be guilty 😉 I have done also the opposite:

```auto

root@syncloud:~# apt show mdadm
Package: mdadm
Version: 4.1-1
Priority: optional
Section: admin
Maintainer: Debian mdadm maintainers <pkg-mdadm-devel@lists.alioth.debian.org>
Installed-Size: 1,223 kB
Depends: libc6 (>= 2.28), udev, debconf (>= 0.5) | debconf-2.0, lsb-base, debconf
Recommends: default-mta | mail-transport-agent, kmod | module-init-tools
Suggests: dracut-core
Homepage: http://neil.brown.name/blog/mdadm
Tag: admin::boot, admin::configuring, hardware::storage, implemented-in::c,
 implemented-in::shell, interface::commandline, interface::daemon,
 role::program, scope::utility, use::configuring, use::monitor
Download-Size: 425 kB
APT-Manual-Installed: yes
APT-Sources: http://http.debian.net/debian buster/main arm64 Packages
Description: tool to administer Linux MD arrays (software RAID)

```

So, it looks like some “mail” stuff is at least recommended.  
I’m aware that those info are quite incomplete, if I can help you in some way I’m here. Ciao
