to 1. helmik. 2024 klo 9.33 Alexandre Detiste
(alexandre.deti...@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-fail...@iki.fi> to: <martin-eric.rac...@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

Reply via email to