Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2010 15:38:23 +0300
From:      c0re <nr1c0re@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Want sendmail applying aliases to 'cc:' field too
Message-ID:  <AANLkTikcYW5RnCipuXDqp=R=JL%2BXPv=-QWexo4ofrJRk@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hey all!

I've got /etc/mail/aliases file like

user: user@site1.domain.com
user2: user2@site1.domain.com
user3: user3@site2.domain.com

When someone from Internet send email to user@domain.com with cc: to
user3@domain.com sendmail send mail to user and user3 normaly, they
recieve their mail.

But I need some additional behavior:
user receive that mail with

to: user@site1.domain.com
cc: user3@domain.com

I want that cc would be user3@site2.domain.com, like in aliases file.

Because I got problems replying to all (with user3@domain.com
included, but it must be user3@site2.domain.com). How this can be
achieved?

In other words I need some kind of cc: field rewriting regarding to
aliases file contents.

I have not found such feature in sendmail. So I think this can be done
with some milter may be... Anyone has ideas?

Any tips, thinks, tricks and etc highly needed! I'm out of ideas at that moment.

Thanks!



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikcYW5RnCipuXDqp=R=JL%2BXPv=-QWexo4ofrJRk>