Bug#841257: fixed in sendmail 8.15.2-7
On Wed, 7 Dec 2016 22:24:22 +0100
Andreas Beckmann <anbe@debian.org> wrote:
> On 2016-12-07 17:12, Axel 'the C.L.A.' Müller wrote:
> > Seems this change now causes cron to spam like:
> >
> > From: root@e560 (Cron Daemon)
> > To: root@e560
> > Subject: Cron <smmsp@e560> test -x /etc/init.d/sendmail && test
> > -x /usr/share/sendmail/sendmail && test -x /usr/lib/sm.bin/sendmail
> > && /usr/share/sendmail/sendmail cron-msp
> >
> > su: Muss von einem Terminal gestartet werden.
> >
> > (Translation: "su: Needs to be started from a terminal")
> >
>
> can you try to replace the touch_stamp() method in
> /usr/share/sendmail/sendmail with this:
>
>
> touch_stamp() {
> if [ "$(id -nu)" = "smmsp" ]; then
> touch "$1"
> else
> su smmsp -s /bin/sh -c "touch '$1'"
> fi
> }
>
>
> That should work at least for the smmsp cronjob ...
>
>
> Andreas
Seems to work fine - at least I'm not getting those mails anymore.
Thx. :)
Reply to: