postfix - save and forward ?

Posted on 2005-04-12
Last Modified: 2013-11-30
  with qmail I used following function :
email arrived to my mailbox, stayed there, and its copy was forwarded to some other location (cell phone via providers gate).
  Currently, I'm running postfix with mysql, I'm newbie in this, so I'd like to know, how to set up, that email
wchich arrives to

mailbox, stays there, and also gets forwarded to

  will post CNF files if needed :)
Question by:Letus
    1 Comment
    LVL 8

    Accepted Solution

    I would setup an alias. This way is quite an elegant way of doing these things because it's a simple change, it's easy to see what happens, and in the future its easy to change again if needed.

    Simply add a line like the following to your aliases file to do what you need:,

    This will require you to use the aliasuser for reply-to: field. Any mail coming to would not get copied, unless you created another mailbox  (by copying to the new mailbox so that you can keep all your old mail) and then set the account to be an alias for your new mailbox plus

    If neither of those solutions work for you, you can use the recipient_bcc_maps parameter. Use it like the following:

    In add this line:

    recipient_bcc_maps = hash:/etc/postfix/recipient_bcc

    Then create a file called /etc/postfix/recipient_bcc with the following in it:


    then save the file and do

    postmap hash:/etc/postfix/recipient_bcc


    postfix check
    postfix reload

    Hope that's all clear.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If you are anything like me, you install many apps on your phone and have your life on it, sometimes literally.  When I bought my current phone, a Samsung Galaxy S5 from Verizon, they were only selling the versions with 16 GB internal.  I didn't rea…
    Pegasus Mail ( is a donation ware that is a collaboration of David Harris along with his team members. It is a desktop mail client that offers the option of configuring more than one mail account with single set up. It supports…
    The purpose of this video is to demonstrate how to set up Lists in Mailchimp. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchimp account. : Click on Lists. Click on Create List Button : Choose the desi…
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now