Forum Moderators: bakedjake
So:
name1@domain.com user1@domain.com
name2@domain.com user1@domain.com
name3@domain.com user2@domain.com
@domain.com user3@domain.com
I've tried to accomplish this using Virtual maps, but as soon as a virtual domain is listed there, Postfix will not relay the mail for that domain. Any ideas?
Thanks,
Jim
in your main.cf add:
transport_maps = hash:/usr/local/etc/postfix/transport
in your /usr/local/etc/postfix/transport file, I have:
mydomain.com smtp:192.168.1.1
once you've done that, you need to run the "postmap" command (with the hash option). That'll create a new file called "transport.db" (Berkley DB format, I think).
HTH,
-MM
What I have been able to use is the canonical_recipients map. This replaces the address with a different one, and then uses transports to determine what to do with the message next. Seems to be working so far.
Thanks!
Jim