Mail: start error during install

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

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.

I’m running an Odroid HC4 with :

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


p.s.: this topic is apparently VERY similar to this one but the errors on console are different. Here’s why I preferred to open a new thread. Thanks

Could you send logs from Settings - Support?

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

Looks like something is already running on mail port 25:

syncloud postfix/master[29191]: fatal: bind 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?

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

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

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

. Thanks a lot!

Did you install exim yourself before that?

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.