Scott Fitzhugh:
> 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 [email protected], one email
> is generated & sent to [email protected], but the 2nd email is generated
> to go to "@newpisd.edu" (no username), which then bounces because no
> such user exists.
>
This is not documented well. You can do @domain1->@domain2
but not @domain1->@domain2, @domain3.
In reality, you should not use @domain wild-cards and just write
a script to create those 6000 table entries for the old domain.
Let the computer do the work for you, it already has the data.
Wietse
>
> Thanks,
> Scott Fitzhugh
> Plano ISD
>
>
> >>> Noel Jones <[email protected]> 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
> [email protected] [email protected] [email protected]
> [email protected] [email protected] [email protected]
> ... 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
>
>