From owner-freebsd-questions Wed Nov 6 0:56:50 2002 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 2DAB237B401 for ; Wed, 6 Nov 2002 00:56:48 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 603E243E4A for ; Wed, 6 Nov 2002 00:56:46 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id gA68uYMO022706 for ; Wed, 6 Nov 2002 08:56:34 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id gA68uTdb022705 for freebsd-questions@FreeBSD.ORG; Wed, 6 Nov 2002 08:56:29 GMT Date: Wed, 6 Nov 2002 08:56:29 +0000 From: Matthew Seaman To: FreeBSD-Questions Subject: Re: Sendmail questions Message-ID: <20021106085629.GA22235@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , FreeBSD-Questions References: <20021106053258.GA8164@kumprang.or.id> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021106053258.GA8164@kumprang.or.id> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-13.8 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, TO_LOCALPART_EQ_REAL,USER_AGENT,USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Nov 06, 2002 at 12:32:58PM +0700, budsz wrote: > Hi, > > I got some message from cron daemon like: > > ---cut > Mail in local queue: > > Mail in submit queue: > mailq: illegal option -- A > sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname] [ -bp ] [ -bs ] > [ arg... ] > ---cut > > Whereas I was try to disable sendmail daemon from /etc/rc.conf like: > > ---cut > # Settings for /etc/rc.sendmail: > sendmail_enable="NONE" # Run the sendmail inbound daemon (YES/NO/NONE). If you have the above, all of the rest of these sendmail settings are ignored. > sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server) > sendmail_submit_enable="NO" # Start a localhost-only MTA for mail submission > sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost" > sendmail_outbound_enable="NO" # Dequeue stuck mail (YES/NO). > sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only) > sendmail_msp_queue_enable="NO" # Dequeue stuck clientmqueue mail (YES/NO). > sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m" # Flags for sendmail_msp_queue daemon. > ---cut > > How to resolve this problem? > > PS : Now I use qmail system for email. I presume you've got mailwrapper set up such that /usr/sbin/sendmail will pipe messages into qmail, rather than the standard BSD sendmail --- check the contents of /etc/mail/mailer.conf if you need to make sure. In which case, you don't have any sort of problem apparent with your mail system. What you do have is the FreeBSD periodic(8) system running scripts that use BSD sendmail specific flags. Other than annoying error messages in your daily e-mail, that has no deleterious effect. You can suppress the error message by turning off the check for messages in the submit queue. Add: daily_submit_queuerun="NO" to /etc/periodic.conf (If /etc/periodic.conf doesn't exist, just create it with that line as the only contents). See /etc/defaults/periodic.conf for all the possible settings to tweak --- instructions on how to do that are in the comments at the top of the file. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message