Monday, January 01, 2024
dev@conference.yunohost.org
January
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
       
             

[00:02:15] <Yunohost Git/Infra notifications> [yunohost] @alexAubin merged [pull request #1758](https://github.com/YunoHost/yunohost/pull/1758): add --after= in the usage section of ynh_read_var_in_file and ynh_write_var_in_file
[00:02:23] <Yunohost Git/Infra notifications> [yunohost] @alexAubin pushed 2 commits to dev ([6c3290d8bf63...aab80f9eccb8](https://github.com/YunoHost/yunohost/compare/6c3290d8bf63...aab80f9eccb8))
[00:15:52] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost/11.2.9.1+202401010015 for bullseye/unstable/all ...
[00:17:42] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost/11.2.9.1+202401010015 for bullseye/unstable/all.
[01:30:39] <Yunohost Git/Infra notifications> [yunohost] 🔴 Pipeline [#1123545654](https://gitlab.com/yunohost/yunohost/-/pipelines/1123545654) failed on branch dev
[09:17:07] <Yunohost Git/Infra notifications> [issues] @eauchat [commented](https://github.com/YunoHost/issues/issues/2280#issuecomment-1873240361) on [issue #2280](https://github.com/YunoHost/issues/issues/2280) UserOption form should be a lot faster: Could this be related to #2088?
[17:34:35] <Yunohost Git/Infra notifications> [issues] @OniriCorpe closed [issue #2242](https://github.com/YunoHost/issues/issues/2242): Wrong logrotate config perms
[18:36:14] <Yunohost Git/Infra notifications> [install_script] @alexAubin pushed 1 commit to rework: Fix error message formatting + lack of pointer to log ([6a7d6cdf](https://github.com/YunoHost/install_script/commit/6a7d6cdf39944ec225812411b039db6a360b6a16))
[18:44:29] <Yunohost Git/Infra notifications> [yunohost] @alexAubin pushed 1 commit to bookworm: debian/postinst: make sure /etc/yunohost/portal exists ([3aa087ca](https://github.com/YunoHost/yunohost/commit/3aa087ca04010f650a095ec8f609b718a2a8cd7f))
[18:45:33] <Yunohost Git/Infra notifications> 🏗️ Starting build for yunohost/12.0.0+202401011845 for bookworm/unstable/all ...
[18:46:38] <Yunohost Git/Infra notifications> ✔️ Completed build for yunohost/12.0.0+202401011845 for bookworm/unstable/all.
[20:19:26] <tituspijean> Running v11.2.9.1, I still have an issue with sending emails from `__APP__@__DOMAIN__` if domain is not the main domain.
[20:19:58] <tituspijean> (notably for nocodb in packaging v2, eric)
[20:20:53] <tituspijean> I thought it had been solved somehow? I have the right mapping in `/etc/postfix/app_senders_login_maps`
[20:22:10] <tituspijean> the error is `Can't send mail - all recipients were rejected: 553 5.7.1 <__APP__@__DOMAIN__>: Sender address rejected: not logged in`
[20:25:50] <Aleks (he/him/il/lui)> @____@
[20:26:41] <Aleks (he/him/il/lui)> Maybe that's what we were discussing the other day, only the main domain maps to 127.0.0.1 via /etc/hosts
[20:27:07] <Aleks (he/him/il/lui)> Can you check if adding the secondary domain to /etc/hosts fixes the issue
[20:52:19] <tituspijean> nope, even after restarting postfix and the app's service 😕
[20:56:13] <Aleks (he/him/il/lui)> Zgelbmlfrfbl
[20:56:45] <Aleks (he/him/il/lui)> What are you using as 'host' for the SMTP server ?
[21:18:34] <tituspijean> aaah I see where you are getting at. default conf is localhost, will try 127.0.0.1.
[21:19:14] <tituspijean> nope 😕
[21:22:59] <Aleks (he/him/il/lui)> so like the only difference is the sender address (between using the main domain and a secondary domain) x\_X
[21:23:43] <Aleks (he/him/il/lui)> > <@titus:pijean.ovh> nope, even after restarting postfix and the app's service 😕

what about dovecot though
[21:24:02] <Aleks (he/him/il/lui)> (unintuitively enough, dovecot is handling the SMTP auth ...)
[21:24:31] <tituspijean> > <@Alekswag:matrix.org> what about dovecot though

same 😕
[21:26:04] <tituspijean> > <@Alekswag:matrix.org> so like the only difference is the sender address (between using the main domain and a secondary domain) x\_X

yup, it works when I change `NC_SMTP_FROM=nocodb@db.pijean.ovh` to `NC_SMTP_FROM=nocodb@pijean.ovh` (and I only need to restart NocoDB's service)
[21:26:36] <Aleks (he/him/il/lui)> wtf
[21:27:00] <Aleks (he/him/il/lui)> but `/etc/postfix/app_senders_login_maps` contains the entry with `db.yourdomain.tld` right ?
[21:27:33] <tituspijean> yup.... that does not make any sense
[21:28:20] <Aleks (he/him/il/lui)> and just to make sure, `postmap /etc/postfix/app_senders_login_maps` doesnt fix the situation ?
[21:30:26] <tituspijean> after this command, the emails still go through with `NC_SMTP_FROM=nocodb@pijean.ovh`
[21:32:55] <Aleks (he/him/il/lui)> @_@
[21:33:53] <Aleks (he/him/il/lui)> what about maybe the content of `/etc/dovecot/app-senders-passwd`
[21:34:19] <Aleks (he/him/il/lui)> in particular the mail=user@domain thing at the end
[21:34:22] <Aleks (he/him/il/lui)> it's new from 11.2.9
[21:34:57] <Aleks (he/him/il/lui)> but it should match the content of /etc/postfix/app_senders_login_maps
[21:38:45] <tituspijean> `nocodb:{CRYPT}BLAH::::::allow_nets=::1,127.0.0.1/24,local,mail=nocodb@db.pijean.ovh`
[21:39:39] <Aleks (he/him/il/lui)> :|
[21:41:42] <Aleks (he/him/il/lui)> naively i would say there's some cache issue so idk

```
rm /etc/postfix/app_senders_login_maps.db
postmap /etc/postfix/app_senders_login_maps
systemctl restart postfix
systemctl restart dovecot
```

and if that still doesnt fix it then throw the computer into fire
[21:42:09] <Aleks (he/him/il/lui)> maybe you need to `chown postfix` on the file
[21:42:41] <Aleks (he/him/il/lui)> (the .db one)
[21:54:14] <tituspijean> It's causing yet another fire at OVH, then 🙃
[21:54:55] <tituspijean> gotta sleep now, though
[21:55:24] <tituspijean> the issue is relatively easily replicable with https://github.com/YunoHost-Apps/nocodb_ynh/pull/114
[21:56:34] <tituspijean> (and with the initial superuser creation [can be checked in service log], or sending out invites to new users by email [popup or service log])
[21:57:31] <tituspijean> happy new year btw, and thanks for scratching your head with me on this one 😅
[21:58:20] <Aleks (he/him/il/lui)> hap.py new yirz
[21:58:37] <Aleks (he/him/il/lui)> app.py new yirz