[Tfug] mail logs
Michael Stenner
mstenner at ece.arizona.edu
Tue Jul 13 13:14:13 MST 2004
On Tue, Jul 13, 2004 at 11:06:20AM -0700, elemint at theriver.com wrote:
> >Try this one:
>
> > grep mail.log /etc/logrotate.conf /etc/logrotate.d/*
>
> There is no output returned when I enter the below command.
>
> grep mail.log /etc/logrotate.conf /etc/logrotate.d/*
Well, if mail.log is getting rotated, then something is doing that.
It need not be logrotate, but I'd be really surprised if it were
something else. Look in logrotate.conf and any included files
(recursively, if necessary). Eventually, you will find mail.log or
something that expands to mail.log. For example, *.log. You'll just
need to understand enough of logrotate's config to figure out where
mail.log is getting rotated.
-Michael
> > On Tue, Jul 13, 2004 at 10:55:03AM -0700, elemint at theriver.com wrote:
> >> > Find the filename that contains the postfix log messages. Then find
> >> > the logrotate config file that rotates that log file. This may be
> >> > different for different distros so I can't just tell you which file.
> >> > This should not be hard, though.
> >>
> >> This is on a Debian system and when I ls /etc/logrote.d
> >>
> >> The file name that contains the postfix log messages is
> >> /var/log/mail.log
> >>
> >> I tried all three of these with nothing returned:
> >>
> >> # locate mail.log |grep logrotate
> >> # locate postfix |grep logrotate
> >> # locate mail |grep logrotate
> >
> > I'm not sure what that's meant to do. Try this one:
> >
> > grep mail.log /etc/logrotate.conf /etc/logrotate.d/*
> >
> > -Michael
> >
> > --
> > Michael D. Stenner mstenner at ece.arizona.edu
> > ECE Department, the University of Arizona 520-626-1619
> > 1230 E. Speedway Blvd., Tucson, AZ 85721-0104 ECE 524G
> > _______________________________________________
> > tfug mailing list
> > tfug at tfug.org
> > https://www.tfug.org/mailman/listinfo/tfug
> >
>
> _______________________________________________
> tfug mailing list
> tfug at tfug.org
> https://www.tfug.org/mailman/listinfo/tfug
--
Michael D. Stenner mstenner at ece.arizona.edu
ECE Department, the University of Arizona 520-626-1619
1230 E. Speedway Blvd., Tucson, AZ 85721-0104 ECE 524G
More information about the tfug
mailing list