From owner-freebsd-questions@FreeBSD.ORG Mon Nov 1 19:19:37 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 292AC16A4CE for ; Mon, 1 Nov 2004 19:19:37 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF5B843D2D for ; Mon, 1 Nov 2004 19:19:35 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])iA1JJNAw006909 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 1 Nov 2004 19:19:23 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)iA1JJNnq006908; Mon, 1 Nov 2004 19:19:23 GMT (envelope-from matthew) Date: Mon, 1 Nov 2004 19:19:23 +0000 From: Matthew Seaman To: Steel City Phantom Message-ID: <20041101191923.GA6694@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Steel City Phantom , questions@freebsd.org References: <418680B7.5020100@yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <418680B7.5020100@yahoo.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 01 Nov 2004 19:19:23 +0000 (GMT) X-Virus-Scanned: clamd / ClamAV version devel-20040904, clamav-milter version 0.75l on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=ham version=3.0.1 X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on happy-idiot-talk.infracaninophile.co.uk cc: questions@freebsd.org Subject: Re: sendmail config double check X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2004 19:19:37 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Nov 01, 2004 at 01:30:15PM -0500, Steel City Phantom wrote: > my bsd LAMP machine won't send any emails through php. i just wanted to= =20 > doublecheck my rc.conf with you guys to make sure i have it right. here= =20 > are the settings >=20 > sendmail_enable=3D"NO" > sendmail_submit_enable=3D"NO" > sendmail_outbound_enable=3D"YES" >=20 > now, if my brain is straight, these settings should reject outside=20 > systems from trying to route mail through this machine, but the machine= =20 > itself can generate and send mail. am i right? sendmail_enable=3D"NO" --- implies: don't run a sendmail process listening on port 25 for incoming connections over the 'net. CORRECT. sendmail_submit_enable=3D"NO" --- implies: don't run a sendmail MTA process listening on the loopback address. WRONG. You can't send e-mail without an MTA process in there somewhere, and this setting is expressly designed for 'send-only' machines. =20 sendmail_outbound_enable=3D"YES -- implies: flush the sendmail MTA queue at intervals. IRRELEVANT. You don't need this if you run the 'sendmail_submit_enable' instance above, and in fact, rc.sendmail will ignore this setting if you have 'sendmail_submit_enable=3D"YES"'. You should also have 'sendmail_msp_queue_enable=3D"YES"' which will flush any emails stuck in the submission queue. But that's the default anyhow. In summary, you want: sendmail_enable=3D"NO" sendmail_submit_enable=3D"YES" sendmail_outbound_enable=3D"NO" sendmail_msp_queue_enable=3D"YES" I'm not exactly sure how PHP sends e-mail on a Unix system. The choices are either that it speaks SMTP directly to an MTA (which in this case will have to be localhost port 25), or else it does what all good unix programs should do, which is to pipe the message into the STDIN of /usr/sbin/sendmail. The config above should work for both of those cases. You will possibly need to fiddle with /etc/mail/`hostname`.mc to setup a smart host as the next MTA to pass the message to -- see the comments in that file for details. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBhow6iD657aJF7eIRAnoQAJ9k0xvHqd0asdLi+cEGYmiXRPjAFQCffveL Dob7vhmUmbMwMlLe/jFD0gQ= =bGah -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--