Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Nov 2002 08:56:29 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        FreeBSD-Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Sendmail questions
Message-ID:  <20021106085629.GA22235@happy-idiot-talk.infracaninophi>
In-Reply-To: <20021106053258.GA8164@kumprang.or.id>
References:  <20021106053258.GA8164@kumprang.or.id>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021106085629.GA22235>