How to have mail server automatically cc all email for a user to other acct

I have a user on my 4.9 Xserve who wants her email automatically send to another account. I set forwarding first, but her email client keeps asking her for a password (and hers doesn't work) and won't allow her to see past email. Is that normal? Anyway, I've shut off forwarding for now, and am wondering if it's possible to have it automatically cc'd to another account (send a copy, but don't interfere with her ability to manage the email in her normal account with an IMAP client). Any ideas?
Thanks,
Mike

Be aware that you are about to enter the dark zone of Unix file editing. Once there, you may never want to come back. Your friends and relatives will spurn you and you will start to dress in dark clothes and listen to impenetrable music.
You can also screw up your whole system... but hey, who wants to live forever
If you have a skateboard, sit it on your desk, then switch off all other lights except for an anglepoise...
In Terminal, cd to postfix directory, and just for interest, list the files already there...
cd /etc/postfix
ls -l
You should see the main.cf one which you will edit later.
Create the new recipient_bcc file using 'pico', one of the built-in text editors. This is the easiest to start with because it contains on-screen help. There are others, including 'vi' which I would normally use. You will prefix the command with 'sudo' which temporarily makes you the 'super-user' (root) and needs the admin password. So...
sudo pico recipient_bcc
Add the two email addresses, separated by a tab or space, on the left: the local email address, and on the right: the address to send copies to (BCCs). To edit existing text, use arrow keys. Save the file using ctrl-o, confirm filename, then exit (ctrl-x).
For postfix to be able to read this as a database, you need to 'postmap' it...
sudo postmap recipient_bcc
To confirm, list the files and you will see the two new ones (ls -l).
Before editing the main.cf file, make a backup copy of it...
sudo cp main.cf main.cf.bak
If you need to revert to the backup, you reverse the orig/target args...
sudo cp main.cf.bak main.cf
Edit the main.cf file (sudo pico main.cf) and either 'next page' to bottom or enter '^_' (ctrl + underscore char) then specify line number 999.
add the line...
recipientbccmaps = hash:/etc/postfix/recipient_bcc
Postfix knows to use the postmaped .db file so you do not specify that one in the line.
Save and exit file.
Reload the postfix main.cf configuration file...
sudo postfix reload
Test it by sending an email to the user and watch the mail.log in Console app. You should see the BCC being sent to the other email address. If something has gone wrong, replace the main.cf with the backup, issue postfix reload, then try again.
Once you have confirmed it working, dance around the room playing air guitar and give high-fives to any innocent bystander.
-david
Links...
http://www.postfix.org/postconf.5.html
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/pico.1.h tml
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/cp.1.htm l
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/postfix. 1.html

Similar Messages

  • Mail server automatically cc all email for user to other acct but group...

    Back on April 2007, David_X answered this question:
    How to have the mail server automatically cc all e-mail for user to other accounts, (gmail, hotmail, etc). Here is the old post that explains that:
    http://discussions.apple.com/thread.jspa?messageID=4357149&#4357149
    What I did not catch at the time was if you setup a Group, one of three ways, the cc step no longer works. There is a fourth way but it is not practical. Creating local groups on individual Macs.
    *Group method 1 per David_X:*
    Use edited group files on the server.
    The following sends to members of groups but does not show all recipients in the received message...
    In /etc/postfix/aliases, add...
    groupname: :include:/path/to/groupname.txt
    In a file called groupname.txt (using plaintext editor)...
    [email protected]
    [email protected]
    Reload aliases...
    sudo newaliases
    sudo postalias aliases
    sudo postfix reload
    Mail sent to [email protected] gets passed to amavisd once, before then being relayed out for each individual recipient.
    *Group method 2 per David_X:*
    Make a user, e.g., "accounts"
    In mail settings, select 'Forward' option and enter the group members' email addresses, comma separated e.g.,
    [email protected],[email protected]
    This gets a bit 'long' for lots of members.
    The email then gets sent to each of the people in this list.
    *Group method 3 that I just discovered:*
    Create a group in Workgroup Manager.
    Drag the users you want in it.
    Save.
    Test sending to that group.
    Best part, the group name shows up in Address Book if you have LDAP setup.
    So I have setup all three. If I send an email to any type of group, they work.
    The problem:
    If one of those members in the group also has a BCC setup to Gmail or any other outside email, they never get the e-mail copied out to the external account.
    Example:
    I send an email to [email protected]. He gets the email there and also a copy at his Gmail account.
    If I send an email to the Sales group that jsmith belongs to, he gets the email there but nothing at the Gmail account.
    It looks like the mail server processes the "aliases" file and skips the "Recipient_bcc" file that handles the forwards.
    Is there a way to have my cake and eat it too? David_X your thoughts also?
    Thanks everyone!

    Bump.
    Short version. Sales guy has a Gmail account he wants his e-mail copied to also.
    Send e-mail directly to his Xserve account, he gets it there and it gets sent on to his Gmail account.
    Send an e-mail to the sales Group that he is a member of, he gets it there but it never gets sent out to the Gmail account.
    Ideas?

  • HT202297 How can I add a new account on Reminders on my iPad 2 iOS 6.1.3 ? How I have on my iPhone 4S all emails accounts I have reminders accounts and it doesn't happen with the iPad.

    How can I add a new account on Reminders on my iPad 2 iOS 6.1.3 ? How I have on my iPhone 4S all emails accounts I have a reminder account and it doesn't happen with the iPad.

    How can I add a new account on Reminders on my iPad 2 iOS 6.1.3 ? How I have on my iPhone 4S all emails accounts I have a reminder account and it doesn't happen with the iPad.

  • How to make Outlook 2013 automatically download all emails?

    I have four IMAP email accounts. Currently, my Outlook 2013 only shows new emails when I navigate to the folder they are in. For example, if I navigate to my work email inbox, it suddenly fills with new emails.
    Previously, in Outlook 2010, this would be automatically downloaded and the inbox would be refreshed to show a new email. How can I make this happen in Outlook 2013?

    Hi,
    Please check your settings:
    FILE-> Options-> Advanced -> Send and receive, check "Send immediately when connected"
    Also, you could set advanced option throught clicking "Send/Receive..."
    If the issue persists, please repair your OST/PST file through SCANPST tool, then check the result:
    http://support.microsoft.com/kb/272227
    Best regards,
    Karen Hu

  • HT2500 how do i automatically save all emails after i have read them

    How do I set up Mail to automatically save all emails that I have read?

    Unless Mail has changed in Mountain Lion, which I don't use, you shouldn't have to do anything. They should just remain where they were. Are they disappearing after being read?
    Maybe there's some Preference in 10.8 Mail I don't know about. In my 10.6 Mail, I would Open>Mail>Preferences>Accounts>Mailbox Behaviors. Should be at that location in ML Mail>Preferences or somewhere in Preferences.
    Btw, you're in the Snow Leopard (10.6) forum.

  • How to setup Mail Server in Lion

    I'm wondering how to setup the mail server if I have a website that is being hosted by a site like go daddy. I really have no IT experience and wanted this server to help my company get organized and on track. So far I have been able to get the VPN and File Sharing working. My next steps are the mail server and iCal. Thanks for the help it will be greatly appreicated!

    Well, it depends heavily on what operating system you're using, what mail server you're trying to install, your network topology, etc. Realistically, this is a question that is probably better asked in a forum for whatever mail server you're trying to install...
    Justin

  • How to ping mail server in sent mail ?

    in my send mail code if my mail server is invalid then it throws SocketException if i want to ping mail server before i sent email how can i do that if i want avoid this SocketException

    AmitChalwade123456 wrote:
    in my send mail code if my mail server is invalid then it throws SocketException if i want to ping mail server before i sent email how can i do that if i want avoid this SocketExceptionThere's no point in doing that. Even if it responds to the ping, it may go down between the ping and sending the mail. Or it may respond to the ping, meaning the box is up, but the mail service may still be down.
    Whether it comes from a failed ping or from an exception, the end result is the same: You can't send mail to that server right now.
    Just catch the exception and handle it. Don't overcomplicate things for no gain.

  • Can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    can i restrict apple mail client from downloading all emails...and allow it to pick a start date for gmail mail to sync? i am flooded with old emails, thousands on them ...eating hard drive space of my macbook pro and un necessary overhead

    The genius bar technicians can check your MBP for possible hardware problems and specific software issues that you may have.  The diagnosis will be free.  Any extensive repairs will not be free.
    If you have minor software problems, you essentially will have to deal with them yourself.  Examine these two comprehensive documents for possible problem definition and solutions.  If you encounter problems that you are unable to cope with, start a new discussion and there will be persons willing to assist you in solving them.
    https://discussions.apple.com/docs/DOC-3521
    https://discussions.apple.com/docs/DOC-3353
    Ciao.

  • Mavericks mail server stops distributing group email after a few hours of usage

    I've been having problems with our Mavericks mail server ever since our upgrade with group mail.  
    The server will distribute group email for a few hour, then it simply stops working. 
    No error message, no bounces, and the server keeps the incoming mail in its incoming queue.  
    Restarting the mail services by either server.app or serveradmin mail stop; serveradmin mail start command like  are the only way I can get it to continue to distribute the email.  I suspect it has to do with postfix itself hiccuping?  But this is a reproducable problem.
    Mail filtering is on, score set to 6, 10 mb limit, spamhaus is active.
    Looking for tips on how to stablize this service short of setting up cron job to restart the services every few hours.

    I know this is not the fix you are looking for, but it's what I had to do, so I thought I'd share.
    Hopefully, someone will be able to figure it out the "right" way!
    I created this AppleScript that will stop and start the mail service every hour.
    You can copy and paste it into AppleScript Editor, compile it and save it as an application.  You can then run it.  You need to run it from an administrator account and keep that user logged in.
    If once an hour (every 3600 seconds) is too often, just change 3600 to however many seconds you want.
    Be sure to change AdminPassword with the Admin user's actual password.
    repeat
              do shell script "/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin stop mail" password "AdminPassword" with administrator privileges
      delay 60
              do shell script "/Applications/Server.app/Contents/ServerRoot/usr/sbin/serveradmin start mail" password "AdminPassword" with administrator privileges
              delay 3600
    end repeat

  • How do I stop getting copied on all emails I send?

    How do I stop getting copied on all emails I send?  Help

    Go back into your email settings and make sure you don't have bcc turn on.

  • I'm not receiving emails. Internet connection is fine. I was told by my provider that I need to reset my emails. How do I do that without losing all emails in my inbox?

    I'm not receiving emails. Internet connection is fine. I was told by my provider that I need to reset my emails. How do I do that without losing all emails in my inbox?

    Hi..
    If you are using Mac Mail, from the Mail menu bar top of your screen click Mail > Take All Accounts Offline then click Take All Accounts Online.
    You should not lose any unopened or saved mail.

  • HT204093 mail is automatically archiving my email messages

    The mail program is sending all emails to Archive automatically

    Hi Sumeetmehra,
    I apologize, I'm a bit unclear on the exact nature or scope of the issue you are describing (when it started, if anything recently changed, etc). If you are having unusual behavior regarding the Archive function, you may find the information and steps outlined in the following articles helpful, in particular checking to see if you currently have any active Mail Rules:
    Mail (Yosemite): Use the Archive mailbox
    Mail (Yosemite): Use rules to manage your inbox
    Regards,
    - Brenden

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • Any way to select all emails for delete with one touch?

    The only time I really need to see emails on my iPhone is when I am away from home. When I am home, and receive a huge number of emails on my iMac, I also receive the same ones on my iPhone.
    I review them on the iMac, and then have to delete them from the iPhone. I go into the account on the iPhone and touch edit, but then have to scroll and check off each one so I can delete them.
    Is there any way to "select all" instead of checking off each one?

    The iPhone's mail client does not synchronize with the incoming mail server for a POP account. The iPhone's mail client is no different in this regard from accessing a POP account with an email client on your computer. You have an option to remove messages from the server when downloaded for a POP account with the iPhone's mail client as is available with an email client used on your computer to access a POP account.
    All server stored mailboxes with an IMAP account are kept synchronized with the server automatically with each email client used to access the account including with the iPhone's mail client. A POP account is not synchronized with the server - not with the iPhone's mail client or with an email client on your computer.

  • How can i send the html animation by email for my freind(yandex,email)?

    how can i send the html animation by email for my freind(yandex,email)?

    Hello! Happy New Year to you too.
    I am not sure I understand your question properly.
    If you are making this animation for a wesite, you can include your files into an iFrame and upload all your files to your website server.
    For example add this to your html page:
    <iframe src="http://www.yourSiteName.com/folderName/index.html" style="width: 100%; height: 400px; margin-top: 10px; margin-bottom: 30px;"></iframe>
    Note: change the sizes, change your site name, folder name and html edge file name.
    If you want to just have your composition on one page by itself, then just add the folder to the root area of your server and then you can send the link by email for people to see it directly on the web. You do not need to put it in an iFrame for this. Just email the web address - so for example:
                                  http://www.yourSiteName.com/folderName/index.html
    Let me know if I understood properly and if not please give us a clear description of what you want to do.

Maybe you are looking for

  • How Do I create a Calendar in Elements 12?

    I want to create a Calendar in Elements 12.   I found the Calendar in the Graphics but I cannot get the pictures in it.  Where can I find a guide or a tutorial for this?

  • PDF viewer for style

    Looking for PDF viewer that is compatible with style 9670 . please recommend

  • - How can I tackle this problem?

    Here's what I'm trying to do : - Vertically center a table - Add gradients above and below the table (1px wide, repeating x-axis) - At the end of these gradients, display opaque color (of the same color as the last pixel in the gradient) - The gradie

  • Edits don't show if the photo is exported as DNG

    When I make edits (such as spot healing or cloning) in Lightroom and export the photo to another directory as DNG, those edits don't show - the image opens in Camera RAW and the removed blemishes are still there. On the other hand, if I export as JPE

  • Server HELP

    Ok im very new to this server stuff with the MAC I just got a 20inch IMAC Intel, first all I would like to do is set my IMAC up to how its set up at my school. We use Go > Conect to Server> then we can connect to anything on the server at our school,