It sounds like you are wanting to use what some packages call a
smarthost, and relay all of your non-local mail through a particular
server.
To use one server as a smarthost for all outbound mail, place in
smtproutes:
:smarthostip
If you want to relay only specific domains use:
Hi All,
I have a server that is used to authenticated relay and where alsothe local
domains are.
I would like to know if is possible, and how, to do the following:
- a mail is sent to a local domain and it is delivered locally
- a mail is sent to a non-local domain and it is forward to another