From owner-freebsd-questions Mon May 27 4:15:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mirapoint2.brutele.be (mirapoint2.brutele.be [212.68.193.7]) by hub.freebsd.org (Postfix) with ESMTP id 18E6F37B407 for ; Mon, 27 May 2002 04:15:10 -0700 (PDT) Received: from gateway.lefort.net ([213.189.162.78]) by mirapoint2.brutele.be (Mirapoint) with ESMTP id AYO29225; Mon, 27 May 2002 13:15:07 +0200 (CEST) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 2336E1553F for ; Mon, 27 May 2002 13:15:05 +0200 (CEST) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 7975A22E14 for ; Mon, 27 May 2002 13:15:04 +0200 (CEST) Date: Mon, 27 May 2002 13:15:04 +0200 From: Jean-Yves Lefort To: Questions Subject: weird /etc/periodic and Postfix interaction Message-Id: <20020527131504.7eaa83bc.jylefort@brutele.be> X-Mailer: Sylpheed version 0.7.6 (GTK+ 1.2.10; i386-portbld-freebsd4.6) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Hi, I have noticed the following error message appearing repeatedly in my system logs: May 27 11:06:03 jsite postfix/sendmail[71265]: fatal: usage: sendmail [options] After some investigation it seems that this message is provoked by the daily jobs trying to mail the results. The weird thing is that I receive the results as usual without any problem, only Postfix issues this error. Relevant /var/log/maillog section: May 27 11:06:03 jsite postfix/pickup[70050]: 5BEA122EEB: uid=0 from= May 27 11:06:03 jsite postfix/cleanup[71240]: 5BEA122EEB: message-id=<20020527090603.5BEA122EEB@jsite.lefort.net> May 27 11:06:03 jsite postfix/qmgr[240]: 5BEA122EEB: from=, size=16816, nrcpt=1 (queue active) May 27 11:06:03 jsite postfix/sendmail[71265]: fatal: usage: sendmail [options] May 27 11:06:15 jsite postfix/local[71260]: 5BEA122EEB: to=, relay=local, delay=12, status=sent ("|/usr/local/bin/procmail") By the way, the message with ID 5BEA122EEB which should not be received due to a "fatal error", is in fact received correctly. At this point I noticed that 'postfix/sendmail' should not be invoked, since the mail is local, but hear more: After looking into /usr/sbin/periodic, I retrieved the exact command used to send that mail: | mail -s "blah" root (root is /etc/mail/alias'ed to my personal account, jylefort) So, I logged in as root (to have the mail sent as root, like in the real situation): $ echo test | mail -s "blah" root May 27 12:50:51 jsite postfix/pickup[18372]: A42B722EEB: uid=0 from= May 27 12:50:51 jsite postfix/cleanup[19797]: A42B722EEB: message-id=<20020527105051.A42B722EEB@jsite.lefort.net> May 27 12:50:51 jsite postfix/qmgr[240]: A42B722EEB: from=, size=307, nrcpt=1 (queue active) May 27 12:50:59 jsite postfix/local[19798]: A42B722EEB: to=, relay=local, delay=8, status=sent ("|/usr/local/bin/procmail") This time, you can see that postfix/sendmail is (logically) not invoked, and everything is fine. I analyzed whole /etc/periodic and /usr/sbin/periodic, and I can't see where is the problem. Important detail: as far as I can remember I never encountered this error before some days/weeks ago, it probably appeared with some recent cvsup && make world. By the way I diffed the FreeBSD's CVS repository in search of relevant changes in /etc/periodic or /usr/sbin/periodic, and I found nothing suspect. My config: $ uname -a FreeBSD jsite.lefort.net 4.6-RC FreeBSD 4.6-RC #2: Sun May 19 02:35:00 CEST 2002 jylefort@jsite.lefort.net:/usr/obj/usr/src/sys/JSITE i386 $ pkg_info 'postfix*' | head -n 1 Information for postfix-1.1.7,1: Experience reminds me that such apparently weird problems usually have trivial solutions; any help will be _greatly_ appreciated :) Regards, Jean-Yves Lefort -- Jean-Yves Lefort jylefort@brutele.be http://lefort.homeunix.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message