Restarting the OKS SMTP gateway
In order to apply any configuration changes made to its configuration file, you may need to restart the OKS SMTP gateway.
To make this operation easier, you just have to send a SIGHUP signal to the OKS SMTP gateway 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 -HUP 1408
The first command lists the current user processes and the second one sends a SIGHUP signal to the SMTP gateway process. In case of errors, the syslog service is used and will print usefull error messages.
If
the gateway encounters any errors during its restart, the process will be automatically
paused for a certain amount of time set in its configuration file. After this delay,
the gateway will try to restart again and enter into pause mode if errors persist.