Re: Limiting frequency of POP logins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 19, 2003 at 09:11:29PM -0800, Pete Nesbitt wrote:
> On November 19, 2003 06:53 pm, Ed Wilts wrote:
> > So how can we just turn ipop logging off?  It uses the mail syslog
> > facility and I don't want to turn all of the mail logging off, just the
> > ipop connections.  There are currently 3 entries per connection - the
> > pop3 service connection, the user login, and the user logout.  Since my
> > own pop connections are totally within my firewall and restricted to my
> > wife's machine, I don't really need to see them.  I've experimented with
> > the xinetd logging without luck, and short of patching the pop server to
> > not log at all or to a different facility I'm not sure where else too
> > look.
> >
> > Thanks,
> >         .../Ed
> 
> Ed,
> Have a look in xinetd.d in the pop3 file (I don't have a mail server here, so 
> I may be off on the file name). You can set a number if log related 
> peramiters according to the man.
> 
> Here are what you may want to look at:
> log_type  -this can log to a file (not via syslog) that you can control like 
> fs quotas.
> log_on_success  -you can set the type of info to log (reduce clutter)
> log_on_failure  -as above

I haven't played with log_type, but I've experimented with various
combinations of log_on_success and simply can not get it to stop
logging.  I don't have to worry about log_on_failure since there are no
failures - the only system doing pop is my wife's system that I've set
up, and it is always successful.

This is what I've got now:
 
# 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_success -= HOST PID
	log_on_failure	+= HOST
}

There is a default log_on_success in /etc/xinetd.conf that I'm trying to
override by removing that info from my logging.  I still get the
following logged:
Nov 19 21:55:58 p6000 ipop3d[31642]: pop3 service init from 192.168.0.8
Nov 19 21:55:58 p6000 ipop3d[31642]: Login user=twilts host=d800.ewilts.org [192.168.0.8] nmsgs=0/0
Nov 19 21:55:58 p6000 ipop3d[31642]: Logout user=twilts host=d800.ewilts.org [192.168.0.8] nmsgs=0 ndele=0

> If you really want to separate your inside pop logs and the outside pop logs, 

I don't have outside pop logs at all - pop doesn't make it through my
firewall.

-- 
Ed Wilts, Mounds View, MN, USA
mailto:ewilts@xxxxxxxxxx
Member #1, Red Hat Community Ambassador Program


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux