LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 06-14-2005, 12:33 PM   #1
clickster
LQ Newbie
 
Registered: Dec 2004
Posts: 22

Rep: Reputation: 15
Using BCC in Postfix


I know there is a BCC line that forwards EVERYTHING that comes across a mail server to another address, but I just it to forward all mail to a specific user (there is only one user that I need this on) to another address that's not local.
Is there a way to do this? I am running Postfix on an FC3 box, if that helps with versioning, etc.
 
Old 06-14-2005, 01:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
BCC is nothing to do with your situation whatsoever. a BCC (Blind Carbon Copy) is just a way to send a standard email to lots of people at once, without letting any one recipient know who else got it. like when you send out a mass job rejection letter.

what you want to do is forward all mail sent too one local user to a remote address? just use a .forward file in their user directory. if you wish to pull it back to a central core level, use the virtual db map to send email that way, e.g. "virtual_alias_maps = hash:/etc/postfix/virtual" in your main.cf. see "man virtual" or the default virtual file for more details. also you could use /etc/aliases.
 
Old 06-14-2005, 02:14 PM   #3
clickster
LQ Newbie
 
Registered: Dec 2004
Posts: 22

Original Poster
Rep: Reputation: 15
I made a mistake when I wrote my original issue. I should have said "forward a copy" of each e-mail.
I want a copy of the e-mail to be placed in the user's mailbox and another copy to be forwarded on. Sorry about that.
 
Old 06-14-2005, 03:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
this is not what postfix is for. i would suggest running procmail either as a direct transport for postfix or a standard filter per user. if a given user has a .procmailrc in their home dir when postfix delivers mail to their mailbox, procmail will take over and act accordingly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
please help with Postfix+courier+forward+bcc? shadowsa Suse/Novell 2 08-15-2005 11:20 PM
KMail and BCC aikempshall Slackware 2 04-17-2005 04:07 AM
fetchmail bcc parsing teanine Linux - Newbie 0 12-11-2004 01:18 AM
the limit of Bcc number in sendmail htm Linux - Software 0 04-08-2004 11:34 PM
postfix + procmail + BCc: not recieving BCc sebastianjustin Linux - Networking 0 08-26-2003 03:38 AM


All times are GMT -5. The time now is 07:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration