OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: relay_domains. Relay one domain only

From: Gábor Lénárt (lgblgb.hu)
Date: Wed May 03 2006 - 04:40:22 CDT


Hello,

> domain only I want to relay email to a specific internal IP.
>
> - mail.ourdomain.com: 192.168.0.1, 83.xxx.xxx.xxx
> - web.ourdomain.com: 192.168.0.2 email to not_our_domain.com goes
> direct. email to ourdomain.com goes to 192.168.0.1 not to
> mail.ourdomain.com [83.xxx.xxx.xxx]

Well, you may want to use transport (man transport, also check
transport_maps option in main.cf to use)?

With something like these in it:

yourdomain1.com smtp:[192.168.0.1]
yourdomain2.com smtp:[192.168.0.2]

this will "route" mails for yourdomain1.com to your MTA at 192.168.0.1,
and yourdomain2.com to 192.168.0.2.

--
- Gábor