System logs such as
/var/log/maillog and many others are no longer being created or are empty.
The problem can be caused by a myriad of things, however, the most common involve checking the functionality of rsyslog.
You can perform manual tests by sending messages to these logs using the logger utility.
logger -p mail.info "cPtech TEST"
This example will cause a log entry with the
info severity to be written to the mail log which is normally
/var/log/maillog as specified in the
The result would look like this in
Jan 8 12:22:35 host-server cptech: cPTECH TEST
If the test is not working then this means something else is wrong. For a final basic check, please make sure that your server has a valid socket file that Systemd uses under the following path:
If the file is missing simply issue the following 3 commands to allow it to rebuild:
systemctl restart systemd-journald.socket
systemctl restart systemd-journald
systemctl restart rsyslog