converting .qmail files to .forward
Hi, 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. Thanks! Jamie
Re: converting .qmail files to .forward
Jamie Winter: > I haven't been able to find a lot of information on .forward file syntax. LOCAL(8) LOCAL(8) NAME local - Postfix local mail delivery ... DESCRIPTION ... An alias or ~/.forward file may list any combination of external com- ... See aliases(5) for a precise description. Each line in a user's .for- ... ALIASES(5) ALIASES(5) NAME aliases - Postfix local alias database format ... DESCRIPTION ... The value contains one or more of the following: address Mail is forwarded to address, which is compatible with the RFC ... /file/name Mail is appended to /file/name. See local(8) for details of ... |command Mail is piped into command. Commands that contain special char- ... :include:/file/name Mail is sent to the destinations listed in the named file. ... These documents also mention forward_path (how Postfix finds .forward files), and propagate_unmatched_extensions for how Postfix propagates address extensions. Wietse
Re: converting .qmail files to .forward
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
Re: converting .qmail files to .forward
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 How would I do this in postfix? Would I still use .forward files? Note- the mail servers do not have local users set up. Many thanks, Jamie On Sun, Nov 24, 2013 at 8:35 AM, Benny Pedersen 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 > > >
Re: converting .qmail files to .forward
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 keylookup 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 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 > > > > > >
Re: converting .qmail files to .forward
Hello Wietse, is the colon in aliases files optional? If not, aren't there colons missing below? Cheers, wolfgang In an older episode, on 2013-11-24 16:45, Wietse Venema wrote: 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
Re: converting .qmail files to .forward
Wolfgang Zeikat: > Hello Wietse, > > is the colon in aliases files optional? No, I forgot it the colon. It's required for compatibility and the file would be very difficult to parse without it. Wietse > If not, aren't there colons missing below? > > Cheers, > > wolfgang > > > In an older episode, on 2013-11-24 16:45, Wietse Venema wrote: > > > > > > 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 > > >
Corrected: converting .qmail files to .forward
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 keylookup 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 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 > > > > > >