Is there any way to send qmail logs to a remote logs server? This remote server is running syslog-ng.
Thanks in advance.

hi theredandy_loco wrote:Is there any way to send qmail logs to a remote logs server? This remote server is running syslog-ng.
Thanks in advance.


Code: Select all
netstat --listen -pn | grep 25
Code: Select all
SERVICE=smtp
. /var/qmail/bin/qmail-config-system && \
exec /usr/bin/softlimit ${SOFTLIMIT_OPTS} \
${QMAIL_TCPSERVER_PRE} \
/usr/bin/tcpserver ${TCPSERVER_OPTS} -x ${TCPSERVER_RULESCDB} \
-c ${MAXCONN} -u ${QMAILDUID} -g ${NOFILESGID} \
${TCPSERVER_HOST} ${TCPSERVER_PORT} \
${QMAIL_SMTP_PRE} /var/qmail/bin/qmail-${SERVICE}d ${QMAIL_SMTP_POST} \
2>&1 | /var/qmail/bin/splogger smtpd 3 &
