Thanks to all of you for your help and suggestions!
My setup seems to be working not that I have added the "-o receive_override_options=no_address_mappingsā to all but one of the delivery stages in the postfix master.cf file.
Austin Witmer
On Jun 18, 2022, at 9:15 AM, Austin Witmer austin96@emypeople.net wrote:
Here is the output of postconf -M:
Austin Witmer
pickup unix n - y 60 1 pickup cleanup unix n - y - 0 cleanup qmgr unix n - n 300 1 qmgr tlsmgr unix - - y 1000? 1 tlsmgr rewrite unix - - y - - trivial-rewrite bounce unix - - y - 0 bounce defer unix - - y - 0 bounce trace unix - - y - 0 bounce verify unix - - y - 1 verify flush unix n - y 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - y - - smtp relay unix - - y - - smtp -o syslog_name=postfix/$service_name showq unix n - y - - showq error unix - - y - - error retry unix - - y - - error discard unix - - y - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - y - - lmtp anvil unix - - y - 1 anvil scache unix - - y - 1 scache postlog unix-dgram n - n - 1 postlogd smtp inet n - - - - smtpd -o content_filter=gpgit-pipe -o cleanup_service_name=subcleanup submission inet n - n - - smtpd -o syslog_name=postfix/submission -o smtpd_tls_security_level=encrypt -o smtpd_sasl_auth_enable=yes -o smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -o smtpd_sasl_type=dovecot -o smtpd_sasl_path=private/auth -o content_filter=gpgit-pipe -o cleanup_service_name=subcleanup -o smtpd_enforce_tls=yes smtps inet n - - - - smtpd -o syslog_name=postfix/smtps -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes -o smtpd_client_restrictions=permit_sasl_authenticated,reject -o milter_macro_daemon_name=ORIGINATING -o content_filter=gpgit-pipe -o cleanup_service_name=subcleanup dovecot unix - n n - - pipe flags=DRhu user=email:email argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} policy-spf unix - n n - - spawn user=nobody argv=/usr/bin/policyd-spf maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} amavis unix - - - - 2 smtp -o smtp_send_xforward_command=yes -o smtp_tls_security_level=none -o cleanup_service_name=subcleanup -o receive_override_options=no_address_mappings 127.0.0.1:10025 inet n - - - - smtpd -o content_filter= -o receive_override_options=no_milters gpgit-pipe unix - n n - - pipe flags=Rq user=gpgit argv=/var/opt/gpgit/gpgit_postfix.sh -oi -f ${sender} ${recipient} subcleanup unix n - - - 0 cleanup -o header_checks=pcre:/etc/postfix/smtp_header_checks.pcre
On Jun 18, 2022, at 5:47 AM, Markus Winkler ml@irmawi.de wrote:
On 18.06.22 12:33, Gedalya wrote:
On 6/17/22 22:18, Austin Witmer wrote:
For some reason I am now getting five duplicate emails placed in my sent folder You want to apply this rule only once, perhaps on the way back in from amavisd. This can probably be accomplished by applying the sender_bcc_maps to a specific listener in master.cf, for the general idea see examples here:
If it's a usual Amavis setup then there should be an additional smtpd process listening on port 10026 for example. And there Austin could use:
-o receive_override_options=no_address_mappings
to selectively turn off automatic BCC recipients as stated in:
@Austin: you could send us the output of 'postconf -M' so we could have a look at your master.cf just to be sure.
Kind regards, Markus