#1  
Old 14th April 2009, 18:19
msource msource is offline
Member
 
Join Date: May 2007
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default Bcc on SMTP Message

Good afternoon,

I wonder if you can put a Bcc when sending an email via SMTP from Outlook directly on the server without the user having knowledge.

Or if is another way to do this.

Thank you,
Marcos Pinto
Reply With Quote
Sponsored Links
  #2  
Old 15th April 2009, 06:15
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

you can use always_bcc feature of postfix.
Reply With Quote
  #3  
Old 15th April 2009, 10:18
msource msource is offline
Member
 
Join Date: May 2007
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How can i do that?

Could you please help me?
Reply With Quote
  #4  
Old 15th April 2009, 11:11
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
Default

hi,

if you want to have bcc of all messages passes through postfix, then you may add line
Code:
always_bcc = mailaddress@domain.com
into your /etc/postfix/main.cf file. This options sends bcc of all messages i.e. incoming as well as outgoing, to mailaddress@domain.com

Similarly, if you want to tweak the setting, you may use sender_bcc_maps and recipient_bcc_maps feature.

For example: if you want bcc of all outgoing message from a domain1.com, you may create a file with any name in /etc/postfix with something like this:
Quote:
*@domain1.com mailaddress@domain1.com
then run
Quote:
postmap /etc/postfix/filename
and
add following line to /etc/postfix/main.cf
Quote:
sender_bcc_maps = hash:/etc/postfix/filename
The same could be done with recipient_bcc_maps.

You may find details at http://www.postfix.org/postconf.5.html

Hope this helps, tell me in any further clarification/guidance in the matter required.

Dipesh
Reply With Quote
  #5  
Old 15th April 2009, 11:32
msource msource is offline
Member
 
Join Date: May 2007
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Thank you for you fast replay, and very explaning one.

I create a file in /etc/postfix/bcc_maps with the following:

sender@domain.tld another_sender@another_domain.tld

And add the sender_bcc_maps = hash:/etc/postfix/filename in the main.cf file of postfix.

With this config, i'm able do copy all the e-mail's send from sender@domain.tld to another_sender@another_domain.tld, correct?

Did i do this right?
Tanks a lot for your help.

The ISPConfig project is one of the best Open-Source projects in all aspects.
God whork guys.
Reply With Quote
  #6  
Old 15th April 2009, 14:38
dipeshmehta dipeshmehta is offline
Senior Member
 
Join Date: Nov 2008
Location: Rajkot, India
Posts: 173
Thanks: 5
Thanked 13 Times in 13 Posts
Send a message via Yahoo to dipeshmehta Send a message via Skype™ to dipeshmehta
 
Default

Quote:
Originally Posted by msource View Post
And add the sender_bcc_maps = hash:/etc/postfix/filename in the main.cf file of postfix.
I am sorry, I was not so clear in writing. you should write
Quote:
sender_bcc_maps = hash:/etc/postfix/bcc_maps
into the main.cf.

and please do not forget to run postmap command and then postfix restart

Dipesh
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Undelivered Mail Returned to Sender Error202 General 5 7th May 2009 11:14
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


All times are GMT +2. The time now is 22:19.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.