1

Topic: sender bcc maps not working

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

Hi,

i have added the account and enabled the service in ldap , but still when receiving or sending mails , no emails goes to the bcc account
seems the sender_bcc_maps config is ignored

Rgds

----

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

2

Re: sender bcc maps not working

Show us output of commands below:

# postconf sender_bcc_maps
# cd /etc/postfix/ldap/
# for cf in $(ls *cf); do echo $cf; postmap -q 'user@domain.com' ldap:./$cf; done

Note: please replace 'user@domain.com' with the real email address which you want to setup bcc.

3

Re: sender bcc maps not working

postconf sender_bcc_maps :

sender_bcc_maps = ldap:/etc/postfix/ldap/sender_bcc_maps_user.cf, ldap:/etc/postfix/ldap/sender_bcc_maps_domain.cf

command 2 :

catchall_maps.cf
recipient_bcc_maps_domain.cf
archives@domain.com
recipient_bcc_maps_user.cf
relay_domains.cf
sender_bcc_maps_domain.cf
archives@domain.com
sender_bcc_maps_user.cf
sender_login_maps.cf
user@domain.com
transport_maps_domain.cf
transport_maps_user.cf
virtual_alias_maps.cf
virtual_group_maps.cf
virtual_group_members_maps.cf
user@domain.com
virtual_mailbox_domains.cf
virtual_mailbox_maps.cf
vmail1/domain.com/a/g/u/user-2015.02.25.19.07.10//Maildir/


the ldap return correclty the bcc address which is archives@domain.com

however , when sending an email in the log, the rule seems to be ignored

4

Re: sender bcc maps not working

*) Try send one more testing email to this user to trigger bcc, and show us FULL log related to this testing email in Postfix log file (/var/log/maillog or mail.log).
*) Also, any related log in /var/log/dovecot.log and /var/log/dovecot-sieve.log?

5

Re: sender bcc maps not working

there's nothing triggers the bcc .
Sep  7 04:58:08 server2 postfix/cleanup[22350]: 5221A1EE0C23: message-id=<55ED0195.4010101@senderdomain.com>
Sep  7 04:58:08 server2 postfix/qmgr[28008]: 5221A1EE0C23: from=<said@senderdomain.com>, size=2048, nrcpt=1 (queue active)
Sep  7 04:58:08 server2 postfix/smtpd[22343]: disconnect from smtp3.senderdomain.com[x.x.x.x]
Sep  7 04:58:09 server2 postfix/smtpd[22354]: connect from server2.recipientdomain.com[127.0.0.1]
Sep  7 04:58:09 server2 postfix/smtpd[22354]: BD2D51EE0C3A: client=server2.recipientdomain.com[127.0.0.1]
Sep  7 04:58:09 server2 postfix/cleanup[22350]: BD2D51EE0C3A: message-id=<55ED0195.4010101@senderdomain.com>
Sep  7 04:58:09 server2 postfix/smtpd[22354]: disconnect from server2.recipientdomain.com[127.0.0.1]
Sep  7 04:58:09 server2 postfix/qmgr[28008]: BD2D51EE0C3A: from=<said@senderdomain.com>, size=2536, nrcpt=1 (queue active)
Sep  7 04:58:09 server2 amavis[2079]: (02079-14) Passed CLEAN {RelayedInternal}, MYUSERS LOCAL [x.x.x.x]:53903 [41.136.134.97] <said@senderdomain.com> -> <info@
Sep  7 04:58:09 server2 postfix/smtp[22351]: 5221A1EE0C23: to=<info@recipientdomain.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.7, delays=0.31/0.01/0/1.4, dsn=2.0.0,
Sep  7 04:58:09 server2 postfix/qmgr[28008]: 5221A1EE0C23: removed
Sep  7 04:58:10 server2 postfix/pipe[22355]: BD2D51EE0C3A: to=<info@recipientdomain.com>, relay=dovecot, delay=0.27, delays=0.07/0.01/0/0.19, dsn=2.0.0, status=sent (deli
Sep  7 04:58:10 server2 postfix/qmgr[28008]: BD2D51EE0C3A: removed

the same issue is there with always_bc, and user bcc rules


Note : i have changed the domains names

6

Re: sender bcc maps not working

This is weird. Please show us output of command "postconf -n" for troubleshooting.