OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
always_bcc not working at all

From: Christopher DeMarco (cdemarcomd.com.my)
Date: Fri Jul 02 2004 - 02:18:34 CDT


Hi everybody... I can't get always_bcc to work.

Postfix is setup to accept incoming mail for 2 domains and relay them
to a mailbox host. Outgoing mail is accepted for internal networks
and relayed to a relay host in the datacenter. All of this works
great.

always_bcc is in my main.cf, pointing to a mail account on a totally
different server. I've restarted postfix, but I still don't see any
deliveries to that address in /var/log/maillog messages going out to
that account, and of course I don't get any of the bcc'd messages.

Below my .sig, I've attached for your convenience (or annoyance,
depending on how you like getting 4.5K of text unasked-for) my
(main|master).cf and transport files.

Please - what am I doing wrong? Why don't I see *any* messages
getting copied with my always_bcc?

TIA...

--
~ You are in a maze of twisty passages, all alike.

  Christopher DeMarco
  Product Research and Development
  My Directory Sdn Bhd (www.md.com.my)
  cdemarcomd.com.my
  +6013 389 5658

# # ## ### ##### ######## ############# #####################
main.cf
        queue_directory = /var/spool/postfix
        command_directory = /usr/sbin
        daemon_directory = /usr/libexec/postfix
        mail_owner = postfix
        mydomain = pgi.com.my
        myorigin = $mydomain
        mydestination =
        local_recipient_maps =
        unknown_local_recipient_reject_code = 550
        mynetworks = 127.0.0.0/8, 10.100.0.0/16
        relay_domains = $mydomain,musiccanteen.com
        parent_domain_matches_subdomains =
                debug_peer_list smtpd_access_maps
        smtpd_recipient_restrictions =
                permit_mynetworks reject_unauth_destination
        relay_recipent_maps =
        transport_maps = hash:/etc/postfix/transport
        debug_peer_level = 2
        debugger_command =
                 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
                 xxgdb $daemon_directory/$process_name $process_id & sleep 5
        sendmail_path = /usr/sbin/sendmail
        newaliases_path = /usr/bin/newaliases
        mailq_path = /usr/bin/mailq
        setgid_group = postdrop
        html_directory = no
        manpage_directory = /usr/local/man
        sample_directory = /etc/postfix
        readme_directory = no
        virtual_alias_maps = hash:/etc/postfix/virtual
        maximal_queue_lifetime = 2d
        bounce_queue_lifetime = 2d
        content_filter = smtp-amavis:[127.0.0.1]:10025
        receive_override_options = no_address_mappings
        always_bcc = cdemarcomd.com.my

# # ## ### ##### ######## ############# #####################
master.cf
        smtp inet n - n - - smtpd
        pickup fifo n - n 60 1 pickup
        cleanup unix n - n - 0 cleanup
        qmgr fifo n - n 300 1 qmgr
        rewrite unix - - n - - trivial-rewrite
        bounce unix - - n - 0 bounce
        defer unix - - n - 0 bounce
        trace unix - - n - 0 bounce
        verify unix - - n - 1 verify
        flush unix n - n 1000? 0 flush
        proxymap unix - - n - - proxymap
        smtp unix - - n - - smtp
        relay unix - - n - - smtp
        showq unix n - n - - showq
        error unix - - n - - error
        local unix - n n - - local
        virtual unix - n n - - virtual
        lmtp unix - - n - - lmtp
        anvil unix - - n - 1 anvil
        maildrop unix - n n - - pipe
          flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
        old-cyrus unix - n n - - pipe
          flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
        cyrus unix - n n - - pipe
          user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
        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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
        smtp-amavis unix - - n - 2 lmtp
            -o lmtp_data_done_timeout=1200
            -o lmtp_send_xforward_command=yes
            -o disable_dns_lookups=yes

        127.0.0.1:10026 inet n - n - - smtpd
            -o content_filter=
            -o local_recipient_maps=
            -o relay_recipient_maps=
            -o smtpd_restriction_classes=
            -o smtpd_client_restrictions=
            -o smtpd_helo_restrictions=
            -o smtpd_sender_restrictions=
            -o smtpd_recipient_restrictions=permit_mynetworks,reject
            -o mynetworks=127.0.0.0/8
            -o strict_rfc821_envelopes=yes
            -o smtpd_error_sleep_time=0
            -o smtpd_soft_error_limit=1001
            -o smtpd_hard_error_limit=1000

# # ## ### ##### ######## ############# #####################
transport
        pgi.com.my smtp:[10.100.1.6]
        musiccanteen.com smtp:[10.100.1.6]
        * smtp:[202.71.97.155]