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 05-07-2015, 06:42 AM   #1
Michal Pastor
LQ Newbie
 
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Rep: Reputation: Disabled
Postfix/Dovecot hide "to" address for alias


Hello,

I have a question, how can I rewrite "to" addresses in mail headers, if the address is an alias?

Example... I have address all@my.company - alias for all employees. I don't want to everybody know that address, so is there a way, how to rewrite on delivery every use of "all@my.company" to real email address of recipient, or at least something like "hidden_address"?

Thank you
 
Old 05-08-2015, 08:05 AM   #2
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
BCC
 
Old 05-11-2015, 02:04 AM   #3
Michal Pastor
LQ Newbie
 
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Original Poster
Rep: Reputation: Disabled
No, BCC can hide additional addresses, but I want to hide one address, which is alias for more addresses. In the headers there is still visible original "to" address even if it is BCC.
 
Old 05-11-2015, 08:31 AM   #4
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Doesn't matter the TO: address will be left blank and the BBC will still send out the mail.
 
Old 05-11-2015, 09:42 AM   #5
Michal Pastor
LQ Newbie
 
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Original Poster
Rep: Reputation: Disabled
Code:
Return-Path: <sender@sender.domain>
Delivered-To: mymail@my.domain
Received: from localhost (localhost [127.0.0.1])
	by mail.my.domain (Postfix) with ESMTP id 607D9ABA36
	for <ALIAS@my.domain>; Mon, 11 May 2015 15:38:04 +0200 (CEST)
This is what I am talking about.... how to prevent show alias in header? This is part of header, ALIAS@my.domain was in BCC. I know, I can make list of recipients and use it in my client in BCC field, but alias is generated automatically for all mailboxes in my domain, so when I create new mailbox, there is no need for manage some lists, groups etc

Last edited by Michal Pastor; 05-11-2015 at 09:51 AM.
 
Old 05-11-2015, 10:45 AM   #6
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
Not sure how much plainer I can state this. Do not use the TO: field. Use the BBC: field. Then the recipients will not see your Alias.
 
Old 05-12-2015, 01:51 AM   #7
Michal Pastor
LQ Newbie
 
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Original Poster
Rep: Reputation: Disabled
The address of alias in log IS in BCC, TO is to myself.
 
Old 05-12-2015, 10:51 AM   #8
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
OK, you got me lost now. BBC are not shown in the headers. If you are seeing the alias in the TO field then you or your program are placing it there.
 
Old 05-13-2015, 02:16 AM   #9
Michal Pastor
LQ Newbie
 
Registered: Apr 2015
Location: Czech republic
Distribution: Gentoo, Debian, Ubuntu, CentOS
Posts: 17

Original Poster
Rep: Reputation: Disabled
BCC is shown in headers only if I send e-mail to alias from outside and only for addresses in this alias... If I send it to my alias ALL@my.domain and person@other.domain , both as BCC, person can not see ALL and ALL cannot see person, but every member of ALL can see, that original message is sent to ALL and this is what I want to hide. I have one external application, which need to send some message to this alias.
 
Old 05-13-2015, 11:53 AM   #10
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,242
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
I am not sure I am not understanding what you are trying to say or you are not understanding what I am saying.

With BCC the recipients will not see your BCC field thus your alias is protected from them.
 
  


Reply

Tags
dovecot, mail, postfix


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
Postfix - From address wrong when email recieved from a web "contact us" form. Doctafonk Linux - Server 5 01-08-2014 04:39 AM
Postfix: how to explicitly permit "joeblow@mydomain" from certain address ranges weav Linux - Server 2 01-05-2011 07:33 AM
[SOLVED] How to create a Postfix "everyone" alias that points to all users (wildcard)? andrewggrant *BSD 3 05-10-2010 05:45 PM
Problem "$value=`mpstat 1 1 | grep "Average"`;" Alias pipe return nothing adamlucansky Linux - General 8 09-25-2009 08:26 AM
Postfix-Rewrite "From" address in mail on particular condition. dhruvypatel Linux - General 1 04-07-2006 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:22 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration