Zhang Huangbin avatar Zhang Huangbin committed 3777583

Fixed: Cannot handle alias domain in Postfix per-user bcc.
Thanks Ward De Backer <wdb _at_ stabe.be> for the report.

Comments (0)

Files changed (5)

iRedMail/ChangeLog

+iRedMail-0.8.4:
+    * Fixed:
+        - Cannot handle alias domain in Postfix per-user bcc.
+          Thanks Ward De Backer <wdb _at_ stabe.be> for the report.
+
 iRedMail-0.8.3:
     * Works on Ubuntu 12.10 (quantal).
     * Dovecot will send an email to postmaster@ if user's mailbox is larger

iRedMail/samples/postfix/ldap/recipient_bcc_maps_user.cf

 bind_pw         = RBUuFDo31MJbLkJgrwkaKkmRg7Cldw
 search_base     = ou=Users,domainName=%d,PH_LDAP_BASEDN
 scope           = one
-query_filter    = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
+query_filter    = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=recipientbcc))
 result_attribute= userRecipientBccAddress
 debuglevel      = 0

iRedMail/samples/postfix/ldap/sender_bcc_maps_user.cf

 bind_pw         = RBUuFDo31MJbLkJgrwkaKkmRg7Cldw
 search_base     = ou=Users,domainName=%d,PH_LDAP_BASEDN
 scope           = one
-query_filter    = (&(mail=%s)(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
+query_filter    = (&(|(mail=%s)(&(enabledService=shadowaddress)(shadowAddress=%s)))(objectClass=mailUser)(accountStatus=active)(enabledService=mail)(enabledService=senderbcc))
 result_attribute= userSenderBccAddress
 debuglevel      = 0

iRedMail/samples/postfix/pgsql/recipient_bcc_maps_user.cf

 hosts       = 127.0.0.1
 port        = 5432
 dbname      = vmail
-query       = SELECT recipient_bcc_user.bcc_address FROM recipient_bcc_user,domain WHERE recipient_bcc_user.username='%s' AND recipient_bcc_user.domain='%d' AND recipient_bcc_user.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND recipient_bcc_user.active=1
+query       = SELECT recipient_bcc_user.bcc_address FROM recipient_bcc_user,domain WHERE recipient_bcc_user.username='%s' AND recipient_bcc_user.domain='%d' AND recipient_bcc_user.domain=domain.domain AND recipient_bcc_user.active=1 AND domain.backupmx=0 AND domain.active=1

iRedMail/samples/postfix/pgsql/sender_bcc_maps_user.cf

 hosts       = 127.0.0.1
 port        = 5432
 dbname      = vmail
-query       = SELECT sender_bcc_user.bcc_address FROM sender_bcc_user,domain WHERE sender_bcc_user.username='%s' AND sender_bcc_user.domain='%d' AND sender_bcc_user.domain=domain.domain AND domain.backupmx=0 AND domain.active=1 AND sender_bcc_user.active=1
+query       = SELECT sender_bcc_user.bcc_address FROM sender_bcc_user,domain WHERE sender_bcc_user.username='%s' AND sender_bcc_user.domain='%d' AND sender_bcc_user.domain=domain.domain AND sender_bcc_user.active=1 AND domain.backupmx=0 AND domain.active=1
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.