如何在iRedMail开源版本中为域创build全部电子邮件别名?
我知道这是可能的通过LDAP,并发现以下说明: http : //iredmail.org/wiki/index.php?title=Addition/OpenLDAP/Catch-all
问题是如何通过phpLDAPAdmin添加这个参数?
我select“在此创build新条目”并selectmailUsertypes。
然后在步骤2中,第一个问题是关于“RDN”,select框“selectRDN属性”。
我应该select什么作为RDN? 应该填写“创build对象”表单的哪些字段?
不幸的是,用户input是完全没有validation的,最终的错误不包含解释什么是错误的
另外当我尝试从iredmail维基phpldapadmin导入示例它给LDIF导入parsing错误说明:有效的DN行是必需的[]
dn行是:dn:mail = @ mydomain.eu,ou =用户,domainName = mydomain.eu,o =域,dc = myserver,dc = pl
在给定的网页上使用示例,使用一个已知的好工具,如ldapmodify来添加用户:
ldapmodify -D admin-dn -w admin-dn-password <<! dn: [email protected],ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org changetype: add accountstatus: active cn: catch-all mail: @a.cn mailForwardingAddress: [email protected] mailForwardingAddress: [email protected] objectclass: inetOrgPerson objectclass: mailUser sn: catch-all uid: catch-all !
完整的工作版本,只需要更改域和密码:
ldapmodify -D cn=Manager,dc=yourdomain,dc=com -w your-admin-password <<! dn: [email protected],ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org changetype: add accountstatus: active cn: catch-all mail: @a.cn mailForwardingAddress: [email protected] mailForwardingAddress: [email protected] objectclass: inetOrgPerson objectclass: mailUser sn: catch-all uid: catch-all !