Date: Fri, 18 Aug 2000 16:43:54 +0300 From: Nimrod Mesika <nimrodm@bezeqint.net> To: freebsd-questions@FreeBSD.ORG Subject: Re: Suppressing SENDMAIL messages Message-ID: <20000818164354.B17537@localhost.bsd.net.il> In-Reply-To: <200008180035.e7I0ZDL12758@deborah.paradise.net.nz>; from rshea@opendoor.co.nz on Fri, Aug 18, 2000 at 12:34:53PM %2B1200 References: <200008180035.e7I0ZDL12758@deborah.paradise.net.nz>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000818164354.B17537>