Linux

如何在 iRedMail 開源版中啟用包羅萬象的電子郵件?

  • April 29, 2015

如何在 iRedMail 開源版中為域創建包羅萬象的電子郵件別名?

我知道這可以通過 LDAP 實現,並找到以下說明:http: //iredmail.org/wiki/index.php ?title=Addition/OpenLDAP/Catch-all

問題是如何通過 phpLDAPAdmin 添加這個參數?

我選擇“在此處創建新條目”並選擇 mailUser 類型。

然後在第 2 步中,第一個問題是關於帶有選擇框“選擇 RDN 屬性”的“RDN”。

我應該選擇什麼作為 RDN?應填寫“創建對象”表單的哪些欄位?

不幸的是,完全沒有驗證使用者輸入,最終錯誤不包含解釋出了什麼問題

此外,當我嘗試從 iredmail wiki phpldapadmin 導入範例時,它會給出 LDIF Import Parse Error Description: A valid dn line is required

$$ $$ dn 行是: dn: mail=@mydomain.eu,ou=Users,domainName=mydomain.eu,o=domains,dc=myserver,dc=pl

使用給定網頁上的範例,使用已知的好工具,例如ldapmodify添加使用者:

ldapmodify -D admin-dn -w admin-dn-password <<!
dn: mail=@a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
changetype: add
accountstatus: active
cn: catch-all
mail: @a.cn
mailForwardingAddress: www@a.cn
mailForwardingAddress: www2@a.cn
objectclass: inetOrgPerson
objectclass: mailUser
sn: catch-all
uid: catch-all
!

完整版,只需要更改域名和密碼:

ldapmodify -D cn=Manager,dc=yourdomain,dc=com -w your-admin-password <<!
dn: mail=@a.cn,ou=Users,domainName=a.cn,o=domains,dc=iredmail,dc=org
changetype: add
accountstatus: active
cn: catch-all
mail: @a.cn
mailForwardingAddress: www@a.cn
mailForwardingAddress: www2@a.cn
objectclass: inetOrgPerson
objectclass: mailUser
sn: catch-all
uid: catch-all
!

引用自:https://serverfault.com/questions/438269