Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

postfix warnings

This is on a clean, default Lion Server install:


# postfix check

postfix/postfix-script: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./greylist.db

postfix/postfix-script: warning: not owned by _postfix: /Library/Server/Mail/Data/mta/./whitelist.db

postfix/postfix-script: warning: group or other writable: /Library/Server/Mail/Data/mta


Are these warnings of concern, and if not, is there a good way to suppress them?



Rusty

MacBook Pro, Mac OS X (10.7)

Posted on Jul 26, 2011 1:05 AM

Reply
2 replies

Sep 26, 2011 11:56 PM in response to Rusty Ross

The message "not owned by" means that the file has a wrong owner. You can check it by


$ sudo ls -l /Library/Server/Mail/Data/mta/./greylist.db


To fix it you can change the owner with chown:


$ sudo chown _postfix /Library/Server/Mail/Data/mta/./greylist.db


The message "group or other writable" means that another user (not the owner) is able to write. You can fix it with chmod. Example to remove group write permissions


$ sudo chmod g-w /Library/Server/Mail/Data/mta

Jun 2, 2012 11:41 AM in response to MatteoCorti

While those commands will get rid of postfix's complaints, they will also break the graylisting. You'll start seeing things like:


/usr/libexec/postfix/greylist.pl[39949]: fatal: Cannot open database /Library/Server/Mail/Data/mta/greylist.db: Permission denied
postfix/spawn[39948]: warning: command /usr/bin/perl exit status 1

postfix warnings

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.