Hi people out there,

I'm having a problem configuring Sendmail to accept doing relay only to one remote domain. here is the thing, inside my LAN there is another domain managed by an exchange server, I would like to allow my LAN users to send emails (relay) via my sendmail server but only to the domain on my exchange server and if they try to relay to another domain name then the sendmail should reject it.

my //etc/mail/access looks like this: RELAY
192.168 RELAY
172.16.2 RELAY
10.100 RELAY

No SMART HOST setting is defined in /etc/mail/sendmail.mc file

the current situation is that users can relay via the sendmail to wherever they like and my question is how can I use my access file to allow my LAN users to send email (relay) via my sendmail but only to one specific domain?