Problem setting up postfix for sending email

My YunoHost server

Hardware: Old computer
YunoHost version: 11
I have access to my server : Through SSH

Description of my issue

Hello,

When first using my yunohost server I was not using email on it and I know that I disabled dovecot and postfix. Later for a new project I needed my server to be able to send emails and I configured it, it was working.

But now after a reboot and an upgrade to 11, it is not sending emails anymore. I am trying to pinpoint what is going wrong but I do not fully understand how email sending is setup on yunohost.

I started the postfix service but it exits right away.
I have a postfix@- service running, and it is complaining that it cannot connect to localhost:10001 but I cannot find what is supposed to listen on this port.
sendmail command gives no error but do not send email.

The diagnostic gives no problem related to email.

> sudo systemctl status postfix
● postfix.service - Postfix Mail Transport Agent
     Loaded: loaded (/lib/systemd/system/postfix.service; disabled; vendor preset: enabled)
     Active: active (exited) since Fri 2022-04-08 22:45:11 CEST; 37min ago
    Process: 102880 ExecStart=/bin/true (code=exited, status=0/SUCCESS)
   Main PID: 102880 (code=exited, status=0/SUCCESS)
        CPU: 3ms

avril 08 22:45:11 lanterne.chilliet.eu systemd[1]: Starting Postfix Mail Transport Agent...
avril 08 22:45:11 lanterne.chilliet.eu systemd[1]: Finished Postfix Mail Transport Agent.
> sudo systemctl status postfix@-
● postfix@-.service - Postfix Mail Transport Agent (instance -)
     Loaded: loaded (/lib/systemd/system/postfix@.service; enabled-runtime; vendor preset: enabled)
     Active: active (running) since Fri 2022-04-08 22:45:11 CEST; 38min ago
       Docs: man:postfix(1)
    Process: 102701 ExecStartPre=/usr/lib/postfix/configure-instance.sh - (code=exited, status=0/SUCCESS)
    Process: 102762 ExecStart=/usr/sbin/postmulti -i - -p start (code=exited, status=0/SUCCESS)
      Tasks: 6 (limit: 3529)
     Memory: 8.9M
        CPU: 3.499s
     CGroup: /system.slice/system-postfix.slice/postfix@-.service
             ├─102879 /usr/lib/postfix/sbin/master -w
             ├─102881 pickup -l -t unix -u -c
             ├─102882 qmgr -l -t unix -u
             ├─104570 tlsmgr -l -t unix -u -c
             ├─107533 cleanup -z -t unix -u -c
             └─107602 trivial-rewrite -n rewrite -t unix -u -c

avril 08 23:23:30 lanterne.chilliet.eu postfix/cleanup[107533]: warning: 4E5D130E0040: sender_canonical_maps map lookup problem for root@lanterne.chilliet.eu -- message not accepted, try again later
avril 08 23:23:30 lanterne.chilliet.eu postfix/pickup[102881]: warning: maildrop/8F29B30E0165: error writing 4E5D130E0040: queue file write error
avril 08 23:23:30 lanterne.chilliet.eu postfix/pickup[102881]: 50B7230E0040: uid=1007 from=<admin>
avril 08 23:23:30 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:31 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:32 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:33 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:34 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:35 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused
avril 08 23:23:36 lanterne.chilliet.eu postfix/cleanup[107533]: warning: connect to TCP map localhost:10001: Connection refused

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.