sendmail? Use Virtusertable. It works a lot like aliases but lets you do what you want here. The example will show you how it's done:
webmaster@domain.com joe
sales@domain.com joe@isp.net
@domain.com fred
All mail for domain.com that is not forwarded to a user, e-mail address or other domain will go into the "catch-all". In this case, all mail for domain.com except for webmaster and sales, will go to fred.
makemap is a Sendmail command, try postmap. The full command is "postmap hash:/etc/postfix/virtual". You have to create the /etc/postfix/virtual file first. Inside the virtual file, you can just do something like...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.