From owner-freebsd-questions Fri Aug 18 6:50:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.bezeqint.net (mail-b.bezeqint.net [192.115.106.24]) by hub.freebsd.org (Postfix) with ESMTP id CB88E37B422 for ; Fri, 18 Aug 2000 06:50:21 -0700 (PDT) Received: from bsd.net.il (bzq-172-190.bezeqint.net) by mail.bezeqint.net (Sun Internet Mail Server sims.3.5.2000.03.23.18.03.p10) with ESMTP id <0FZH00GWCQELM6@mail.bezeqint.net> for freebsd-questions@FreeBSD.ORG; Fri, 18 Aug 2000 16:49:34 +0300 (IDT) Received: (from nimrodm@localhost) by bsd.net.il (8.9.3/8.9.3) id QAA17878 for freebsd-questions@FreeBSD.ORG; Fri, 18 Aug 2000 16:43:54 +0300 (IDT envelope-from nimrodm) Date: Fri, 18 Aug 2000 16:43:54 +0300 From: Nimrod Mesika Subject: Re: Suppressing SENDMAIL messages In-reply-to: <200008180035.e7I0ZDL12758@deborah.paradise.net.nz>; from rshea@opendoor.co.nz on Fri, Aug 18, 2000 at 12:34:53PM +1200 To: freebsd-questions@FreeBSD.ORG Reply-To: nimrodm@email.com Message-id: <20000818164354.B17537@localhost.bsd.net.il> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Mail-Followup-To: freebsd-questions@FreeBSD.ORG User-Agent: Mutt/1.2i References: <200008180035.e7I0ZDL12758@deborah.paradise.net.nz> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Aug 18, 2000 at 12:34:53PM +1200, rshea@opendoor.co.nz wrote: > Hi - I'm getting a lot of error messages from SENDMAIL appearing > on my screen whilst I'm, for instance, in a text editor. This is most > distracting but I don't have time to fix up SENDMAIL at the > moment. Is there some way I can stop these messages appearing > ? I don't mind them going to a log file I just don't want them > bouncing up in front of me all the time. In your /etc/syslog.conf, change the line that reads: *.err;mail.crit /dev/console To: *.err /dev/console That should do it, but if your sendmail isn't doing any useful work, you need not run it at all. Put this line in your /etc/rc.conf file: sendmail_enable="NO" Then just kill the current sendmail process ('killall sendmail' as root, or just reboot). > Along the same lines the source of the emails which SENDMAIL is > having trouble sending is a cron job. It doesn't expliciltly send mail > but the output gets mailed to the job owner (me). Is there some > way I could adapt the job so that cron doesn't email the output to > me ? Not sure about this one. If you look at /etc/crontab you will see the the output of the periodic jobs is mailed to root. You can try and remove the '| sendmail root' and see if that helps. The cron(8) man page says, however, that all cron output is mailed to the owner of the job (in your case - root). If you want to change that try adding the following line at the beginning of /etc/crontab: MAILTO= (nothing after the = sign should tell cron not to send mail as output. If you change that to MAILTO=yourusername it will mail everything to you). -- Nimrod. http://www.geocities.com/rodd_27 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message