1

Topic: LDAP Catch all setting

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

I had researched the way to enable Catch all in iRedMail 0.9.2 with LDAP back end with no luck
The below article is not accessible (link does not work):

http://www.iredmail.org/wiki/index.php? … edirect=no

Please point me a detail guide available for this matter with thanks.

Best regards,

----

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

2

Re: LDAP Catch all setting

http://www.iredmail.org/wiki/ was retired, all documents are now available here:
http://www.iredmail.org/docs/

And here's the document you're looking for:
http://www.iredmail.org/docs/ldap.add.catch-all.html

3

Re: LDAP Catch all setting

ZhangHuangbin wrote:

http://www.iredmail.org/wiki/ was retired, all documents are now available here:
http://www.iredmail.org/docs/

And here's the document you're looking for:
http://www.iredmail.org/docs/ldap.add.catch-all.html

Hi Zhang,

I had done the followings to enable catchall email:

1. I create one account with iRedMail Admin: abc@example.com
2. I add the following file to the ~ folder: catchall.ldif

dn: mail=@example.com,ou=Users,domainName=example.com,o=domains,dc=example,dc=com
accountstatus: active
cn: catch-all
mail: @example.com
mailForwardingAddress: abc@example.com
objectclass: inetOrgPerson
objectclass: mailUser
sn: catch-all
uid: catch-all

3. I issue the following command to the shell:

ldapadd -x -D "cn=vmailadmin,dc=example,dc=com" -w "LDAP Admin password" -f catchall.ldif


Is it OK or I had missed any steps?

Thank you.

4

Re: LDAP Catch all setting

And what should I do to remove the abc@example.com as catchall email and replace it with def@example.com?

Thank you.

5

Re: LDAP Catch all setting

quyhoang wrote:

And what should I do to remove the abc@example.com as catchall email and replace it with def@example.com?

Possible ways:

*) Delete existing catch-all account, re-add it with 'def@example.com'.
*) Replace 'abc@example.com' by 'def@exmaple.com' directly. Without iRedAdmin-Pro, you can still use phpldapadmin for this, it's easy. If you don't want to use phpldapadmin, try 'ldapvi' package/command on CentOS/Debian/Ubuntu, it's just like a Vim editor, you can change LDAP data directly, then save and quit ldapvi editor, very handy, i like it so much.