Topic: postfix/proxymap permission issue
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.5-1
- Linux/BSD distribution name and version: centos 7.2.1511 (openvz)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue: /var/log/maillog
====
I did a new iRedMail installation on a hosted virtual centos 7.2 box.
After the installation I had some trouble with slapd an insufficient rights in /etc/openldap. slapd wan not able to start and therefor the installer was not able to create the necessary LDAP entries.
I could fix the rights issue with the following:
chown -R ldap:ldap /etc/openldap
To get the missing LDAP entries I've started the iRedMail installation again.
Everything went fine, just had to change the MySQL password of the iRedAdmin settings.py back to the one from the first installation, cause MySQL kept the old ones.
I'm able to login to iRedMail admin and LDAP looks fine too.
The issue I've is, that I'm not able to get postfix working.
When I start de demon I'll get the following errors in /var/log/maillog:
postfix/proxymap[5480]: error: open /etc/postfix/ldap/relay_domains.cf: Permission denied
Jun 14 14:24:01 h2580380 sSMTP[5488]: Unable to locate mail
Jun 14 14:24:01 h2580380 sSMTP[5488]: Cannot open mail:25
The permission are all correct :
-rw-r----- 1 root postfix 425 14. Jun 10:19 catchall_maps.cf
-rw-r----- 1 root postfix 489 14. Jun 10:19 recipient_bcc_maps_domain.cf
-rw-r----- 1 root postfix 533 14. Jun 10:19 recipient_bcc_maps_user.cf
-rw-r----- 1 root postfix 496 14. Jun 12:25 relay_domains.cf
-rw-r----- 1 root postfix 483 14. Jun 10:19 sender_bcc_maps_domain.cf
-rw-r----- 1 root postfix 527 14. Jun 10:19 sender_bcc_maps_user.cf
-rw-r----- 1 root postfix 450 14. Jun 10:19 sender_dependent_relayhost_maps_domain.cf
-rw-r----- 1 root postfix 442 14. Jun 10:19 sender_dependent_relayhost_maps_user.cf
-rw-r----- 1 root postfix 483 14. Jun 10:19 sender_login_maps.cf
-rw-r----- 1 root postfix 447 14. Jun 10:19 transport_maps_domain.cf
-rw-r----- 1 root postfix 439 14. Jun 10:19 transport_maps_user.cf
-rw-r----- 1 root postfix 523 14. Jun 10:19 virtual_alias_maps.cf
-rw-r----- 1 root postfix 588 14. Jun 10:19 virtual_group_maps.cf
-rw-r----- 1 root postfix 486 14. Jun 10:19 virtual_group_members_maps.cf
-rw-r----- 1 root postfix 499 14. Jun 10:19 virtual_mailbox_domains.cf
-rw-r----- 1 root postfix 528 14. Jun 10:19 virtual_mailbox_maps.cf
I'm also able to access LDAP with the configured relay_domains.cf credentials :
ldapsearch -x -D 'cn=vmail,dc=xyz,dc=net' -W -b "o=domains,dc=xyz,dc=net" dn
# extended LDIF
#
# LDAPv3
# base <o=domains,dc=xyz,dc=net> with scope subtree
# filter: (objectclass=*)
# requesting: dn
#
.
.
.
# search result
search: 2
result: 0 Success
# numResponses: 8
# numEntries: 7
I don't have any clue where it stuck. Anyone have a clue where I can investigate more?
Do I have to take care about other config files regarding a MySQL password change?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.