Homer Wilson Smith:
>
> We have an outgoing mail server for our customers,
> emerald.lightlink.com, and an incoming spam server
> barracuda.lightlink.com.
>
> I want to set the smarthost in emerald to point to the barracuda so
> outgoing mail gets scanned too on the way out.
>
> However emerald is normally smart enough to know when it is delivering
> to local machines such as pop.lightlink.com, and normally delivers
> directly to them.
Use transport_maps for pop.lightlink.com etc. Postfix will then
use relayhost (barracuda) for everything else.
/etc/postfix/main.cf:
relayhost = barracuda.lightlink.com
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
pop.lightlink.com smtp:
Use "postmap /etc/postfix/transport".
You can't send *.lightlink.com this way, because that would
interfere with local deliveries.
Wietse