From owner-freebsd-current Fri Mar 29 17: 1: 2 2002 Delivered-To: freebsd-current@freebsd.org Received: from pc3-cove5-0-cust178.bir.cable.ntl.com (pc3-cove5-0-cust178.bir.cable.ntl.com [213.105.113.178]) by hub.freebsd.org (Postfix) with ESMTP id A530A37B41F; Fri, 29 Mar 2002 17:00:52 -0800 (PST) Received: from ntlworld.com (alpha.private.lan [192.168.0.2]) by pc3-cove5-0-cust178.bir.cable.ntl.com (8.11.6/8.11.6) with ESMTP id g2U10lP98489; Sat, 30 Mar 2002 01:00:47 GMT (envelope-from ianjhart@ntlworld.com) Message-ID: <3CA50E3F.43E719DF@ntlworld.com> Date: Sat, 30 Mar 2002 01:00:47 +0000 From: ian j hart X-Mailer: Mozilla 4.79 [en] (X11; U; Linux 2.4.2 i386) X-Accept-Language: en MIME-Version: 1.0 To: Gregory Neil Shapiro Cc: freebsd-current@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: Another possible solution for non-sendmail users References: <15523.14636.146301.834847@horsey.gshapiro.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Okay, I have this running in (4.5) stable. A few lines caused some problems. To get it working I did this --- /usr/src/etc/sendmail/rc.sendmail Fri Mar 29 19:50:55 2002 +++ /etc/rc.sendmail Fri Mar 29 21:22:52 2002 @@ -47,15 +47,15 @@ fi # The sendmail binary -sendmail_program?= /usr/sbin/sendmail +sendmail_program=/usr/sbin/sendmail # The pid is used to stop and restart the running daemon(s). -sendmail_pidfile?= /var/run/sendmail.pid -sendmail_mspq_pidfile?= /var/spool/clientmqueue/sm-client.pid +sendmail_pidfile=/var/run/sendmail.pid +sendmail_mspq_pidfile=/var/spool/clientmqueue/sm-client.pid # If no argument is given, assume we are being called at boot time. -_action= ${1:-boot} -_script= ${0:-/etc/rc.sendmail} +_action=${1:-boot} +_script=${0:-/etc/rc.sendmail} case ${_action} in boot) Is sh different in current? /etc/mail/Makefile host#make restart Syntax error: end of file unexpected (expecting "fi") *** Error code 2 Stop in /etc/mail. Is make different in current? Unfortunately (for me anyway) you can't just drop rc.sendmail(.sh) in /usr/local/etc/rc.d because "start" starts the mta but not the mspq and "stop" stops the mta but not the mspq Hmmm, It's deja vu all over again. It's not too difficult to write a startup script, but it duplicates much of the code in rc.sendmail. Which seems like a waste to me. -- ian j hart To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message