Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 16:37:15 -0700
From:      "Kurt Buff" <kurt.buff@gmail.com>
To:        questions@freebsd.org
Subject:   Re: mail and system-generated events
Message-ID:  <a9f4a3860704091637h6a669625k898482d2c0a9050a@mail.gmail.com>
In-Reply-To: <a9f4a3860704091300w5ffb0b56g8dbd83e491160185@mail.gmail.com>
References:  <a9f4a3860704091300w5ffb0b56g8dbd83e491160185@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <kurt.buff@gmail.com> 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 <root@mx1.example.com>:
> Recipient address rejected: User unknown in relay recipient table;
> from=<root@mx1.example.com> to=<root@mx1.example.com> proto=ESMTP
> helo=<mx1.example.com>
> 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 <root@mx1.example.com>:
> Recipient address rejected: User unknown in relay recipient table;
> from=<> to=<root@mx1.example.com> proto=ESMTP helo=<mx1.example.com>
> 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
> <postmaster@mx1.example.com>: Recipient address rejected: User unknown
> in relay recipient table; from=<> to=<postmaster@mx1.example.com>
> proto=ESMTP helo=<mx1.example.com>
> 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]
>



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