Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Mike Burger
You could try commenting out the log_on_failure and log_on_success 
lines in the /etc/xined.d/ipop3 file.

On Wed, 27 Nov 2002, Ed Wilts wrote:

 I'm interested in disabling the logging for pre-determined services.
 What's the catch to making this work?  Specifically, I want *no* logging
 on ipop3 - it's disabled at the firewall and I don't need to fill my
 maillog with logs of my wife's fetches every few minutes.  I'm currently
 using defaults for xinetd.conf and xinetd.d/ipop3 and every combination
 I've tried for log_on_success and log_on_failure hasn't worked.
 
 Any pointers greatly appreciated.
 
 Thanks,
 .../Ed
 

-- 
Mike Burger
http://www.bubbanfriends.org

Visit the Dog Pound II BBS
telnet://dogpound2.citadel.org or http://dogpound2.citadel.org:2000



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 27 Nov 2002 22:49:13 -0600, Ed Wilts wrote:

 I'm interested in disabling the logging for pre-determined services.
 What's the catch to making this work?  Specifically, I want *no*
 logging on ipop3 - it's disabled at the firewall and I don't need to
 fill my maillog with logs of my wife's fetches every few minutes.  I'm
 currently using defaults for xinetd.conf and xinetd.d/ipop3 and every
 combination I've tried for log_on_success and log_on_failure hasn't
 worked.
 
 Any pointers greatly appreciated.

I'd suggest log_type = FILE filename and then rotating that file
periodically to keep it short.

- -- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE95gYc0iMVcrivHFQRArTgAJ4o2xhkATR34X9Eh0ivHxUeZAF6PwCfWO29
/AIjmzDIqj9D7MlDrx3cMWo=
=eLiQ
-END PGP SIGNATURE-



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Ed Wilts
On Thu, Nov 28, 2002 at 01:03:40PM +0100, Michael Schwendt wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Wed, 27 Nov 2002 22:49:13 -0600, Ed Wilts wrote:
 
  I'm interested in disabling the logging for pre-determined services.
  What's the catch to making this work?  Specifically, I want *no*
  logging on ipop3 - it's disabled at the firewall and I don't need to
  fill my maillog with logs of my wife's fetches every few minutes.  I'm
  currently using defaults for xinetd.conf and xinetd.d/ipop3 and every
  combination I've tried for log_on_success and log_on_failure hasn't
  worked.
  
 I'd suggest log_type = FILE filename and then rotating that file
 periodically to keep it short.

I did that and the file is being created, but the entries are stil
ending up in the maillog.

# default: off
# description: The POP3 service allows remote users to access their mail \
#  using an POP3 client such as Netscape Communicator, mutt, \
#  or fetchmail.
service pop3
{
disable = no
socket_type = stream
wait= no
user= root
server  = /usr/sbin/ipop3d
log_on_success  += HOST DURATION
log_on_failure  += HOST
log_type= FILE /var/log/ipop3
}

Here's a typical sequence of what's in the maillog:
Nov 28 09:55:03 www ipop3d[9502]: pop3 service init from 192.168.0.4
Nov 28 09:55:04 www ipop3d[9502]: Login user=twilts host=d800.ewilts.org [192.168.0.2] 
nmsgs=0/0
Nov 28 09:55:04 www ipop3d[9502]: Logout user=twilts host=d800.ewilts.org 
[192.168.0.2] nmsgs=0 ndele=0

Any other ideas?  I would have thought that this would be easy, but it's
not turning out to be...

Thanks,
.../Ed
-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 28 Nov 2002 10:02:39 -0600, Ed Wilts wrote:

  On Wed, 27 Nov 2002 22:49:13 -0600, Ed Wilts wrote:
  
   I'm interested in disabling the logging for pre-determined
   services. What's the catch to making this work?  Specifically, I
   want *no* logging on ipop3 - it's disabled at the firewall and I
   don't need to fill my maillog with logs of my wife's fetches every
   few minutes.  I'm currently using defaults for xinetd.conf and
   xinetd.d/ipop3 and every combination I've tried for log_on_success
   and log_on_failure hasn't worked.
   
  I'd suggest log_type = FILE filename and then rotating that file
  periodically to keep it short.
 
 I did that and the file is being created, but the entries are stil
 ending up in the maillog.
 
 # default: off
 # description: The POP3 service allows remote users to access their
 # mail \
 #  using an POP3 client such as Netscape Communicator,
 #  mutt, \
 #or fetchmail.
 service pop3
 {
   disable = no
   socket_type = stream
   wait= no
   user= root
   server  = /usr/sbin/ipop3d
   log_on_success  += HOST DURATION
   log_on_failure  += HOST
   log_type= FILE /var/log/ipop3
 }
 
 Here's a typical sequence of what's in the maillog:
 Nov 28 09:55:03 www ipop3d[9502]: pop3 service init from 192.168.0.4
 Nov 28 09:55:04 www ipop3d[9502]: Login user=twilts
 host=d800.ewilts.org [192.168.0.2] nmsgs=0/0 Nov 28 09:55:04 www
 ipop3d[9502]: Logout user=twilts host=d800.ewilts.org [192.168.0.2]
 nmsgs=0 ndele=0
 
 Any other ideas?  I would have thought that this would be easy, but
 it's not turning out to be...

It seems log_type does only work for xinetd itself. Looking at the
source code of ipop3d from the imap package, all logging is
hardcoded. :(

- -- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE95khi0iMVcrivHFQRAv+mAJkBvfLO2j06FAB7wUcGZZTpZyhKVgCfXqTs
CTLr7hnsV7dYc2U0lLbj9/o=
=D15H
-END PGP SIGNATURE-



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



RE: xinetd logging - disable logging for specific services

2002-11-28 Thread Shaw, Marco
  I'm interested in disabling the logging for pre-determined services. 
  What's the catch to making this work?  Specifically, I want *no* 

 I'd suggest log_type = FILE filename and then rotating that file 
 periodically to keep it short.

Perhaps I missed part of the discussion, but what about /etc/syslog.conf?

Marco



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Ed Wilts
On Thu, Nov 28, 2002 at 01:01:56PM -0400, Shaw, Marco wrote:
   I'm interested in disabling the logging for pre-determined services. 
   What's the catch to making this work?  Specifically, I want *no* 
 
  I'd suggest log_type = FILE filename and then rotating that file 
  periodically to keep it short.
 
 Perhaps I missed part of the discussion, but what about /etc/syslog.conf?

syslog.conf puts the mail.* logs to /var/log/maillog.  The issue is that
ipop3 uses the same facility.  Somebody else (and I accidently deleted
the message before I replied!) said he checked the source and all the
logging is hard-coded so I'm stuck.  

Cheers,
.../Ed
-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 28 Nov 2002 13:08:02 -0600, Ed Wilts wrote:

 syslog.conf puts the mail.* logs to /var/log/maillog.  The issue is
 that ipop3 uses the same facility.  Somebody else (and I accidently
 deleted the message before I replied!) said he checked the source and
 all the logging is hard-coded so I'm stuck.  

Are you able [and willing] to patch the imap package and build a
non-logging ipop3d? If so, feel free to insert attached patch into
the package spec file and rebuild it. ipop3d would then not log
anything any longer (= a real nasty hack). Alternatively, one could
drop specific log messages from the source code and keep important
ones, e.g. those with log priority alert. Just two files which you
would need to edit and uncomment the lines calling syslog.
Shouldn't be difficult.

- -- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE95nlx0iMVcrivHFQRAigWAJ93XB3LI9JpxLWM9FZGeVwDJZEcvwCfWAL6
8/fjYzWG4IUhyEBZb4NvO+I=
=F9aZ
-END PGP SIGNATURE-



imap-2001a-ipop3d-nosyslog.patch
Description: Binary data


Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Ed Wilts
On Thu, Nov 28, 2002 at 09:15:45PM +0100, Michael Schwendt wrote:
 On Thu, 28 Nov 2002 13:08:02 -0600, Ed Wilts wrote:
 
  syslog.conf puts the mail.* logs to /var/log/maillog.  The issue is
  that ipop3 uses the same facility.  Somebody else (and I accidently
  deleted the message before I replied!) said he checked the source and
  all the logging is hard-coded so I'm stuck.  
 
 Are you able [and willing] to patch the imap package and build a
 non-logging ipop3d? If so, feel free to insert attached patch into
 the package spec file and rebuild it. ipop3d would then not log
 anything any longer (= a real nasty hack). Alternatively, one could
 drop specific log messages from the source code and keep important
 ones, e.g. those with log priority alert. Just two files which you
 would need to edit and uncomment the lines calling syslog.

Hi Michael,

I'm both able and willing to patch it, but I'd prefer to see a patch
that simply moved the logging facility from mail.* to ipop3.*.  That
would allow all the logging to still continue, but move them to a
separate file with a new entry in syslog.conf.  Is this difficult?  I'm
not much of a C programmer...

Thanks,
.../Ed

-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Michael Schwendt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 28 Nov 2002 17:57:43 -0600, Ed Wilts wrote:

 I'm both able and willing to patch it, but I'd prefer to see a patch
 that simply moved the logging facility from mail.* to ipop3.*.  That
 would allow all the logging to still continue, but move them to a
 separate file with a new entry in syslog.conf.  Is this difficult? 
 I'm not much of a C programmer...

It is impossible with syslogd, because there is no facility called
ipop3. See man syslog.conf. You could make it log to a less
used facility, e.g. local0.* to local7.*. It would be done by
changing a single line in c-client/env_unix.c from

openlog (server,LOG_PID,LOG_MAIL);

to

openlog (server,LOG_PID,LOG_LOCAL0);

- -- 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.6 (GNU/Linux)

iD8DBQE95sA+0iMVcrivHFQRArxkAJ4tDeWiLJJPLvPC8JYP78HUaxDpIwCeOobu
AJJo3/v9cU+nKDNJi/nvWDA=
=QSzM
-END PGP SIGNATURE-



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



Re: xinetd logging - disable logging for specific services

2002-11-28 Thread Ed Wilts
On Fri, Nov 29, 2002 at 02:17:50AM +0100, Michael Schwendt wrote:
 It is impossible with syslogd, because there is no facility called
 ipop3. See man syslog.conf. You could make it log to a less
 used facility, e.g. local0.* to local7.*. It would be done by
 changing a single line in c-client/env_unix.c from
 
 openlog (server,LOG_PID,LOG_MAIL);
 
 to
 
 openlog (server,LOG_PID,LOG_LOCAL0);

Thanks!  I fixed it by creating my patch based on the latest source rpm,
editing the spec file, and then rebuilding the rpm.  It seems to work
like I want it to so far.

Thanks for pointing me in the right direction!  My maillog is cleaner
now.

Cheers,
.../Ed
-- 
Ed Wilts, Mounds View, MN, USA
mailto:[EMAIL PROTECTED]
Member #1, Red Hat Community Ambassador Program



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list