Open caadar opened 4 years ago
I marked this as stale due to inactivity. → More info
Have you tried readWritePaths
settings? I had the same problem.
in my case it was: ReadWritePaths = ["/var/lib/postfix/queue/maildrop/"];
I know this is old but I have just had the same Problem, google led me here and the solution was a little different, so I thought I'd share what helped in my case:
In my case, the service in question (borgmatic backup) had the following capability limitations set in its unit:
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_RAW
which, as far as I understand, did not allow the process to create files on disc at all. So if that's the case add the required capabilties or comment that line, which might have security implications.
[…] In my case, the service in question (borgmatic backup) had the following capability limitations set in its unit:
CapabilityBoundingSet=CAP_DAC_READ_SEARCH CAP_NET_RAW
which, as far as I understand, did not allow the process to create files on disc at all. So if that's the case add the required capabilties or comment that line, which might have security implications.
Thanks, adding CAP_DAC_OVERRIDE
to an override conf fragment solve the issue for me with borgmatic :)
Bug description In some cases, someone need to send mails from systemd services. The
mail
utility (from GNU Mailutils) may be used for such things. But it failes when local MTA is Postfix.The service stuck with the following:
The main question here is why unwrapped
postdrop
started here, not expected/run/wrappers/bin/postdrop
?To Reproduce Steps to reproduce the behavior:
[Service] Type=oneshot Environment=PATH=/run/current-system/sw/bin/ ExecStart=/run/current-system/sw/bin/bash -c "echo test | mail user1@localhost"
ExecStart=/run/current-system/sw/bin/bash -c "echo test | /run/wrappers/bin/sendmail user1@localhost"
"x86_64-linux"
Linux 5.4.46, NixOS, 20.09.git.d45fd11a81f (Nightingale)
yes
yes
nix-env (Nix) 2.3.6
""
""
/home/user1/src/nixos/nixpkgs