Yes, this is trivially easy to do. The only issue is that you
may have to alter
sendmail.cf, a configuration file so cryptic, the recommended method to perform alterations is to use a separate macro file.
However, you probably won't have to touch
sendmail.cf at all. If the "access" feature is enabled (and it usually is), you should find a file called simply
access in your
/etc/mail directory. By creating entries in this file, you can allow relaying on a per-domain or per-network basis, as well as allowing relaying from specific IP addresses.
For instance, ff your internal network is 192.168.10.0/24, the following line should be added to
/etc/mail/access:
Code:
Connect:192.168.10 RELAY
This file is not parsed directly by
sendmail. Instead, it's converted into a database file called
access.db, which has a format
sendmail can relate to. To do this, simply run the
make command from within the
/etc/mail directory:
Code:
$ cd /etc/mail
$ sudo make
The changes will take effect immediately, and the PCs on your internal network should now be able to use your
sendmail server as an outgoing e-mail relay.