I need to be able to configure sendmail to allow all ip addresses in a subnet to relay email @mydomain.com and I need to allow only specific IP addresses to be able to relay to the entire internet.
I tried playing with the /etc/mail/access file but if I set
then it can send email anywhere. I need to be able to do something like:
something like that..
The /etc/mail/relay-domains file is used to determine domains from which it will relay mail.
The contents of the relay-domains file should be limited to those domains that can be trusted not to originate spam. By default, this file does not exist.
Be sure to run the restart sendmail script for these changes to take effect.