Upgrade/iRedMail/0.8.0-0.8.1
From iRedMail
(Difference between revisions)
(→Deliver emails to mail list members without enabledService=smtp) |
(→Deliver emails to mail list members without enabledService=smtp) |
||
| Line 25: | Line 25: | ||
# ---- On Linux and FreeBSD ---- | # ---- On Linux and FreeBSD ---- | ||
# chown root:postfix virtual_group_members_maps.cf | # chown root:postfix virtual_group_members_maps.cf | ||
| + | # chmod 0640 virtual_group_members_maps.cf | ||
# ---- On OpenBSD ---- | # ---- On OpenBSD ---- | ||
# chown root:_postfix virtual_group_members_maps.cf | # chown root:_postfix virtual_group_members_maps.cf | ||
| + | # chmod 0640 virtual_group_members_maps.cf | ||
</pre>}} | </pre>}} | ||
* Restarting Postfix service is required. | * Restarting Postfix service is required. | ||
Revision as of 10:47, 16 May 2012
Contents |
THIS IS STILL A DRAFT, DO NOT APPLY BELOW STEPS.
OpenLDAP backend special
Deliver emails to mail list members without enabledService=smtp
With default Postfix settings in iRedMail-0.7.4 and earlier versions, if a mail user is not allowed to use SMTP service to send out email (without enabledService=smtp), he/she cannot receive emails which delivered to the mail lists which he/she is belong to. Below steps fix this issue.
- Edit Postfix config file, main.cf, update virtual_alias_maps to replace sender_login_maps.cf by virtual_group_members_maps.cf:
- On Linux and OpenBSD, it's /etc/postfix/main.cf.
- On FreeBSD, it's /usr/local/etc/postfix/main.cf. And you should use /usr/local/etc/postfix/ldap/virtual_group_members_maps.cf in Postfix setting described below.
| File: main.cf |
# OLD SETTING #virtual_alias_maps = ..., proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf, ... # NEW SETTING virtual_alias_maps = ..., proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf, ... |
- Create new file virtual_group_members_maps.cf:
- Copy sender_login_maps.cf to virtual_group_members_maps.cf.
- Edit virtual_group_members_maps.cf, remove (enabledService=smtp) (with brackets, yes) and save it.
- Fix file permission:
| Terminal: |
# ---- On Linux and FreeBSD ---- # chown root:postfix virtual_group_members_maps.cf # chmod 0640 virtual_group_members_maps.cf # ---- On OpenBSD ---- # chown root:_postfix virtual_group_members_maps.cf # chmod 0640 virtual_group_members_maps.cf |
- Restarting Postfix service is required.
