From owner-freebsd-questions@FreeBSD.ORG Mon Apr 9 23:37:17 2007 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4E1716A400 for ; Mon, 9 Apr 2007 23:37:17 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232]) by mx1.freebsd.org (Postfix) with ESMTP id 68BD313C45E for ; Mon, 9 Apr 2007 23:37:17 +0000 (UTC) (envelope-from kurt.buff@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so1205008nza for ; Mon, 09 Apr 2007 16:37:16 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BhDXkcCZ7Fi2Xj1KU2C0X16vEOYrSoy00GVjG3APcj9N8xqh1aNpagpktBVIiRR5zddMZBeAYfruA3ZXc1LpEa2h3vT7++K2FRcExzv0mt1rvhWS5LiG9yxc4C06tjzZyV5WkNMv6WuMLKzbWUURDXEvuWET5JhDSJfnCHZbkmE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bOXjxdGBj3DAgJK3qA6+Z6MbAsj1INrVRdnrGUJp6UYiPrBpN9X2e1/QVJfdbEOdceoHpIpiBcbvFA1svuH4m121KJC7gDRXehUCHrJlkRMVoma7OqdDHCLXQDPH/Di2pP0kQN6pM+m3UDZMF2BghKUe4KrLw8C+Y1+qx3w66Lc= Received: by 10.114.137.2 with SMTP id k2mr1143186wad.1176161835450; Mon, 09 Apr 2007 16:37:15 -0700 (PDT) Received: by 10.114.77.19 with HTTP; Mon, 9 Apr 2007 16:37:15 -0700 (PDT) Message-ID: Date: Mon, 9 Apr 2007 16:37:15 -0700 From: "Kurt Buff" To: questions@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Subject: Re: mail and system-generated events X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 23:37:17 -0000 Hate replying to myself, but I seem to have come up with a workaround. I hope it's actually a good fix. As part of my efforts earlier (deinstall and reinstall postfix) I also searched for and rm'ed all of the sendmail binaries I could find, before the reinstall. That broke it in a 'better' way, for some value of better: atrun[1032]: exec failed for mail command: No such file or directory I went looking at my other FreeBSD boxes, and found this: tophat# ll /usr/sbin/sendmail lrwxrwxrwx 1 root wheel 21 Nov 22 2005 /usr/sbin/sendmail -> /usr/sbin/mailwrapper This was missing on my problem system, so I put in the link per the above, and all now seems quite happy. Someone then pointed me at 'man mailwrapper'. Still doesn't tell me how I botched it, but it surely does tell me that I fixed it. Kurt On 4/9/07, Kurt Buff wrote: > All, > > I've been putting together a FreeBSD 6.2 box with > postfix/spamassassin/clamav/maia-mailguard, and have somehow munged > things a bit. > > I've got it all pretty well configured, except for stuff generated by > cron/at/daily periodic, which were working before, but are not working > now. I've deinstalled and reinstalled postfix, with no joy. It looks > as if the box is still using sendmail instead of postfix. If I submit > mail via telnet/blat/whatever remotely, it works just fine - it's only > the system-generated stuff that's misbehaving currently. > > Can anyone make a suggestion on how to correct this? > > Thanks, > > Kurt > > Here's the output from ' at -f /root/mailme -m 12:20' > Apr 9 12:20:00 mx1 atrun[1032]: exec failed for mail command: No such > file or directory > > Here's the entry in my syslog from the nightly run: > > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18st014622: from=root, > size=458, class=0, nrcpts=1, > msgid=<200704091001.l39A18st014622@mx1.example.com>, > relay=root@localhost > Apr 9 03:01:08 mx1 postfix/smtpd[14643]: connect from > localhost.example.com[127.0.0.1] > Apr 9 03:01:08 mx1 postfix/smtpd[14643]: NOQUEUE: reject: RCPT from > localhost.example.com[127.0.0.1]: 550 5.1.1 : > Recipient address rejected: User unknown in relay recipient table; > from= to= proto=ESMTP > helo= > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18st014622: to=root, > ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, > pri=30458, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18st014622: l39A18su014622: > DSN: User unknown > Apr 9 03:01:08 mx1 postfix/smtpd[14643]: NOQUEUE: reject: RCPT from > localhost.example.com[127.0.0.1]: 550 5.1.1 : > Recipient address rejected: User unknown in relay recipient table; > from=<> to= proto=ESMTP helo= > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18su014622: to=root, > delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31482, > relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18su014622: l39A18sv014622: > return to sender: User unknown > Apr 9 03:01:08 mx1 postfix/smtpd[14643]: NOQUEUE: reject: RCPT from > localhost.example.com[127.0.0.1]: 550 5.1.1 > : Recipient address rejected: User unknown > in relay recipient table; from=<> to= > proto=ESMTP helo= > Apr 9 03:01:08 mx1 sendmail[14653]: l39A18l4014653: from=root, > size=1535, class=0, nrcpts=1, > msgid=<200704091001.l39A18l4014653@mx1.example.com>, > relay=root@localhost > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18sv014622: to=postmaster, > delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=32506, > relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18su014622: Losing > ./qfl39A18su014622: savemail panic > Apr 9 03:01:08 mx1 sendmail[14622]: l39A18su014622: SYSERR(root): > savemail: cannot save rejected email anywhere > Apr 9 03:01:08 mx1 postfix/smtpd[14643]: disconnect from > localhost.example.com[127.0.0.1] >