On Wed, Sep 01, 2021 at 11:49:46PM -0400, Steve Dondley <s...@dondley.com> 
wrote:

> My scenario: I have several email accounts: EmailA, EmailB, EmailC, EmailD,
> etc.. Then I have a fifth gmail account, EmailE, that I use to
> funnel/forward all my other email addresses to. The gmail account then
> forwards all email to my main email, EmailA. Yeah, it's a mess. Yes, I will
> eventually cut out the gmail middleman and have everything forward directly
> to EmailA. But in the meantime...
> 
> My problem: Very often, people will not be sure which email address to send
> to. So they will send to two or even three different email addresses.. So
> when I hit reply-all, some of my other address are cc'd and when they reply
> to my email, I can sometimes get duplicate emails. I could change the
> headers when I send an email. But this is a pain.
> 
> What I'm looking to do: When I hit reply-all, I'd like for EmailA, B, C, D
> and the gmail account to be stripped out automatically from all headers and
> just have the from and reply-to headers only come from the EmailA address.
> 
> Before I go through the pain of doing this, I want to be sure postfix is the
> right tool for this job so I'm not spinning my wheels.
> 
> Thank you!

Hi,

Postfix isn't the right thing for that. It's a mail
server, not a mail client. You'll need to investigate
the documentation for the mail client that you use when
reading and sending mail.

For example, with mutt, you can give it a list of all
of your email addresses with an "alternates" directive,
and it knows not to include alternates in the recipient
list when you reply to all. Other mail clients probably
have similar functionality.

Another alternative that could involve postfix slightly
it to tell postfix to use something like procmail when
delivering local mail (or use something like imapfilter),
and filter incoming mail through a script that performs
the transformation you want on the email before you see it.
But that's fiddly, requires writing code that munges your
email, so it requires great courage and/or foolhardiness.
I'd do something like this if I didn't already use mutt,
but I wouldn't recommend it.

Looking for a solution in your mail client is much better.

Also, if your mail client launches a highly
configurable text editor for composing the reply, you
can probably configure the editor to automatically
remove and/or replace the addresses before you start
typing the reply.

cheers,
raf

Reply via email to