sendmail: File descriptors missing on startup - 4.00.0a10-1

Ant La Porte ant at DVERE.NET
Thu Oct 10 19:44:31 IST 2002


> At 14:25 09/10/2002, you wrote:
>> > At 09:06 09/10/2002, you wrote:
>> >>Over the past few days I have been trying out MailScanner on OpenBSD
>> >> 3.1 with f-prot and SpamAssassin, nice...
>> >>I had to make a few minor changes to bin/check_mailscanner to
>> account
>> >> for OBSD ps and paths.
>> >>However I've started to get the following in maillog after upgrading
>> >> from 4.00.0a9
>> >>sendmail[14719]: File descriptors missing on startup: stdout,
>> stderr;
>> >> Bad file descriptor
>> >>This is cropping up as MailScanner hands each message back to
>> sendmail
>> >> for delivery.
>> >
>> > What happens if you change the definition of Sendmail2 to
>> >          sendmail >/dev/null 2>&1
>> > in the mailscanner.conf file?
>> >
>>
>>MailScanner[20323]: Syntax error in line 82, file "sendmail" for
>> sendmail2 does not exist
>>
>>But after reverting to "Sendmail2 = /usr/sbin/sendmail" and restarting
>> I haven't seen the error appear again yet. In case I somehow messed
>> something up while upgrading I'll clear it all out and start a fresh
>> just to be on the safe side.
>
> Sorry, I meant
>          /usr/sbin/sendmail >/dev/null 2>&1
> It's possible that it doesn't appear for the first few hours, but then
> starts appearing after MailScanner has re-run itself (which it does to
> prevent resource leaks).
>

In both formats I got similar errors. I am starting the second instance of
sendmail from OBSD's /etc/rc.local with the command:
     echo -n ' sendmail-2';   /usr/sbin/sendmail -q15m >/dev/null 2>&1 &
keeping it as close to that used in /etc/rc to launch the first instance
as possible.

I have now set up MailScanner on a nice fresh install of OBSD 3.1 and
haven't had the original problem occur again so I guess it was my bad.

One minor issue is persistance of the pid files in /opt/MailScanner/var,
I've quite a collection now.

--
Ant La Porte - Dvere Network Services
Linux and *BSD Systems and Support - http://www.dvere.net



More information about the MailScanner mailing list