View Full Version : Redirecting a copy of outgoing mail
Berry
9th February 2007, 22:47
Hi to all!
I have Perfect Sarge on my webserver powered by ISPConfig and one client that needs every copy of sent outgoing mail to be also forwarded to main companies mailbox. Does anyone have idea how to solve it trough postfix. Using "CC" is ofcourse out of coice...
Thanks for any help guys!
martinfst
10th February 2007, 18:57
You can add the always_bcc option with postconf. See http://www.postfix.org/postconf.5.html:
always_bcc (default: empty)
Optional address that receives a "blind carbon copy" of each message that is received by the Postfix mail system.
Note: if mail to the BCC address bounces it will be returned to the sender.
Note: automatic BCC recipients are produced only for new mail. To avoid mailer loops, automatic BCC recipients are not generated for mail that Postfix forwards internally, nor for mail that Postfix generates itself.
postconf -e "always_bcc = special_user@mydomain.tld"
Berry
10th February 2007, 19:37
martinfst, thanks for Your reply!
But I'm not sure how to use this option only for specific mail account, not the whole Postfix server. As I see it - this would BCC all mails of all accounts on Postfix.
martinfst
10th February 2007, 21:04
"always_bcc" is not selective, it BCC's *all* the mail. But you could use a simple filter to remove all but the mail you need from the stream. As ISPConfig already uses procmail, you need to dig into procmail rules/filters for the user receiving all the always_bcc mail.
Tenaka
31st October 2008, 09:16
sorry to dig up such an old thread but is this still the only solution?
just curios if ispcfg maybe incorporates such a feature itsself or if there have been any new improvements in this matter.
falko
1st November 2008, 17:18
No, this is still the only solution.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.