Thanks a lot Noel - I seem to be on the right track with this, but am
having a problem.

I have set up my system as you described, but with one change.  I set
up the virtual_alias file with the line: "@pisd.edu  
@oldpisd.edu,@newpisd.edu" rather than every email address - I have a
dynamic userlist of over 6000 users!

When I send an email to a "@pisd.edu" address, it changes the
@oldpisd.edu address correctly, but the @newpisd.edu address is missing
the username.  For example, if a mail is sent to b...@pisd.edu, one email
is generated & sent to b...@oldpisd.edu, but the 2nd email is generated
to go to "@newpisd.edu" (no username), which then bounces because no
such user exists.

What can I do to correct this?

Thanks,
Scott Fitzhugh
Plano ISD


>>> Noel Jones <njo...@megan.vbhcs.org> 2/14/2011 8:59 AM >>>
On 2/14/2011 8:39 AM, Scott Fitzhugh wrote:
> I am new to Postfix and am wondering something about Postfix.
>
> Currently, all our email comes into 2 Proofpoint appliances.  Email
> that passes through goes straight to the Groupwise Internet Agent
> (GWIA), which distributes the email where it needs to go within our
> email system.
>
> We are switching to a cloud email system.  In the transition period,
> we'd like all email to go to both places, but not forwarded.
>
> Is it possible to use Postfix in the middle somewhere to send email
to
> two different locations?
>
> Thanks in advance,
> Scott Fitzhugh


To delivery mail to two locations, you need two recipients. 
In postfix, you can do this with virtual_alias_maps.

You'll need a list of valid recipients.

# main.cf
relay_domains = example.com
virtual_alias_maps = hash:/etc/postfix/virtual_alias
transport_maps = hash:/etc/postfix/transport
smtp_generic_maps = hash:/etc/postfix/generic


# virtual_alias
o...@example.com  o...@old.example.com o...@new.example.com 
t...@example.com  t...@old.example.com t...@new.example.com 
... all users listed ...


# transport
old.example.com  relay:[ip.of.old.server]
new.example.com  relay:[ip.of.new.server]


# generic
@old.example.com  @example.com
@new.example.com  @example.com


http://www.postfix.org/documentation.html 




   -- Noel Jones

Reply via email to