I need to set bcc for messages from specified sender to specified recipient.


smtpd_sender_restrictions = <...>
check_sender_access mysql:/etc/postfix/mysql/mysql-sender.cf
<...>


For my sender adress vl...@aaaaaaa.org<mailto:1...@xxx.org> it resolves 'FILTER smtp:[127.0.0.1]:10027', logging says that trigger is turning:

<vl...@aaaaaaa.org>: Sender address triggers FILTER smtp:[127.0.0.1]:10027;

I have set this trigger for the specification of non-default options with key -o, I need to override always_bcc option:

127.0.0.1:10027 inet n - n - 10  smtpd
    -o content_filter=
    -o smtpd_sender_restrictions=
    -o always_bcc=c...@aaaaaaa.org

But instead of c...@aaaaaaa.org <mailto:2...@xxx.org><mailto:2...@xxx.org> the message copy sended to bac...@aaaaaaa.org<mailto:defa...@xxx.org>, which globaly set in my configuration file main.cf (always_bcc=bac...@aaaaaaa.org)

Actually, I need to override recipient_bcc_maps option, but their override not work as so as always_bcc. In this message I use always_bcc option because that don't require to use any additional map.

How to make it work?

postconf -n: http://pastebin.com/EZn8T4m9
log with smtpd -v for my 127.0.0.1:10027 instance: http://pastebin.com/nLkcPecj

Reply via email to