1

Topic: Catch-all issue

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Debian Squeeze 6.0
- Related log if you're reporting an issue:
====

Hello,

we've got a problem with the catch-all feature, similiar to this issue: http://www.iredmail.org/forum/topic2692 … perly.html
The main difference is that we use LDAP backend, not MySQL, so the solution mentioned on that thread is not applicable to us.

we followed the upgrade tutorials for iRedMail 0.7.4 > 0.8.3:
http://iredmail.org/wiki/index.php?titl … .7.4-0.8.0
http://iredmail.org/wiki/index.php?titl … .8.0-0.8.1
http://iredmail.org/wiki/index.php?titl … .8.1-0.8.2
http://iredmail.org/wiki/index.php?titl … .8.2-0.8.3

but when we changed: http://iredmail.org/wiki/index.php?titl … ice.3Dsmtp
# 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,

....

this causes all emails sent to any address on a given domain to be delivered to the cath-all address. So not just in case the given email account doen't exits, but every time, every incoming email for that domain will be delivered to the catch-all address.


Could you please help? Thanks in advance

----

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

2

Re: Catch-all issue

Could you please show us output of command "postconf -n" to help troubleshoot?

3

Re: Catch-all issue

Thank you for answering.

Here is the output of "postconf -n": http://pastebin.com/trEDELmE

4

Re: Catch-all issue

Your virtual_alias_maps is incorrect.

virtual_alias_maps =
    proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf,
    proxy:ldap:/etc/postfix/ldap/sender_login_maps.cf,
    proxy:ldap:/etc/postfix/ldap/catchall_maps.cf

The correct one should be:

virtual_alias_maps =
    proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf,
    proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf,
    proxy:ldap:/etc/postfix/ldap/catchall_maps.cf

This change is mentioned in upgrade tutorial of 0.8.0 -> 0.8.1:
http://iredmail.org/wiki/index.php?titl … ice.3Dsmtp

5 (edited by poenhegyek 2013-01-05 04:21:32)

Re: Catch-all issue

Thank you for your help. I managed to find out that there was a typo in /etc/postfix/ldap/virtual_group_members_maps.cf file. In the query filter string there was a section like this: "enabledService=delivery" but it has to be: "enabledService=deliver". Now after fixing the typo and changing to these values in main.cf:

virtual_alias_maps = 
    proxy:ldap:/etc/postfix/ldap/virtual_alias_maps.cf,
    proxy:ldap:/etc/postfix/ldap/virtual_group_maps.cf,
    proxy:ldap:/etc/postfix/ldap/virtual_group_members_maps.cf,
    proxy:ldap:/etc/postfix/ldap/catchall_maps.cf

it seems the catch-all function works fine.