| |||||||||||||||||||||||||||||||
|
I use an external scanner ( content_filter = scanner:[localhost]:10025 ) and I am having a problem with duplicate messages triggered via sender_bcc_maps. The fine manual explains why the double-expansion is occurring, and that I need to set receive_override_options=no_address_mappings before I send mail to the content filter. What I am confused about is how exactly should I do this. Do I: A: simply set receive_override_options=no_address_mappings in main.cf, so all smtpd/pickup daemons will inherit it automatically, and only my scanner back-feed smtpd will perform the mapping as it already has -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_mi lters or B: I walk through master.cf and stick -o receive_override_options=no_address_mappings on every smtpd/pickup service My postconf -n and master.cf are included below for further reference Thanks! Peter root@Arzamas:~# postconf -n alias_database = $alias_maps alias_maps = hash:/etc/aliases append_dot_mydomain = no backwards_bounce_logfile_compatibility = no biff = no bounce_queue_lifetime = 24h bounce_size_limit = 20000 config_directory = /etc/postfix content_filter = scanner:[localhost]:10025 hash_queue_depth = 1 hash_queue_names = '' in_flow_delay = 1s inet_interfaces = <withheld> mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 maximal_queue_lifetime = 4d message_size_limit = 26214400 minimal_backoff_time = 15m mydestination = $mydomain localhost.$mydomain localhost mydomain = <withheld> myhostname = <withheld> mynetworks = 127.0.0.0/8 192.168.58.0/24 $inet_interfaces myorigin = $mydomain parent_domain_matches_subdomains = queue_directory = /var/spool/postfix queue_minfree = 100000000 recipient_delimiter = + relay_domains = sender_bcc_maps = hash:/etc/postfix/bcc_watchlist smtp_bind_address = <withheld> smtp_connect_timeout = 5s smtp_connection_reuse_time_limit = 5m smtp_helo_timeout = 1m smtp_mail_timeout = 1m smtp_mx_address_limit = 0 smtp_quit_timeout = 10s smtp_skip_quit_response = yes smtpd_authorized_verp_clients = $mynetworks smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) smtpd_delay_reject = yes smtpd_error_sleep_time = 3s smtpd_hard_error_limit = 20 smtpd_junk_command_limit = 20 smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination smtpd_sender_restrictions = reject_unknown_sender_domain check_sender_access hash:/etc/postfix/config/sender_access.table smtpd_soft_error_limit = 5 smtpd_timeout = 30s syslog_name = postfix unknown_address_reject_code = 550 unverified_recipient_reject_code = 550 unverified_sender_reject_code = 550 virtual_mailbox_domains = /etc/postfix/config/dbmail_domains.list virtual_mailbox_maps = mysql:/etc/postfix/dbmail_address_list.cf virtual_transport = dbmail-lmtp:[localhost]:24 root@Arzamas:~# ============================= ============================= master.cf ============================= ============================= # # Postfix master process configuration file. For details on the format # of the file, see the Postfix master(5) manual page. # # ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - - 300 1 qmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - - - - smtp # When relaying mail as backup MX, disable fallback_relay to avoid MX loops relay unix - - - - - smtp -o fallback_relay= showq unix n - - - - showq error unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache # ==================================================================== # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # # Many of the following services use the Postfix pipe(8) delivery # agent. See the pipe(8) man page for information about ${recipient} # and other message envelope options. # ==================================================================== # # maildrop. See the Postfix MAILDROP_README file for details. # Also specify in main.cf: maildrop_destination_recipient_limit=1 # maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient} # # See the Postfix UUCP_README file for configuration details. # uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) # # Other external delivery methods. # 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 - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} # dbmail transport dbmail-lmtp unix - - - - - lmtp -o disable_dns_lookups=yes # virus scanning transports scanner unix - - - - 3 smtp -o smtp_send_xforward_command=yes -o smtp_data_done_timeout=900 -o disable_dns_lookups=yes -o max_use=20 localhost:10026 inet n - - - - smtpd -o content_filter= -o inet_interfaces=127.0.0.1 -o disable_dns_lookups=yes -o smtpd_delay_reject=no -o smtpd_client_restrictions=permit_inet_interfaces,reject -o smtpd_client_restrictions= -o smtpd_helo_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_inet_interfaces,reject -o smtpd_data_restrictions= -o smtpd_end_of_data_restrictions= -o smtpd_etrn_restrictions= -o smtpd_hard_error_limit=19 -o smtpd_soft_error_limit=20 -o smtpd_error_sleep_time=0 -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_mi lters -o local_header_rewrite_clients=
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com