Shutting down the OKS SMTP gateway

The OKS SMTP gateway process is automatically shut down when the operating system is brought down. However, it is possible that an administrator wants to shutdown the OKS SMTP gateway under certain conditions.

There is no specific procedure to stop the OKS SMTP gateway, but once again you will just need to send a simple signal to the process.

Here is an example:

# ps

 PID COMMAND

1401 /usr/local/oks/bin/oksd /usr/local/oks/etc/oksd.conf

1408 /usr/local/oks/bin/oks_smtp /usr/local/oks/etc/oks_smtp.conf

# kill 1408

The first command lists the current user processes and the second one sends a SIGTERM signal to the SMTP gateway process to terminate it. In case of errors, the syslog service is used and will print usefull error messages.