Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 833450

Summary: mail-filter/postgrey-1.37: couldn't unlink "/var/run/"
Product: Gentoo Linux Reporter: nic <nic>
Component: Current packagesAssignee: Sam James <sam>
Status: UNCONFIRMED ---    
Severity: normal CC: hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description nic 2022-02-16 03:08:46 UTC
When stopping postgrey, the daemon logs the following warning.

This issue is referenced under debian bug report:

"Most likely the pid file should be in a directory that the user postgrey can modify (such as /var/run/postgrey/ rather than /var/run/, since /var/run is not writable by postgrey."

Reproducible: Always

Actual Results:  
/etc/init.d/postgrey stop

mail.warning postgrey[]: Couldn't unlink "/var/run/" [Permission denied]

I confirmed the warnings clear with the following adjustments, However, this is not persistent as init.d needs to be updated to dynamically create the new dir.

mkdir /var/run/postgrey
chown postgrey:postgrey /var/run/postgrey