Find the answer to your Linux question:
Results 1 to 2 of 2
Hi all. I am currently redirecting all outgoing traffic via a BCC method. I have the RELAYHOST IP set to a false IP so all outgoing goes nowhere except for ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    1

    Postfix - Redirect all outgoing traffic EXCEPT...


    Hi all.

    I am currently redirecting all outgoing traffic via a BCC method. I have the RELAYHOST IP set to a false IP so all outgoing goes nowhere except for the BCC address which I have added to the transport file.

    This method is working perfectly.

    I want to however except 2 email address from being redirected.

    bob@bob.com
    jane@bob.com


    Any thoughts on how this can be acheived?
    I am running postfix 2.2.9 so I dont think the sender_dependent_relayhost_maps option can be used.
    My config's are below.


    /etc/postfix/main.cf
    relayhost = fake.ip.adress.here
    bounce_queue_lifetime = 0
    maximal_queue_lifetime = 0
    always_bcc =
    recipient_bcc_maps = regexp:/etc/postfix/bcc_regexp
    sender_bcc_maps = regexp:/etc/postfix/bcc_regexp

    /etc/postfix/bcc_regexp
    /.*/ email.address@bccdomain.com

    /etc/postfix/transport
    bccdomain.com smtp:[192.168.0.51]

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    the only thing I can think of would be to use sender_bcc_maps and recipient_bcc_maps and you would have to list each user to bcc and exclude your users.

    other then that you could try the postfix users list

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •