# Problem setting up postfix for sending email

**URL:** https://forum.yunohost.org/t/problem-setting-up-postfix-for-sending-email/19484
**Category:** Support
**Tags:** postfix, english
**Created:** [April 8, 2022, 9:25pm UTC](https://forum.yunohost.org/t/problem-setting-up-postfix-for-sending-email/19484 "2022-04-08T21:25:25Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MCMic](https://forum.yunohost.org/user_avatar/forum.yunohost.org/mcmic/32/1902_2.png) [@MCMic](https://forum.yunohost.org/u/MCMic)
#### Post date: [April 8, 2022, 9:25pm UTC](https://forum.yunohost.org/t/problem-setting-up-postfix-for-sending-email/19484/1 "2022-04-08T21:25:26Z")

</div>

### 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.

```plaintext
> 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

```

---

<div class="post-metadata">

### Author: ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)
#### Post date: [May 8, 2022, 9:25pm UTC](https://forum.yunohost.org/t/problem-setting-up-postfix-for-sending-email/19484/2 "2022-05-08T21:25:57Z")

</div>

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