Dear Barney,
The right-hand side of the transport file should have square brackets
around the hostname. By default, Postfix would attempt to lookup the
MX for newmachine.example.com, which isn't what you want. Square
brackets suppress the MX lookup, and use the direct host lookup
instead. ie.:
example.com smtp:[newmachine.example.com]:25
thanks, so I've set this in /etc/postfix/transport, then ran postmap on
the file, then aded:
transport_maps = hash:/etc/postfix/transport
to /etc/postfix/main.cf
and remove example.com from the virtual domain table I guess.
I'm pretty sure you leave it in, Postfix has to know it's meant to
handle the domain, which means either being "local", "relay" or
"virtual" (two types).
http://www.postfix.org/ADDRESS_CLASS_README.html
ok, so I have my example.com in my vdomains file, and I have this in the
defined as:
virtual_mailbox_domains = /etc/postfix/vdomains
and then what else do I have to set?
I might have forgotten something, but I think that's it. Just remember
to `postmap` the /etc/postfix/transport file and add it to your
transport maps.
http://www.postfix.org/postconf.5.html#transport_maps
thanks. but now I'm getting:
550 5.1.1 <f...@example.com>: Recipient address rejected: User unknown in
virtual mailbox table
where of course the user is not in the mailbox table, as the idea would
be that all mail is just transported to the other mail server..
what am I doing wrong?
Akos