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.

10.8.3 - OS X Server 2.2.1 - Mail server fails to start, permissions problem

Apr 9 20:49:13 server.example.com clamd[27683]: Can't get file status

Apr 9 20:49:13 server com.apple.launchd[1] (org.clamav.clamd[27683]): Exited with code: 1

Apr 9 20:49:13 server com.apple.launchd[1] (org.clamav.clamd): Throttling respawn: Will start in 10 seconds

Apr 9 20:49:14 server.example.com freshclam[27693]: Can't change dir to /Library/Server/Mail/Data/scanner/clamav/dbl.


Apr 9 20:49:23 server.example.com clamd[27695]: Can't get file status


I revently had a run in with the permissions on the system and they might be messed up. What do i need to check... I tried moving the Service Data to another drive... same thing.


Thank you.

Posted on Apr 9, 2013 11:03 AM

Reply
Question marked as Best reply

Posted on Apr 9, 2013 11:40 AM

sudo chown -R _clamav:_clamav /L*/S*/Mail/Data/scanner/clamav; sudo chmod 755 $_

6 replies

Apr 9, 2013 1:55 PM in response to Linc Davis

It seems that directory and it's contents is gone.


I did a:


sudo mkdir /Library/Server/Mail/Data/scannet/clamav

also

sudo mkdir /Library/Server/Mail/Data/scannet/clamav/db

was also missing


then your command


sudo chown -R _clamav:_clamav /Library/Server/Mail/Data/scanner/clamav; sudo chmod 755 $_

sudo chown -R _clamav:_clamav /Library/Server/Mail/Data/scanner/clamav/db; sudo chmod 755 $_


Then i get:


Apr 9 23:46:24 server.example.com servermgrd[34292]: Error: Status Check: Mail filtering service is enabled but not running

Apr 9 23:46:26 server com.apple.launchd[1] (org.amavis.amavisd[36193]): Exited with code: 255

Apr 9 23:46:26 server com.apple.launchd[1] (org.amavis.amavisd): Throttling respawn: Will start in 10 seconds


I then went to the Server app and disabled Mail filtering options and IT WORKS.


But i try to enable it again and still get:


(org.amavis.amavisd[37128]): Exited with code: 255

Apr 9 23:52:52 server com.apple.launchd[1] (org.amavis.amavisd): Throttling respawn: Will start in 8 seconds

Apr 9 23:52:53 server.example.com dovecotd[128]: master: Warning: SIGHUP received - reloading configuration

Apr 9 23:53:01 server com.apple.launchd[1] (org.amavis.amavisd[37160]): Exited with code: 255

Apr 9 23:53:01 server com.apple.launchd[1] (org.amavis.amavisd): Throttling respawn: Will start in 9 seconds

Apr 17, 2013 2:44 PM in response to Linc Davis

In reinstalled OS X 10.8.3 from a memory stick, then deleted the server app and installed that again.


In the end i started having problems again, so i backed up the drive, erased everything and then Restored OpenDirectory, dumped the Wikis and loaded them up again, reconfigured everything by hand. Moved mail and so on. I now have a clean system and a working backup.


Took me 3 days to do it but it's working flawlessly now.

10.8.3 - OS X Server 2.2.1 - Mail server fails to start, permissions problem

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