1

Topic: Postfix Problems

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
======== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

I've migrated a VM with Iredmail and now it doesnt start. It seems like a problem with the permits of /va/lib/postfix but i've changed it and it doesn't works.
This is mail.log:
Jul  8 09:22:14 areasmail2 postfix/postqueue[2191]: fatal: Queue report unavailable - mail system is down
Jul  8 09:22:44 areasmail2 postfix/master[2342]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied

and this are the permisions of the folders /var/lib/postfix
total 136
drwxr-xr-x  2 clamav postfix   4096 Jul  8 09:07 .
drwxr-xr-x 44 root   root      4096 Apr 21 11:05 ..
-rwxr-xr-x  1 clamav postfix     33 Jun  5 11:14 master.lock
-rwxr-xr-x  1 clamav postfix   1024 Jul  7 15:36 prng_exch
-rwxr-xr-x  1 clamav postfix 114688 Jul  7 16:05 smtpd_scache.db
-rwxr-xr-x  1 clamav postfix   8192 Jun  5 11:31 smtp_scache.db

----

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

2

Re: Postfix Problems

If you want to get a quicker answer, please show us basic info of your iRedMail server:

======== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====

If you show us the linux distribution name and release, we can show you the permissions on our server.

3 (edited by Tony-admincujae 2015-07-08 22:10:23)

Re: Postfix Problems

Sorry about that, but Im going crazy with this problem. Here goes again.

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9
- Linux/BSD distribution name and version: Ubuntu 14.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? NO
- Related log if you're reporting an issue:


I've migrated a VM with Iredmail and now it doesnt start. It seems like a problem with the permits of /va/lib/postfix but i've changed it and it doesn't works.
This is mail.log:
Jul  8 09:22:14 areasmail2 postfix/postqueue[2191]: fatal: Queue report unavailable - mail system is down
Jul  8 09:22:44 areasmail2 postfix/master[2342]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied

and this are the permisions of the folders /var/lib/postfix
total 136
drwxr-xr-x  2 clamav postfix   4096 Jul  8 09:07 .
drwxr-xr-x 44 root   root      4096 Apr 21 11:05 ..
-rwxr-xr-x  1 clamav postfix     33 Jun  5 11:14 master.lock
-rwxr-xr-x  1 clamav postfix   1024 Jul  7 15:36 prng_exch
-rwxr-xr-x  1 clamav postfix 114688 Jul  7 16:05 smtpd_scache.db
-rwxr-xr-x  1 clamav postfix   8192 Jun  5 11:31 smtp_scache.db

4

Re: Postfix Problems

I installed a vm with Ubuntu 14.04, permission of /var/lib/postfix is 0755, owned by postfix:postfix. Hope it helps.

# ls -dl /var/lib/postfix/
drwxr-xr-x 2 postfix postfix 4096 Jul  8 22:50 /var/lib/postfix/

Next time you have file permission issue, install iRedMail on a new VM yourself and find the correct permission/ownership in VM.

5

Re: Postfix Problems

ZhangHuangbin wrote:

I installed a vm with Ubuntu 14.04, permission of /var/lib/postfix is 0755, owned by postfix:postfix. Hope it helps.

# ls -dl /var/lib/postfix/
drwxr-xr-x 2 postfix postfix 4096 Jul  8 22:50 /var/lib/postfix/

Next time you have file permission issue, install iRedMail on a new VM yourself and find the correct permission/ownership in VM.

Thanks for the help Zhang. The problem was bigger than that. When I moved the VM I don't know why but the permission on the postfix queues messed up. I had to change the ownership of all the queues on /var/spool/postfix/.

Thanks for the help.

6

Re: Postfix Problems

Is the issue solved? Can we close this topic?