Originally posted by: SystemAdmin
Sendmail does not have to be running in order to send e-mail. I am not sure whether the mail/mailx command uses sendmail or telnet to send an e-mail; but, whichever process is used, it is only temporary and does not remain in the background.
There are several options available to you; you should decide which is more appropriate for your circumstances.
Either:
1. Change the permissions of /usr/bin/mail to 744 to stop general usage.
2. Use an ACL to permit usage of /usr/bin/mail by selected users.
or
1. Change the permissions of /usr/bin/mail to 744 to stop general usage.
2. Copy /usr/bin/mail to user's bin directory and change permissions back to 766
or
1. Rename /usr/bin/mail to mail.bck
2. Write a scipt to store in /usr/bin/mail, so that calls to mail use mail.bck for specifiec users only.
Good luck!
George