Re: Can't create temporary file

From: John Swartzentruber <>
Date: Mon, 14 Mar 2016 21:10:15 -0400

On 3/14/2016 6:55 AM, John Swartzentruber wrote:
> On 3/14/2016 3:43 AM, A. Schulze wrote:
>> John Swartzentruber:
>>> [root_at_arthur etc]# su opendkim
>>> bash-4.1$ cd /var/tmp
>>> bash-4.1$ dir
>>> bash-4.1$ touch /var/tmp/dkim.8FB9360005.tm67c8
>>> bash-4.1$ dir
>>> dkim.8FB9360005.tm67c8
>>> Mar 13 17:02:09 arthur opendkim[23988]: OpenDKIM Filter v2.10.3
>>> terminating with status 0, errno = 0
>>> Mar 13 17:02:16 arthur opendkim[24080]: OpenDKIM Filter v2.10.3
>>> starting (args: -x /etc/opendkim.conf -P
>>> /var/run/opendkim/
>>> Mar 13 17:02:21 arthur opendkim[24080]: 8FB9360005: dkim_eoh():
>>> resource unavailable: can't create temporary file at
>>> /var/tmp/dkim.8FB9360005.tm67c8: Permission denied
>>> Any ideas of what else to try or where else to look?
>> Do you set ChangeRootDirectory in /etc/opendkim.conf?
>> if so, $chroot/var/tmp must exist and be writable also.
>> Do you use systemd?
>> I'm aware systemd present a private /tmp to processes. Maybe you also
>> see a private /var/tmp.
> Thanks for your response.
> No, I'm don't set ChangeRootDirectory. I'm not familiar with systemd,
> but "locate systemd" didn't return anything.
> After I posted this originally, I did see that other people reported
> the same problem that was SELinux related. I tried one of those
> solutions, but it didn't appear to fix my issue. When I get a chance,
> I might try to see if I can temporarily disable SELinux to determine
> if that is where the problem lies.

FYI, I tried a bunch of SELinux updates to see if I could get this to
work, but nothing made a difference. I finally set dkim_milter_t to be
permissive (semanage permissive -a dkim_milter_t) and that allowed
things to work. If someone has a better solution, I'd love to hear it,
but for now I'm happy that gmail says that my messages pass (dkim=pass).

Here's a bug report for the same issue I was seeing:
Received on Tue Mar 15 2016 - 01:11:58 PST

This archive was generated by hypermail 2.3.0 : Tue Mar 15 2016 - 01:18:00 PST