Thursday, August 21, 2025
support@conference.yunohost.org
August
Mon Tue Wed Thu Fri Sat Sun
        1
2
3
4
5 6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 23
24
25
26 27 28
29 30
31
             

[09:11:07] <orhtej2> I keep getting 'Undelivered mail' to admin@domain as expanded from root@domain after switch to 12.1

any idea on how to force-regenerate the aliases?
[09:11:08] <Aleks (he/him/il/lui)> 🤔
[09:11:21] <Aleks (he/him/il/lui)> hmmm but does it says why it could deliver the email ?
[09:18:32] <orhtej2> ```
<admin@domain.tld> (expanded from <root>): user unknown
Reporting-MTA: dns; domain.tld
X-Postfix-Queue-ID: 40EA96B4A2F2
X-Postfix-Sender: rfc822; root@domain.tld
Arrival-Date: Thu, 21 Aug 2025 06:45:44 +0000 (UTC)

Final-Recipient: rfc822; admin@domain.tld
Original-Recipient: rfc822;root@domain.tld
Action: failed
Status: 5.1.1
Diagnostic-Code: x-unix; user unknown
```
[09:18:33] <orhtej2> it's from some diagnosis or whatever
[09:18:33] <orhtej2> all the admins are receiving the mail just fine, just this thing 🤷
[09:18:34] <Aleks (he/him/il/lui)> user unknown 🤔
[09:18:34] <Aleks (he/him/il/lui)> hmm
[09:19:51] <Aleks (he/him/il/lui)> ah `slapcat | grep "dn: cn=admins,ou=groups" -A25 | grep "mail:"` does list admin@domain.tld
[09:19:51] <Aleks (he/him/il/lui)> hmmm
[09:19:59] <Aleks (he/him/il/lui)> but who's admin@domain.tld
[09:20:25] <orhtej2> noone
[09:20:25] <Aleks (he/him/il/lui)> 🤔
[09:20:49] <orhtej2> legacy admin?
[09:20:49] <Aleks (he/him/il/lui)> https://aria.im/_bifrost/v1/media/download/AdYm5zzYCYzBrPfVHCnFzTDDdTeB4omuBGjNfr2RL5zfWjc5YYErx_p-HzTPibS_EyfUfNJ3Z7k1I8jkXuy2o21CeY0RSszwAG1hdHJpeC5vcmcvRGppdXVoclpUdmJvd3hScWZtUnZTUEpV
[09:20:53] <Aleks (he/him/il/lui)> yeah maybe
[09:21:48] <orhtej2> this system was concieved in the dedicated-admin-user era
[09:21:48] <Aleks (he/him/il/lui)> ah but `mail:` is actually just a mail alias, that one means to redirect mails sent to admin@ to the admin group
[09:23:16] <Aleks (he/him/il/lui)> can you check what `slapcat | grep 'admin@'` yields on your side ?
[09:30:41] <orhtej2> ```
mail: sharedadmin@domain.tld
mail: admin@domain.tld
```
[09:30:41] <orhtej2> (sharedadmin is an actual user)
[09:30:41] <Aleks (he/him/il/lui)> zmlerp
[09:30:59] <Aleks (he/him/il/lui)> or maybe there's some other alias in postfix somehow like eeeh
[09:31:08] <Aleks (he/him/il/lui)> idk i would try to `grep -nr admin /etc/postfix/`
[09:31:22] <Aleks (he/him/il/lui)> or in /etc/aliases
[09:33:49] <orhtej2> nothing in `aliases`
[09:33:49] <orhtej2> only comments in postfix
[09:33:50] <Aleks (he/him/il/lui)> 😐️
[09:36:41] <Aleks (he/him/il/lui)> what about `slapcat | grep -w admin` ? (like maybe there's some entry with "just" admin without @
[09:37:46] <orhtej2> there indeed is
[09:37:46] <Aleks (he/him/il/lui)> i mean assuming you didnt change /etc/postfix/main.cf, the expansion should happen using what's in `/etc/postfix/ldap-aliases.cf` and `/etc/postfix/ldap-groups.cf`
[09:37:48] <Aleks (he/him/il/lui)> ah
[09:38:54] <orhtej2> ```
mail: abuse
mail: webmaster
mail: admin
```
[09:38:55] <orhtej2> and admins and root as well
[09:38:55] <Aleks (he/him/il/lui)> hmm but that's still aliases and not expansion from root
[09:39:20] <Aleks (he/him/il/lui)> could it be that there's a `/root/.forward` ?
[09:41:32] <orhtej2> nope
[09:41:32] <Aleks (he/him/il/lui)> 😵‍💫
[09:52:36] <orhtej2> I'm as confused if you find this comforting ;)
[09:52:36] <miro5001> does mailq report something?
[12:05:05] <orhtej2> > Mail queue is empty

[12:05:06] <miro5001> > > Mail queue is empty
>

I suppose there is nothing special in
`yunohost user group info admins `
[13:12:41] <orhtej2> no, and all the `<name>` aliases have paired `<name>@domain.tld`
[13:12:41] <miro5001> > no, and all the `<name>` aliases have paired `<name>@domain.tld`

Mmhhh, try adding (or editing) `always_bcc your_email_address` in main.cf and restart postfix. This will send a copy of all emails sent (or received, I don't remember). It may help understand what's wrong
[23:21:56] <bofhgme> Good morning/ good evening. Trying to get Mailman3 up and running on a fresh YNH install on a clean & updated Debian 12 VPS (Arm64) and the install is failing. Looks like it can't connect to the Postgres .sock file? Does anyone have any workarounds? I've uploaded the full logs here: https://paste.yunohost.org/raw/uvidohalub