Article View: comp.mail.sendmail
Article #3548Re: logging sendmail with syslogd
From: Michael Poppers
Date: Thu, 08 Feb 1996 00:00
Date: Thu, 08 Feb 1996 00:00
43 lines
2597 bytes
2597 bytes
Ravi Kumar wrote:
>
> In article <4f8seo$oe0@ngriffin.itc.gu.edu.au>, T.Nugent@sct.gu.edu.au says...
> >
> >Linux 1.2.3 (ELF) and 1.3.59 (patch6)
> >sendmail 8.7.3
> >
> >I want to fine-tune the location of my sendmail logs so that they all
> >go into the one file, say /usr/adm/maillog.
> >
> >Presently, it's all going into /usr/adm/messages, but I don't want the
> >mail logs to go there - sendmail creates too much clutter and I would
> >rather keep it all separate.
>
> Hi Tony,
>
> Setup it this way,
>
> mail.warn;mail.notice;mail.err;mail.crit;mail.emerg;mail.debug /usr/adm/mail.lo
> ...
> dont forget to give SIGHUP i.e,
>
> kill -HUP `cat syslog.pid`
>
> Goodluck
>
> RaviMy $0.02: if you want .debug and higher levels (Ravi left out .alert and
.info, perhaps deliberately), just say
mail.debug /usr/adm/maillog
Also, "syslog.pid" may not be in the same (i.e. current) directory as your
shell is when you execute the 'kill' command (and I don't know if Linux
supports the [I believe] BSD-based name-your-signal arg. to 'kill'). The
file should be in the same dir. as the "syslog.conf" (or is it the "syslogd"
executable...or is it both?!) file, which IMHE usually is /etc. Accordingly,
force the daemon to reread the ".conf" by saying
kill -1 `cat /etc/syslog.pid
--
%%%%%%%%%%%%%%%%%% Michael Poppers @ Kaye, Scholer et al., LLP
% Peritus Clavis % 425 Park Avenue #12-07 =**= New York, NY 10022
% Machinae Vivit % tel: 212/836-8299 =***= fax: 212/836-6499,-8689
%%%%%%%%%%%%%%%%%% e-mail: MPoppers@aol.com =**= CIS: 102761,467
Technical Details
Message-ID:
<311A477F.F2@aol.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<4f8seo$oe0@ngriffin.itc.gu.edu.au> <4fb440$k0o@isg.hboc.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10c696,94a1fef176403b9b X-Google-Attributes: gid10c696,public X-Google-Thread: 102983,94a1fef176403b9b X-Google-Attributes: gid102983,public X-Google-Thread: f9b51,94a1fef176403b9b X-Google-Attributes: gidf9b51,public X-Google-Thread: 10669a,94a1fef176403b9b X-Google-Attributes: gid10669a,public X-Google-Thread: 10de99,94a1fef176403b9b X-Google-Attributes: gid10de99,public From: Michael Poppers <MPoppers@aol.com> Subject: Re: logging sendmail with syslogd Date: 1996/02/08 Message-ID: <311A477F.F2@aol.com> X-Deja-AN: 138538893 sender: usenet@clark.zippo.com references: <4f8seo$oe0@ngriffin.itc.gu.edu.au> <4fb440$k0o@isg.hboc.com> content-type: text/plain; charset=us-ascii organization: Kaye, Scholer et al., LLP mime-version: 1.0 newsgroups: comp.mail.sendmail,comp.os.linux.development.apps,comp.os.linux.networking,comp.os.linux.setup,aus.computers.linux x-mailer: Mozilla 2.0 (Win16; I)