Special Considerations
Configuring
Configuring Your Server to Send but Not Receive E-Mail
For security reasons, some organizations do not wish to allow incoming mail. If you want your Instant Capacity system to be capable of only sending
Step 1. To prevent the sendmail daemon from starting up again when your system reboots, edit the /etc/rc.config.d/mailservs file, changing the value of SENDMAIL_SERVER to 0:
vi /etc/rc.config.d/mailservs
#########################################
# Mail configuration. See sendmail(1m) #
#########################################
#
#BSD’s popular message handling system
# SENDMAIL_SERVER: | Set to 1 if this is a mail server |
# | and should run the sendmail deamon. |
# SENDMAIL_SERVER_NAME: | If this is not a mail server, but a |
# | client being served by another |
# | system, then set this variable to |
# | the name of the mail server system |
# | name so that site hiding can be |
# | performed. |
# |
|
export SENDMAIL_SERVER=0 export SENDMAIL_SERVER_NAME=
Step 2. To immediately stop the server from receiving
/sbin/init.d/sendmail stop
Appendix A | 149 |