From owner-freebsd-hackers Thu Jan 3 11: 9:14 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from scanner.secnap.net (scanner.secnap.net [216.241.67.74]) by hub.freebsd.org (Postfix) with ESMTP id 6A75437B41C for ; Thu, 3 Jan 2002 11:09:09 -0800 (PST) Received: from MIKELT ([10.1.1.40]) by scanner.secnap.net (8.11.6/8.11.5) with SMTP id g03J98357014 for ; Thu, 3 Jan 2002 14:09:08 -0500 (EST) (envelope-from scheidell@secnap.net) Message-ID: <002801c1948a$0d452ec0$2801010a@MIKELT> From: "Michael Scheidell" To: Subject: Sendmail or elm stoped working for non-root in 4.4-STABLE Date: Thu, 3 Jan 2002 14:08:38 -0500 Organization: Secnap Network Security, LLC. MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Please point me in right direction. 'elm' in FBSD 4.3, 4.4-REL worked for non root. Now, elm sometimes fails on 4.4-STABLE, for non-root it fails using the OLD sendmail.cf, and the new one generated by make world. /usr/sbin/sendmail is link to /usr/sbin/mailwrapper ls -l /etc/mail/mailer.conf looks fine. -rw-r--r-- 1 root wheel 316 Apr 21 2001 /etc/mail/mailer.conf failure is Failed: /usr/sbin/sendmail: Bad file descriptor I copied over anolder version of sendmail (which I know works) and it still failed. there is no entry in /var/log/messages or /var/log/maillog elm is sgid mail (like before: ls -l /usr/local/bin/elm -rwxr-sr-x 1 root mail 395804 Sep 25 11:37 /usr/local/bin/elm just like on older systems I looked for permissions problems, and, just wanted a general look around so used the '-Voyer' mode for elm: elm -V funny thing. it worked, with -V option to elm, it sent the mail for non root user. sendmail -oit user@host.tld < laptops.txt works. elm -s "test" scheidell@fdma.com < laptops.txt failes: Failed: /usr/sbin/sendmail: Bad file descriptor elm -V -s "test" scheidell@fdma.com < laptops.txt works: Sending mail... scheidell@fdma.com... Connecting to ns.fdma.com. via esmtp... 220 mail.fdma.com ESMTP Sendmail 8.11.3/8.11.3; Thu, 3 Jan 2002 13:40:56 -0500 (EST) >>> EHLO hackertrap.somehost.com 250-mail.fdma.com Hello [12.40.255.159], pleased to meet you 250-ENHANCEDSTATUSCODES 250-8BITMIME 250-SIZE 250-ONEX 250-ETRN 250-XUSR 250 HELP >>> MAIL From: SIZE=1192 250 2.1.0 ... Sender ok >>> RCPT To: 250 2.1.5 ... Recipient ok >>> DATA 354 Enter mail, end with "." on a line by itself >>> . 250 2.0.0 g03IeuW37448 Message accepted for delivery scheidell@fdma.com... Sent (g03IeuW37448 Message accepted for delivery) Closing connection to ns.fdma.com. >>> QUIT 221 2.0.0 mail.fdma.com closing connection Mail to scheidell@fdma.com... Mail sent! so, what should I be looking for? -- Michael Scheidell Secnap Network Security, LLC scheidell@secnap.net 1+(561) 368-9561 See updated IT Security News at http://www.fdma.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message