Loading ...
Sorry, an error occurred while loading the content.
 

recipient bcc

Expand Messages
  • Jason Hirsh
    I am trying to have email coming into postfix be delivered to two mail accouts From what I understand the subject command can do that here is my postconf-n
    Message 1 of 6 , Sep 27, 2012
      I am trying to have email coming into postfix be delivered to two mail accouts

      From what I understand the subject command can do that here is my postconf-n






      postconf-n

      body_checks = regexp:/usr/local/etc/postfix/body_check
      bounce_size_limit = 50000
      command_directory = /usr/local/sbin
      config_directory = /usr/local/etc/postfix
      content_filter = smtp-amavis:[127.0.0.1]:10024
      daemon_directory = /usr/local/libexec/postfix
      daemon_timeout = 36000s
      data_directory = /var/db/postfix
      debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
      delay_warning_time = 2h
      disable_vrfy_command = yes
      fallback_relay =
      header_checks = regexp:/usr/local/etc/postfix/header_checks
      home_mailbox = Maildir/
      html_directory = /usr/local/share/doc/postfix
      inet_protocols = ipv4
      mail_owner = postfix
      mail_spool_directory = /var/mail/vmail
      mailq_path = /usr/local/bin/mailq
      manpage_directory = /usr/local/man
      maps_rbl_domains = bl.spamcop.net
      mydestination = localhost.$mydomain, localhost
      mydomain = theoceanwindow-bv.com
      mynetworks = 127.0.0.0/32, 209.160.65.133, 209.160.68.112, kasdivi.is-a-geek.com
      myorigin = $mydomain
      newaliases_path = /usr/local/bin/newaliases
      queue_directory = /var/spool/postfix
      readme_directory = /usr/local/share/doc/postfix
      receive_override_options = no_address_mappings
      recipient_bcc_maps = hash:/usr/local/etc/postfix/recipient_bcc
      relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
      sample_directory = /usr/local/etc/postfix
      sendmail_path = /usr/local/sbin/sendmail
      setgid_group = maildrop
      smtp_tls_note_starttls_offer = yes
      smtpd_banner = $myhostname ESMTP
      smtpd_delay_reject = yes
      smtpd_helo_required = yes
      smtpd_helo_restrictions = permit_sasl_authenticated,check_helo_access hash:/usr/local/etc/postfix/helo_access,reject_invalid_hostname,permit
      smtpd_recipient_restrictions = permit_mynetworks, hash:/usr/local/etc/postfix/recipient_access,permit_sasl_authenticated, reject_unauth_destination,check_client_access hash:/usr/local/etc/postfix/rbl_override,reject_rbl_client zen.spamhaus.org,reject_rbl_client bl.spam,permit_sasl_authenticated
      smtpd_sasl_auth_enable = yes
      smtpd_sasl_local_domain = $myhostnamebroken_sasl_auth_clients = yes
      smtpd_sasl_path = private/auth
      smtpd_sasl_type = dovecot
      smtpd_sender_restrictions = permit_sasl_authenticated,reject_unknown_sender_domain,reject_unauthenticated_sender_login_mismatch,permit_mynetworks
      smtpd_tls_CAfile = /usr/local/etc/keys/root.crt
      smtpd_tls_cert_file = /usr/local/etc/keys/server.cert
      smtpd_tls_key_file = /usr/local/etc/keys/private.key
      smtpd_tls_loglevel = 3
      smtpd_tls_received_header = yes
      smtpd_tls_session_cache_timeout = 3600s
      smtpd_use_tls = yes
      tls_random_source = dev:/dev/urandom
      unknown_local_recipient_reject_code = 550
      virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
      virtual_gid_maps = static:1000
      virtual_mailbox_base = /var/mail/vmail
      virtual_mailbox_domains = /usr/local/etc/postfix/virtual_domains
      virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox
      virtual_minimum_uid = 100
      virtual_uid_maps = static:1003








      recipient_bcc
      iinfo@... diane@...
      jason@... admin@...


      any thoughts where I messed up??
    • jeffrey j donovan
      ... Greetings, Where is your final destination ? local or remote. try adding your servers FQDN to my destination for local delivery. mydestination =
      Message 2 of 6 , Sep 27, 2012
        On Sep 27, 2012, at 8:29 PM, Jason Hirsh <hirshj@...> wrote:

        > I am trying to have email coming into postfix be delivered to two mail accouts
        >
        > From what I understand the subject command can do that here is my postconf-n
        >

        Greetings,

        Where is your final destination ? local or remote.

        try adding your servers FQDN to my destination for local delivery.

        mydestination = smtphost.example.com, localhost.example.com, localhost
        i also don't see these commands;
        alias_database = hash:/etc/aliases
        alias_maps = hash:/etc/aliases
        mailbox_command
        local_recipient_maps


        > postconf-n
        >
        > body_checks = regexp:/usr/local/etc/postfix/body_check
        > bounce_size_limit = 50000
        > command_directory = /usr/local/sbin
        > config_directory = /usr/local/etc/postfix
        > content_filter = smtp-amavis:[127.0.0.1]:10024

        -- this sends mail to content filter , what happens after that ? does it forward directly to the domain or send it back to postfix for delivery ?

        cat /etc/amavisd.conf | grep forward

        > daemon_directory = /usr/local/libexec/postfix
        > daemon_timeout = 36000s
        > data_directory = /var/db/postfix
        > debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
        > delay_warning_time = 2h
        > disable_vrfy_command = yes
        > fallback_relay =
        > header_checks = regexp:/usr/local/etc/postfix/header_checks
        > home_mailbox = Maildir/
        > html_directory = /usr/local/share/doc/postfix
        > inet_protocols = ipv4
        > mail_owner = postfix
        > mail_spool_directory = /var/mail/vmail
        > mailq_path = /usr/local/bin/mailq
        > manpage_directory = /usr/local/man
        > maps_rbl_domains = bl.spamcop.net
        > mydestination = localhost.$mydomain, localhost
        > mydomain = theoceanwindow-bv.com
        > mynetworks = 127.0.0.0/32, 209.160.65.133, 209.160.68.112, kasdivi.is-a-geek.com
        > myorigin = $mydomain
        > newaliases_path = /usr/local/bin/newaliases
        > queue_directory = /var/spool/postfix
        > readme_directory = /usr/local/share/doc/postfix
        > receive_override_options = no_address_mappings
        > recipient_bcc_maps = hash:/usr/local/etc/postfix/recipient_bcc
        > relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients

        > <snip>
        > tls_random_source = dev:/dev/urandom
        > unknown_local_recipient_reject_code = 550
        > virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

        what do these say?

        > virtual_gid_maps = static:1000
        > virtual_mailbox_base = /var/mail/vmail
        > virtual_mailbox_domains = /usr/local/etc/postfix/virtual_domains
        > virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox
        > virtual_minimum_uid = 100
        > virtual_uid_maps = static:1003

        >
        >
        >
        >
        >
        >
        > recipient_bcc
        > iinfo@... diane@...
        > jason@... admin@...
        >
        >
        > any thoughts where I messed up??
        >
        >
        >
        >
      • Jason Hirsh
        ... added no change ... I was not using those in postfix ... that did not show any active commands ... virtual is empty
        Message 3 of 6 , Sep 27, 2012
          On Sep 27, 2012, at 8:49 PM, jeffrey j donovan wrote:

          >
          > On Sep 27, 2012, at 8:29 PM, Jason Hirsh <hirshj@...> wrote:
          >
          >> I am trying to have email coming into postfix be delivered to two mail accouts
          >>
          >> From what I understand the subject command can do that here is my postconf-n
          >>
          >
          > Greetings,
          >
          > Where is your final destination ? local or remote.
          >
          > try adding your servers FQDN to my destination for local delivery.
          >
          > mydestination = smtphost.example.com, localhost.example.com, localhost

          added no change
          > i also don't see these commands;
          > alias_database = hash:/etc/aliases
          > alias_maps = hash:/etc/aliases
          > mailbox_command
          > local_recipient_maps
          >

          I was not using those in postfix
          >
          >> postconf-n
          >>
          >> body_checks = regexp:/usr/local/etc/postfix/body_check
          >> bounce_size_limit = 50000
          >> command_directory = /usr/local/sbin
          >> config_directory = /usr/local/etc/postfix
          >> content_filter = smtp-amavis:[127.0.0.1]:10024
          >
          > -- this sends mail to content filter , what happens after that ? does it forward directly to the domain or send it back to postfix for delivery ?
          >
          > cat /etc/amavisd.conf | grep forward

          that did not show any active commands
          >
          >> daemon_directory = /usr/local/libexec/postfix
          >> daemon_timeout = 36000s
          >> data_directory = /var/db/postfix
          >> debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5
          >> delay_warning_time = 2h
          >> disable_vrfy_command = yes
          >> fallback_relay =
          >> header_checks = regexp:/usr/local/etc/postfix/header_checks
          >> home_mailbox = Maildir/
          >> html_directory = /usr/local/share/doc/postfix
          >> inet_protocols = ipv4
          >> mail_owner = postfix
          >> mail_spool_directory = /var/mail/vmail
          >> mailq_path = /usr/local/bin/mailq
          >> manpage_directory = /usr/local/man
          >> maps_rbl_domains = bl.spamcop.net
          >> mydestination = localhost.$mydomain, localhost
          >> mydomain = theoceanwindow-bv.com
          >> mynetworks = 127.0.0.0/32, 209.160.65.133, 209.160.68.112, kasdivi.is-a-geek.com
          >> myorigin = $mydomain
          >> newaliases_path = /usr/local/bin/newaliases
          >> queue_directory = /var/spool/postfix
          >> readme_directory = /usr/local/share/doc/postfix
          >> receive_override_options = no_address_mappings
          >> recipient_bcc_maps = hash:/usr/local/etc/postfix/recipient_bcc
          >> relay_recipient_maps = hash:/usr/local/etc/postfix/relay_recipients
          >
          >> <snip>
          >> tls_random_source = dev:/dev/urandom
          >> unknown_local_recipient_reject_code = 550
          >> virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
          >
          > what do these say?

          virtual is empty
          >
          >> virtual_gid_maps = static:1000
          >> virtual_mailbox_base = /var/mail/vmail
          >> virtual_mailbox_domains = /usr/local/etc/postfix/virtual_domains
          >> virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox
          >> virtual_minimum_uid = 100
          >> virtual_uid_maps = static:1003
          >
          >>
          >>
          >>
          >>
          >>
          >>
          >> recipient_bcc
          >> iinfo@... diane@...
          >> jason@... admin@...
          >>
          >>
          >> any thoughts where I messed up??
          >>
          >>
          >>
          >>
          >
        • jeffrey j donovan
          ... ? -- Where is the Imap/pop server ? also what os are you running this on ? ... take some time and read what they do. you should at least specify system
          Message 4 of 6 , Sep 27, 2012
            On Sep 27, 2012, at 9:08 PM, Jason Hirsh <hirshj@...> wrote:

            >
            > On Sep 27, 2012, at 8:49 PM, jeffrey j donovan wrote:
            >
            >>
            >> On Sep 27, 2012, at 8:29 PM, Jason Hirsh <hirshj@...> wrote:
            >>
            >>> I am trying to have email coming into postfix be delivered to two mail accouts
            >>>
            >>> From what I understand the subject command can do that here is my postconf-n
            >>>
            >>
            >> Greetings,
            >>
            >> Where is your final destination ? local or remote.

            ? -- Where is the Imap/pop server ?
            also what os are you running this on ?

            >
            >> i also don't see these commands;
            >> alias_database = hash:/etc/aliases
            >> alias_maps = hash:/etc/aliases
            >> mailbox_command
            >> local_recipient_maps
            >>
            >
            > I was not using those in postfix

            take some time and read what they do. you should at least specify system root and postmaster and abuse.
            >>
            >> cat /etc/amavisd.conf | grep forward
            >
            > that did not show any active commands

            your path may different. depending on your OS.
            here is a sample typical linux location /etc/amavis/conf.d/

            >>> virtual_alias_maps = hash:/usr/local/etc/postfix/virtual
            >>
            >> what do these say?
            >
            > virtual is empty
            >>

            okay ,

            take some time and read up what virtual alias maps do for you.
            http://www.postfix.org/VIRTUAL_README.html

            basically it looks like your system is delivering into amavis back to postfix. but at that point it has no clue what to do.
            for debug purposes I would comment out the content filter and watch your postfix logs typical location /var/log/mail.log.
            #content_filter = smtp-amavis:[127.0.0.1]:10024

            post your your logs with content filter running and then without. from there it should be pretty simple to see where it's going.

            hope this helps
            -j
          • Jason Hirsh
            ... dovecot ... i handle all those in virtual_mailbox ... I can find the file it is that all forwards are commented out which I understand is consistent with
            Message 5 of 6 , Sep 28, 2012

              On Sep 27, 2012, at 10:07 PM, jeffrey j donovan wrote:


              On Sep 27, 2012, at 9:08 PM, Jason Hirsh <hirshj@...> wrote:


              On Sep 27, 2012, at 8:49 PM, jeffrey j donovan wrote:


              On Sep 27, 2012, at 8:29 PM, Jason Hirsh <hirshj@...> wrote:

              I am trying to have email coming into postfix be delivered to two mail accouts

              From what I understand the subject command can do that here is my postconf-n


              Greetings,

              Where is your final destination ? local or remote.

              ? -- Where is the Imap/pop server ?
              also what os are you running this on ?


              dovecot


              i also don't see these commands;
              alias_database = hash:/etc/aliases
              alias_maps = hash:/etc/aliases
              mailbox_command
              local_recipient_maps


              I was not using those in postfix

              take some time and read what they do. you should at least specify system root and postmaster and abuse.





              i handle all those in virtual_mailbox

              cat /etc/amavisd.conf | grep forward

              that did not show any active commands

              your path may different.  depending on your OS.
              here is a sample typical linux location  /etc/amavis/conf.d/


              I can find the file it is that all forwards are commented out which I understand is consistent
              with running it in default   

              virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

              what do these say?

              virtual is empty


              okay ,

              take some time and read up what virtual alias maps do for you.
              http://www.postfix.org/VIRTUAL_README.html

              basically it looks like your system is delivering into amavis back to postfix. but at that point it has no clue what to do.
              for debug purposes I would comment out the content filter and watch your postfix logs typical location /var/log/mail.log.
              #content_filter = smtp-amavis:[127.0.0.1]:10024

              post your your logs with content filter running and then without. from there it should be pretty simple to see where it's going.

              hope this helps


              with content filter (yes there is a age difference of virtualdb but it is empty)

              Sep 28 08:43:49 tuna postfix/smtpd[93697]: disconnect from nm5-vm1.bullet.mail.ne1.yahoo.com[98.138.91.32]
              Sep 28 08:43:49 tuna amavis[92918]: (92918-02) dkim: VALID Author+Sender+MailFrom signature by i=@..., From: <hirshj@...>, a=rsa-sha256, c=relaxed/relaxed, s=s1024, d=att.net
              Sep 28 08:43:49 tuna amavis[92918]: (92918-02) Checking: TD-qq03tA7Nm [98.138.91.32] <hirshj@...> -> <jason@...>
              Sep 28 08:43:49 tuna amavis[92918]: (92918-02) p001 1 Content-Type: text/plain, size: 13 B, name: 
              Sep 28 08:43:54 tuna amavis[92918]: (92918-02) SPAM-TAG, <hirshj@...> -> <jason@...>, No, score=-0.1 required=6.31 tests=[BAYES_40=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham
              Sep 28 08:43:54 tuna postfix/smtpd[93703]: warning: database /usr/local/etc/postfix/virtual.db is older than source file /usr/local/etc/postfix/virtual
              Sep 28 08:43:54 tuna postfix/smtpd[93703]: initializing the server-side TLS engine
              Sep 28 08:43:54 tuna postfix/smtpd[93703]: connect from unknown[127.0.0.1]
              Sep 28 08:43:54 tuna postfix/smtpd[93703]: 2237A5C63: client=unknown[127.0.0.1]
              Sep 28 08:43:54 tuna postfix/cleanup[93090]: 2237A5C63: message-id=<C89E6213-FD6B-447B-B8C6-2C6D6AFDA5C8@...>
              Sep 28 08:43:54 tuna postfix/smtpd[93703]: disconnect from unknown[127.0.0.1]
              Sep 28 08:43:54 tuna postfix/qmgr[83804]: 2237A5C63: from=<hirshj@...>, size=3046, nrcpt=1 (queue active)
              Sep 28 08:43:54 tuna amavis[92918]: (92918-02) FWD via SMTP: <hirshj@...> -> <jason@...>,BODY=7BIT 250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2237A5C63
              Sep 28 08:43:54 tuna amavis[92918]: (92918-02) Passed CLEAN, [98.138.91.32] [98.138.226.31] <hirshj@...> -> <jason@...>, Message-ID: <C89E6213-FD6B-447B-B8C6-2C6D6AFDA5C8@...>, mail_id: TD-qq03tA7Nm, Hits: -0.1, size: 2198, queued_as: 2237A5C63, dkim_id=@..., 4968 ms
              Sep 28 08:43:54 tuna postfix/virtual[93704]: 2237A5C63: to=<jason@...>, relay=virtual, delay=0.02, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
              Sep 28 08:43:54 tuna amavis[92918]: (92918-02) TIMING-SA total 4743 ms - parse: 2 (0.0%), extract_message_metadata: 23 (0.5%), poll_dns_idle: 1.06 (0.0%), get_uri_detail_list: 0.72 (0.0%), tests_pri_-1000: 9 (0.2%), tests_pri_-950: 1.21 (0.0%), tests_pri_-900: 1.33 (0.0%), tests_pri_-400: 23 (0.5%), check_bayes: 22 (0.5%), tests_pri_0: 4594 (96.9%), check_dcc: 4321 (91.1%), check_razor2: 227 (4.8%), check_pyzor: 0.30 (0.0%), tests_pri_500: 3 (0.1%), learn: 63 (1.3%), get_report: 1.44 (0.0%)
              Sep 28 08:43:54 tuna postfix/qmgr[83804]: 2237A5C63: removed
              Sep 28 08:43:54 tuna postfix/lmtp[93699]: ECE8E5C60: to=<jason@...>, relay=127.0.0.1[127.0.0.1]:10024, delay=5.3, delays=0.27/0.01/0/5, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 2237A5C63)
              Sep 28 08:43:54 tuna amavis[92918]: (92918-02) TIMING [total 4975 ms] - SMTP greeting: 2 (0%)0, SMTP LHLO: 1 (0%)0, SMTP pre-MAIL: 0 (0%)0, SMTP pre-DATA-flush: 3 (0%)0, SMTP DATA: 98 (2%)2, check_init: 1 (0%)2, digest_hdr: 5 (0%)2, digest_body_dkim: 6 (0%)2, gen_mail_id: 3 (0%)2, mime_decode: 27 (1%)3, get-file-type1: 15 (0%)3, decompose_part: 1 (0%)3, parts_decode: 0 (0%)3, check_header: 2 (0%)3, AV-scan-1: 8 (0%)3, spam-wb-list: 3 (0%)4, SA parse: 4 (0%)4, SA check: 4736 (95%)99, update_cache: 7 (0%)99, decide_mail_destiny: 1 (0%)99, fwd-connect: 27 (1%)100, fwd-mail-pip: 2 (0%)100, fwd-rcpt-pip: 0 (0%)100, fwd-data-chkpnt: 0 (0%)100, write-header: 1 (0%)100, fwd-data-contents: 0 (0%)100, fwd-end-chkpnt: 3 (0%)100, prepare-dsn: 1 (0%)100, main_log_entry: 10 (0%)100, update_snmp: 3 (0%)100, SMTP pre-response: 0 (0%)100, SMTP response: 0 (0%)100, unlink-2-files: 0 (0%)100, rundown: 1 (0%)100
              Sep 28 08:43:54 tuna postfix/qmgr[83804]: ECE8E5C60: removed
              without

              Sep 28 08:54:26 tuna postfix/cleanup[93809]: 25D125C68: message-id=<3FA06BA4-84E1-4FCF-92F8-CD7188623D3A@...>
              Sep 28 08:54:26 tuna postfix/qmgr[93801]: 25D125C68: from=<hirshj@...>, size=2190, nrcpt=1 (queue active)
              Sep 28 08:54:26 tuna postfix/virtual[93925]: 25D125C68: to=<jason@...>, relay=virtual, delay=0.09, delays=0.09/0/0/0, dsn=2.0.0, status=sent (delivered to maildir)
              Sep 28 08:54:26 tuna postfix/qmgr[93801]: 25D125C68: removed



              I sas some discussion about order of preference in postfix hitting the databases/. perhaps my use of virtual_mailbox to handle everything is the root of my problesm


              -j


            • mouss
              ... did you remember to disable this after the filter in master.cf ? http://www.postfix.org/FILTER_README.html#advanced_filter
              Message 6 of 6 , Sep 30, 2012
                Le 28/09/2012 02:29, Jason Hirsh a écrit :
                > I am trying to have email coming into postfix be delivered to two mail accouts
                >
                > From what I understand the subject command can do that here is my postconf-n
                >
                >
                >
                >
                >
                >
                > postconf-n
                >
                > [snip]
                > receive_override_options = no_address_mappings

                did you remember to disable this after the filter in master.cf ?
                http://www.postfix.org/FILTER_README.html#advanced_filter




                > [snip]
              Your message has been successfully submitted and would be delivered to recipients shortly.