Bug#1062357: systemd-cron: broken result mailing implementation
Martin-Éric Racine
martin-eric.racine at iki.fi
Thu Feb 1 08:10:53 GMT 2024
to 1. helmik. 2024 klo 9.33 Alexandre Detiste
(alexandre.detiste at gmail.com) kirjoitti:
> 1)
>
> MAILFROM= is supported for a long time, is it enough ?
>
> v1.5.18 : 2020-12-26
>
> Various improvements to email on error:
> * Revert "Use DynamicUser=yes for error email generator"
> * Use sysusers.d snippet instead
> * Support for MAILFROM variable [thanks MarcoCLA]
Thanks. Good to know. It's not documented in the crontab(5) man page.
Also, can this variable be configured in a file that is dropped into
some directory, to avoid editing the global /etc/crontab? e.g.
/etc/crontab.d/ or something similar?
> 2) _cron-failure should had been (re-)created by systemd-sysusers:
>
> $ cat debian/systemd-cron.sysusers
> u _cron-failure -:systemd-journal - /nonexistent /usr/sbin/nologin
>
> $ cat debian/rules
> execute_after_dh_auto_install:
> # automatic with DebHelper >= 14
> dh_installsysusers
helmi 01 06:20:08 p8h61 nullmailer-send[1286]: From:
<_cron-failure at iki.fi> to: <martin-eric.racine at iki.fi>
_cron-failure does not exist as a user on iki.fi (a public e-mail
account e.g. gmail.com, hotmail.com), and therefore bounces.
Martin-Éric
More information about the Pkg-systemd-maintainers
mailing list