View previous topic :: View next topic |
Author |
Message |
dandy_loco n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2007 Posts: 40
|
Posted: Thu May 22, 2008 9:02 am Post subject: Qmail Logs |
|
|
Is there any way to send qmail logs to a remote logs server? This remote server is running syslog-ng.
Thanks in advance. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
xcorpse n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 23 Feb 2005 Posts: 2 Location: london
|
Posted: Thu May 22, 2008 9:59 am Post subject: Re: Qmail Logs |
|
|
dandy_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. |
hi there
there is no default way in qmail to do this, however here's a link to log qmail messages via syslog :
http://qmail.3va.net/qdp/splogger.html
you can then configure the local syslog to log the qmail related messages to the remote syslog-ng server.
regards _________________ no name ... no slogan |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dandy_loco n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2007 Posts: 40
|
Posted: Thu May 22, 2008 11:45 am Post subject: |
|
|
Thanks very much,
I already have modified my file /var/qmail/supervise/qmail-smtpd/run at the following way:
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 &
Now I receive the log but also the following error:
@400000004835593a19e36354 tcpserver: fatal: unable to bind: address already used
Why could it be?
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m.b.j. Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Thu May 22, 2008 2:24 pm Post subject: |
|
|
IMO this indicates another instance of qmail-stmpd is already running on port 25. _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dandy_loco n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2007 Posts: 40
|
Posted: Thu May 22, 2008 2:55 pm Post subject: |
|
|
But it is imposible because it only happens when splogger is activated. In any case, I looked for another instance or other process running in port 25 in the list of processes and did not found anything.
¿Another idea please? Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m.b.j. Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Thu May 22, 2008 3:05 pm Post subject: |
|
|
This shows really nothing?
Code: | netstat --listen -pn | grep 25 |
EDIT: spelling _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dandy_loco n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2007 Posts: 40
|
Posted: Fri May 23, 2008 7:28 am Post subject: |
|
|
#netstat --listen -pn | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 9754/tcpserver
Only one instance. And it only happens when the splogger is activated. Perhaps the problem comes over there. ¿Have I made good use of the command?
/var/qmail/bin/splogger smtpd 3 &
Thanks.
Last edited by dandy_loco on Fri May 23, 2008 7:41 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
m.b.j. Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 12 Sep 2003 Posts: 407 Location: Germany (Essen)
|
Posted: Fri May 23, 2008 7:31 am Post subject: |
|
|
Code: |
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 &
|
Does it work without the final '&' ? _________________ root@mbj # echo "sys-pizza/calzone -tunfish" >> /etc/paludis/use.conf
root@mbj # paludis -i calzone --dl-blocks discard |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dandy_loco n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Aug 2007 Posts: 40
|
Posted: Fri May 23, 2008 7:55 am Post subject: |
|
|
m.b.j. wrote: |
Does it work without the final '&' ? |
Yes, it was that. It works without '&'. I am stupid not to have tried before. Thanks very much for all. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|