1 (edited by tasiot 2012-04-25 15:07:24)

Topic: [SOLVED] master.lock permission denied & migration

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.4
- Linux/BSD distribution name and version: Debian 6
- Any related log? Log is helpful for troubleshooting.
====
Hi,

I was migrate my old server on a new and I had install iRedMail too.
I have this log : in /var/log/mail.warn

amavis[2596]: (!)Net::Server: 2012/04/24-11:30:00 Can't connect to UNIX socket at file /var/lib/amavis/amavisd.sock [Permission denied]\n  at line 132 in file /usr/share/perl5/Net/Server/Proto/UNIX.pm
postfix/master[3075]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied

In /var/lib/postfix, I don't had any file.
Reinstallation and chmod/chown don't fix this problem.

Please help me ! :-)

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: [SOLVED] master.lock permission denied & migration

Any error while starting Amavisd service?

3

Re: [SOLVED] master.lock permission denied & migration

Yes, /etc/init.d/amavis start write this in log :

amavis[20994]: (!)Net::Server: 2012/04/24-14:31:29 Can't connect to UNIX socket at file /var/lib/amavis/amavisd.sock [Permission non accord\351e]\n  at line 132 in file /usr/share/perl5/Net/Server/Proto/UNIX.pm

But :
stat amavis
  File: « amavis »
  Size: 4096            Blocks: 8          IO Block: 4096   répertoire
Device: 801h/2049d      Inode: 4604892     Links: 5
Access: (0750/drwxr-x---)  Uid: (  111/  amavis)   Gid: (  115/  amavis)
Access: 2012-04-24 12:21:09.000000000 +0200
Modify: 2012-04-24 12:21:10.000000000 +0200
Change: 2012-04-24 12:21:10.000000000 +0200

I havn't this file *.sock in amavis folder...
ls -l amavis/
total 12
drwxr-x--- 2 amavis amavis 4096 24 avril 12:21 db
drwxrwx--- 2 amavis amavis 4096 24 avril 12:21 tmp
drwxr-x--- 2 amavis amavis 4096 24 avril 12:21 virusmails

Any idea ? My install was made this morning... And I don't edit any file manually.

4

Re: [SOLVED] master.lock permission denied & migration

What's the file permission of directory /var/lib/amavis? Please show us the output of below command:

# ls -dl /var/lib/amavis

Here's output on my server:

# ls -dl /var/lib/amavis/
drwxr-x--- 6 amavis amavis 4096 Apr 24 08:34 /var/lib/amavis/

# ls -dl /var/lib/amavis/*
srwxr-x--- 1 amavis amavis    0 Apr 24 08:34 /var/lib/amavis/amavisd.sock
drwxr-x--- 2 amavis amavis 4096 Apr 24 08:34 /var/lib/amavis/db
drwxrwx--- 3 amavis amavis 4096 Apr 24 08:34 /var/lib/amavis/tmp
drwxr-x--- 2 amavis amavis 4096 Apr 21 19:55 /var/lib/amavis/virusmails

5

Re: [SOLVED] master.lock permission denied & migration

# ls -dl /var/lib/amavis
drwxr-x--- 5 amavis amavis 4096 24 avril 12:21 /var/lib/amavis

This folder and the "/var/lib/postfix" folder are empty...
However, the rights are ok... (amavis:amavis and postfix:postfix)

6

Re: [SOLVED] master.lock permission denied & migration

Still no idea, sorry.
Did you try iRedMail-0.8.0-beta4?

7

Re: [SOLVED] master.lock permission denied & migration

beta4... It is a beta "stable" ? lol

8

Re: [SOLVED] master.lock permission denied & migration

Check your rights on /var and /var/lib directories.
They should belong to root and have exactly these rights : 755
Otherwise, you will have typically the kind of error you have reported wink

9

Re: [SOLVED] master.lock permission denied & migration

It work's !
My rights was :
/var => 755 root:root
/var/lib => 755 root:mysql (why mysql in group...)

I try to apply 777 on /var and /var/lib, just for testing... and it work's !

Now, I re-apply 755 on /var and /var/lib and it still work's !!

Thank you very very much and I will set "SOLVED" in this topic.