Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Qmail Logs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dandy_loco
n00b
n00b


Joined: 08 Aug 2007
Posts: 40

PostPosted: Thu May 22, 2008 9:02 am    Post subject: Qmail Logs Reply with quote

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
View user's profile Send private message
xcorpse
n00b
n00b


Joined: 23 Feb 2005
Posts: 2
Location: london

PostPosted: Thu May 22, 2008 9:59 am    Post subject: Re: Qmail Logs Reply with quote

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
View user's profile Send private message
dandy_loco
n00b
n00b


Joined: 08 Aug 2007
Posts: 40

PostPosted: Thu May 22, 2008 11:45 am    Post subject: Reply with quote

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
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Thu May 22, 2008 2:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
dandy_loco
n00b
n00b


Joined: 08 Aug 2007
Posts: 40

PostPosted: Thu May 22, 2008 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Thu May 22, 2008 3:05 pm    Post subject: Reply with quote

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
View user's profile Send private message
dandy_loco
n00b
n00b


Joined: 08 Aug 2007
Posts: 40

PostPosted: Fri May 23, 2008 7:28 am    Post subject: Reply with quote

#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
View user's profile Send private message
m.b.j.
Guru
Guru


Joined: 12 Sep 2003
Posts: 407
Location: Germany (Essen)

PostPosted: Fri May 23, 2008 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
dandy_loco
n00b
n00b


Joined: 08 Aug 2007
Posts: 40

PostPosted: Fri May 23, 2008 7:55 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum