From owner-freebsd-questions@FreeBSD.ORG Wed May 26 07:23:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1174D16A4CE for ; Wed, 26 May 2004 07:23:20 -0700 (PDT) Received: from mail.8ball.co.za (8ball.co.za [196.22.201.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D58043D55 for ; Wed, 26 May 2004 07:23:17 -0700 (PDT) (envelope-from nelis@8ball.co.za) Received: (qmail 69823 invoked by uid 89); 26 May 2004 14:22:27 -0000 Received: from unknown (HELO ?192.168.10.9?) (192.168.10.9) by 192.168.10.1 with SMTP; 26 May 2004 14:22:27 -0000 From: Nelis Lamprecht To: Jonathon McKitrick In-Reply-To: <20040526122707.GB91911@dogma.freebsd-uk.eu.org> References: <20040524141558.GB48389@dogma.freebsd-uk.eu.org> <20040525143126.GB78314@dogma.freebsd-uk.eu.org> <20040526084314.GA11303@lb.tenfour> <20040526122707.GB91911@dogma.freebsd-uk.eu.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-3/m1GbL7YMd3eJ0Pcyb7" Organization: 8ball Network Solutions Message-Id: <1085581327.8816.21.camel@nelis.brabys.co.za> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 26 May 2004 16:22:26 +0200 cc: FreeBSD Questions Mail List Subject: Re: Repeated connections to port 25 with firewall X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: nelis@8ball.co.za List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 May 2004 14:23:20 -0000 --=-3/m1GbL7YMd3eJ0Pcyb7 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2004-05-26 at 14:27, Jonathon McKitrick wrote: > : When local processes want to mail, they fork n exec a sendmail binary=20 > : themselves. > :=20 > : You shouldn't need a sendmail server running for that. >=20 > Here is what I have/had in rc.conf >=20 > #sendmail_enable=3D"no" > #sendmail_submit_enable=3D"no" > #sendmail_outbound_enable=3D"no" > #sendmail_msp_queue_enable=3D"no" >=20 > And as soon as I restarted after commenting out these lines, root's mailb= ox > got filled with megs of mail from cron. I want the minimum I need to get > system mail without leaving an instance of sendmail vulnerable to attack = or > eating up resources. >=20 You can replace all of the above with sendmail_enable=3D"NONE" Not sure if it has already been pointed out to you but you can change the behaviour of periodic jobs on your system. By default all the jobs are mailed to root but you can have those jobs logged to a file instead. Simply copy the periodic.conf file from /etc/defaults to /etc and change it to your liking eg. instead of having daily_output=3D"root" which sends a mail to root you can have it log to a file daily_output=3D"/var/log/daily.log" Same apply's for weekly and monthly jobs. Personally I find it annoying when it sends out a mail for each job so I change it to log to a file instead which I can check periodically ( excuse the pun ;) As a side note if you don't want your cron jobs to output anything add a > /dev/null 2>&1 at the end of them. Cheers, --=20 Nelis Lamprecht PGP: http://www.8ball.co.za/pgpkey/nelis.asc "Unix IS user friendly.. It's just selective about who its friends are." --=-3/m1GbL7YMd3eJ0Pcyb7 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBAtKgPQfIMKiRMCrERAtjEAJ4tlHfTB85A0kcj0xpveE565VBqYgCguAc3 NofUmSVd61vbDq9Nht//cTw= =iPdl -----END PGP SIGNATURE----- --=-3/m1GbL7YMd3eJ0Pcyb7--