Index | Thread | Search

From:
Martijn van Duren <openbsd+ports@list.imperialat.at>
Subject:
Re: dkim filters failing after upgrade
To:
Sebastien Marie <semarie@kapouay.eu.org>, Jan Stary <hans@stare.cz>, ports@openbsd.org
Date:
Thu, 5 Mar 2026 17:25:47 +0100

Download raw body.

Thread
On 3/5/26 16:24, Sebastien Marie wrote:
> Jan Stary <hans@stare.cz> writes:
> 
>>>> after an upgrace of amd64 to the latest current,
>>>> my mailserver fails to send mail when doing dkim:
>>>>
>>>> Mar  5 13:08:43 www smtpd[81882]: dkim_ed: pledge: Invalid argument
>>>> Mar  5 13:08:43 www smtpd[578]: warn: lost processor: dkim_rsa exited abnormally
>>>>
>>>> The opensmtpd-filter-dkimsign-0.6p0 is upgraded, like everything else.
>>>
>>> If it's upgraded then the above error shouldn't happen.
>>>
>>> What do you get for "strings /usr/local/libexec/smtpd/filter-dkimsign |
>>> grep stdio"? Should be "stdio rpath wpath cpath". If it's "tmppath stdio"
>>> then for whatever reason it is not upgraded.
>>
>> stdio rpath wpath cpath
>>
>> But after a reboot, it works.
>> No idea why; sorry for the noise.
>>
>> 	Jan
> 
> did you restart the dkim program after upgrading it (by restarting smtpd) ?
> 
> smtpd will start the helper at startup and it is an always running
> program. So after pkg_add -u, the old program would be still in memory
> (if not already killed due to pledge). smptd needs restart to launch the
> new program.
> 
> Regards.

Sounds unlikely. pledge is called at startup. This means that once it's
up and running it shouldn't be called again. Besides, a system restart
must've taken for the new pledge policy in the kernel to take effect,
which also implies an smtpd restarts.

My guess is that the reboot took place, rc tried to start smtpd with
the previous message as a result, and after that pkg_add was run without
starting smtpd.

martijn@