> > How do I configure always_bcc to bypass amavisd altogether so it isn't > > processed at all? > > > > # postconf -c /etc/postfix-116 always_bcc > > always_bcc = bcc-user > > > > I'm unsure what postconf details I can provide, so I'll instead just > > provide the log entries. > > > > Apr 21 10:58:24 xavier postfix-out/local[2682940]: 19D63305F4A09: > > to=<bcc-u...@example.com>, relay=local, delay=0.01, delays=0.01/0/0/0, > > dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail)
it was delivered - what's the problem?
> If you are running amavis as a content filter, you need the initial > postfix instance (which feeds into amavis) to have > > receive_override_options = no_address_mappings > > and then permit mappings (which include always_bcc) to occur in the 2nd > instance (for the mail that is returned by amavis), for example this > might be in master.cf by: > > 127.0.0.1:10025 inet n - n - - smtpd > # note: absence of no_address_mappings means that address mapping > *will* occur here, including always_bcc > -o receive_override_options=no_unknown_recipient_checks,no_milters > ... Okay, got it, thanks. This is now what I currently have: 127.0.0.1:10025 inet n - n - 16 smtpd -o content_filter= -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_mynetworks,reject -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o smtpd_data_restrictions=reject_unauth_pipelining -o smtpd_end_of_data_restrictions= -o smtpd_restriction_classes= -o mynetworks=127.0.0.0/8,209.111.90.0/24,209.222.85.153/29 -o smtpd_error_sleep_time=0 -o smtpd_soft_error_limit=1001 -o smtpd_hard_error_limit=1000 -o smtpd_client_connection_count_limit=0 -o smtpd_client_connection_rate_limit=0 -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters,no_address_mappings -o local_header_rewrite_clients=
I recomment doing no_address_mappings on port 10025 when receiving mail from amavis, and not globally in the main.cf. On 21.04.21 12:49, Alex wrote:
This actually doesn't appear to have made any difference. What could I be doing wrong?
what difference? What are you trying to do and what does it do you don't expect/want ? -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. 10 GOTO 10 : REM (C) Bill Gates 1998, All Rights Reserved!