This version is corrected for missing ';' in /etc/aliases. Wietse
Jamie Winter: > An example is, on my qmail server, I use .qmail-somename files to forward > email for a group of people at one domain, to a group of people at another > domain. > > cat .qmail-westcoast-users > jamieh > tomk > > I also have qmail files which contain the forwarding address for these > users: > > cat .qmail-jamieh > jamie.how...@somedomain.com Three options. First option: /etc/postfix/main.cf: virtual_alias_maps = /etc/postfix/virtual /etc/postfix/virtual: # lookup key lookup result westcoast-us...@example.com jam...@example.com t...@example.com ... jam...@example.com jamie.how...@somedomain.com Do specify @domain on the lookup table results. After editing, do "postmap hash:/etc/postfix/virtual". Second option: /etc/aliases: (or whatever the location of the "sendmail" aliases file) westcoast-users: jamieh tomk jamieh: jamie.how...@somedomain.com After editing, do "postalias hash:/etc/aliases Third option: /etc/aliases: (or whatever the location of the "sendmail" aliases file) westcoast-users: :include:/some/where/westcoast-list owner-westcoast-users: jam...@example.com jamieh: jamie.how...@somedomain.com /some/where/westcoast-list jamieh tomk After editing, do "postalias hash:/etc/aliases There is more than one way to skin a cat. Wietse > How would I do this in postfix? Would I still use .forward files? Note- the > mail servers do not have local users set up. > The .forward file is for UNIX accounts. You want virtual_alias > > Jamie > > > > On Sun, Nov 24, 2013 at 8:35 AM, Benny Pedersen <m...@junc.eu> wrote: > > > Jamie Winter skrev den 2013-11-24 15:05: > > > > I'm moving from qmail to postfix. I have numerous .qmail forwarding > >> email lists. Is there a easy way to convert these to postfix .forward > >> files? I haven't been able to find a lot of information on .forward > >> file syntax. > >> > > > > qmail have not copyright on .forward :) > > > > postfix supports it as well, but if you post an example on what you like > > to do then there is much better chance of some can help more > > > > > >