Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Qmail Logs

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
dandy_loco
n00b
n00b
Posts: 40
Joined: Wed Aug 08, 2007 10:38 pm

Qmail Logs

  • Quote

Post by dandy_loco » Thu May 22, 2008 9:02 am

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

Thanks in advance.
Top
xcorpse
n00b
n00b
Posts: 2
Joined: Wed Feb 23, 2005 2:25 pm
Location: london

Re: Qmail Logs

  • Quote

Post by xcorpse » Thu May 22, 2008 9:59 am

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
Top
dandy_loco
n00b
n00b
Posts: 40
Joined: Wed Aug 08, 2007 10:38 pm

  • Quote

Post by dandy_loco » Thu May 22, 2008 11:45 am

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.
Top
m.b.j.
Guru
Guru
Posts: 407
Joined: Fri Sep 12, 2003 12:16 pm
Location: Germany (Essen)

  • Quote

Post by m.b.j. » Thu May 22, 2008 2:24 pm

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
Top
dandy_loco
n00b
n00b
Posts: 40
Joined: Wed Aug 08, 2007 10:38 pm

  • Quote

Post by dandy_loco » Thu May 22, 2008 2:55 pm

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.
Top
m.b.j.
Guru
Guru
Posts: 407
Joined: Fri Sep 12, 2003 12:16 pm
Location: Germany (Essen)

  • Quote

Post by m.b.j. » Thu May 22, 2008 3:05 pm

This shows really nothing?

Code: Select all

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
Top
dandy_loco
n00b
n00b
Posts: 40
Joined: Wed Aug 08, 2007 10:38 pm

  • Quote

Post by dandy_loco » Fri May 23, 2008 7:28 am

#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.
Top
m.b.j.
Guru
Guru
Posts: 407
Joined: Fri Sep 12, 2003 12:16 pm
Location: Germany (Essen)

  • Quote

Post by m.b.j. » Fri May 23, 2008 7:31 am

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 & 
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
Top
dandy_loco
n00b
n00b
Posts: 40
Joined: Wed Aug 08, 2007 10:38 pm

  • Quote

Post by dandy_loco » Fri May 23, 2008 7:55 am

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.
Top
Post Reply

9 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic