Configuring the path of the Sendmail binary!

Hi :waving_hand:

I’m currently tinkering with the development edition (v5-dev — 4.9.92-dev.20251121093310) of the Community Edition, running on Ubuntu 24.04.3 LTS (noble). I have the sendmail binary from Postfix — which allegedly is ‘compatible’ with the majority real sendmail’s parameters, and, indeed, that has been the case for 2 or 3 decades — but Ubuntu prefers to put it under /usr/sbin/sendmail instead.

Obviously, I can place a symlink (and it sort of works), but how to do this properly? I have some machines with user-level permissions only, where I can call sendmail easily enough but not make a symbolic link to it — it requires the correct path to be in place. (Don’t ask. Some systems are like that. Thus, the ability to change it from the configuration file!)

I tried to send a test email from the UI, but stumbled upon this warning:

WARNING: Default executable path is /usr/bin/sendmail. If you need to change it, please make sure to set the ‘defaults > sendmail’ key in your pydio.json configuration file.

I’m afraid those instructions are a bit cryptic for me!

In the pydio.json configuration file, I’ve got:

    "pydio.grpc.mailer": {
      "from": "valid-address@my-server.tld,
      "fromCtl": "default",
      "fromName": "Pydio Maintenance",
      "sender": {
        "@value": "sendmail"
      },
      "valid": true
    },

I suppose that @value is just the selection made on the UI, i.e., that I wish Cells to use the sendmail subsystem.

But the warning message hints at the existence of a defaults > sendmail key. Hmm. There certainly are a lot of defaults in there, under, well, "defaults":, but no ‘sendmail key’.

Should I simply place something there, say, before "sites" (to keep everything nicely ordered alphabetically!), simply like this:

"defaults": [...]
  "sendmail": "/usr/sbin/sendmail",
  "sites": [ 
    ...

Or perhaps:

"defaults": [...]
  "sendmail": {
    "key": "/usr/sbin/sendmail",
  },
  "sites": [ 
    ...

How exactly is this warning message to be interpreted? (and perhaps the revised manual for v5 might include that)

Thanks in advance! :folded_hands:

… although not strictly related, I notice that sendmail is totally disregarding whatever email address I use on the "from" field, as well as the "fromName", falling back to the username under which Cells is running (and, if set, the full name of the user, as it appears under /etc/passwd). But this might be the intended behaviour, I don’t know!

There is also a tiny bug from the test panel on the UI (probably something that will be addressed once v5 is launched!) — when adding just one external address, the email will come with a comma as part of the address, e.g. To: <my-valid@external.address, > — note the comma glued to the TLD part! — which, of course, is invalid, and will be immediately rejected by my MTA (Postfix, in my case), even if that address is a local mailbox (just not one associated with any user).