I have two email servers: mx1.example.com
(IMAP, SMTP) and mx2.example.com
(SMTP gateway).
mx1.example.com
is handling email forexample.com
,example.net
andexample.org
.mx2.example.com
is configured as a gateway formx1.example.com
(I want him to send out all mails that originate frommx1.example.com
)
Now I want to send the emails
- from
example.com
andexample.net
viamx1.example.com
normally - from
example.org
viamx1.example.com
(password auth) to the gatewaymx2.example.com
(IP).
How can I configure this?
UPDATE: Please hurry up guys, the bounty expires in 2 days.
To be more clear:
I know how to relay via mx2.example.com
(how to send everything via mx2.)
I just have to put the IP of mx2 in relayhost in the main.cf in mx1. But I want to make this selectively, just for example.org.