Scott Fitzhugh: > Wietse - Like my original email said, I am new to postfix, so I have no > idea how to even start something like that.
I suggest you pull the addresses from some table (they are already in the computer, after all) and run them through a script (Perl, AWK, Basic, PHP, whatever). If you manage a computer system but don't automate the job, then you work too hard, and you make too many mistakes. Wietse > Daniel - I guess table-driven. Not sure how else to proceed. > > Thanks, > Scott > > >Daniel Bromberg <dan...@basezen.com> > > > >Scott, > >Are you fully table-driven? How about some SQL magic to build the > >aliasing value dynamically, instead of a flat file? > > > >-Daniel > > >>> Wietse Venema <wie...@porcupine.org> 2/16/2011 11:46 AM >>> > >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 > > > > >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 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. > > > > > > Thanks, > > Scott Fitzhugh > > Plano ISD > > > >>> Noel Jones <njo...@megan.vbhcs.org> 2/14/2011 8:59 AM >>> > > 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 > > > 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 > >