Date: Wed, 26 May 2004 16:22:26 +0200 From: Nelis Lamprecht <nelis@8ball.co.za> To: Jonathon McKitrick <jcm@FreeBSD-uk.eu.org> Cc: FreeBSD Questions Mail List <questions@freebsd.org> Subject: Re: Repeated connections to port 25 with firewall Message-ID: <1085581327.8816.21.camel@nelis.brabys.co.za> In-Reply-To: <20040526122707.GB91911@dogma.freebsd-uk.eu.org> References: <20040524141558.GB48389@dogma.freebsd-uk.eu.org> <MIEPLLIBMLEEABPDBIEGIEFNFPAA.Barbish3@adelphia.net> <20040525143126.GB78314@dogma.freebsd-uk.eu.org> <20040526084314.GA11303@lb.tenfour> <20040526122707.GB91911@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1085581327.8816.21.camel>