Unix Syslog integration

Background informations

Jsmtpd uses Log4j to handle log messages. Log4j provides the ability to send messages to a syslog daemon, using UDP packets. Theses packets are sent on port 514 to the syslog server.

So, if you have a firewall or a filtering device, verify that you have allowed this kind of traffic.

Configure your syslog daemon

Edit your syslog.conf configuration file or your /etc/init.d/syslog startup script. You need to find a variable called : SYSLOGD, it contains the syslogd options. Modify it this way :

 SYSLOGD="-r -m 0"

Restart your daemon with /etc/init.d/syslog restart or /etc/init.d/sysklogd restart, depending on your Linux distribution.

Configure Jsmtpd

Edit your etc/jsmtpd.ini file, and set the syslogServer property to the ip of your syslog server :

 syslogServer=192.168.10.5

Restart Jsmtpd, and you should see Jsmtpd's log messages going to MAIL facility