From owner-freebsd-questions@FreeBSD.ORG Mon Nov 1 19:44:07 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 E60D316A4CE for ; Mon, 1 Nov 2004 19:44:07 +0000 (GMT) Received: from ms-smtp-01.tampabay.rr.com (ms-smtp-01-smtplb.tampabay.rr.com [65.32.5.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 83E5E43D48 for ; Mon, 1 Nov 2004 19:44:07 +0000 (GMT) (envelope-from scphantm@yahoo.com) Received: from [192.168.0.2] (24286hfc39.tampabay.rr.com [24.28.6.39]) iA1Ji4lM018787; Mon, 1 Nov 2004 14:44:04 -0500 (EST) Message-ID: <4186922C.8000404@yahoo.com> Date: Mon, 01 Nov 2004 14:44:44 -0500 From: Steel City Phantom User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en To: Matthew Seaman References: <418680B7.5020100@yahoo.com> <20041101191923.GA6694@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20041101191923.GA6694@happy-idiot-talk.infracaninophile.co.uk> Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.1 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:44:08 -0000 ok, cool. thanks. next simple question, once i change these, how do i get sendmail to pick up the new settings without rebooting the server? Matthew Seaman wrote: 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 doublecheck my rc.conf with you guys to make sure i have it right. here are the settings sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="YES" now, if my brain is straight, these settings should reject outside systems from trying to route mail through this machine, but the machine itself can generate and send mail. am i right? sendmail_enable="NO" --- implies: don't run a sendmail process listening on port 25 for incoming connections over the 'net. CORRECT. sendmail_submit_enable="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. sendmail_outbound_enable="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="YES"'. You should also have 'sendmail_msp_queue_enable="YES"' which will flush any emails stuck in the submission queue. But that's the default anyhow. In summary, you want: sendmail_enable="NO" sendmail_submit_enable="YES" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="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