From owner-freebsd-questions@FreeBSD.ORG Sat Apr 24 01:06:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFDAC16A4CE for ; Sat, 24 Apr 2004 01:06:59 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B0DF43D1F for ; Sat, 24 Apr 2004 01:06:58 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) i3O85bpm008585 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 24 Apr 2004 09:05:37 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i3O85Z55008584; Sat, 24 Apr 2004 09:05:35 +0100 (BST) (envelope-from matthew) Date: Sat, 24 Apr 2004 09:05:35 +0100 From: Matthew Seaman To: Duane Winner Message-ID: <20040424080535.GA7994@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Duane Winner , freebsd-questions@freebsd.org References: <40897F4A.30200@att.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <40897F4A.30200@att.net> User-Agent: Mutt/1.5.6i X-Virus-Scanned: clamd / ClamAV version devel-20040420, clamav-milter version 0.70k X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: stupid sendmail question (did not issue MAIL/EXPN/VRFY/ETRN) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2004 08:07:00 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 23, 2004 at 04:40:42PM -0400, Duane Winner wrote: > I am getting this in my /var/log/maillog: >=20 > Apr 23 15:23:39 library sm-mta[169]: i3NJNd8g000169: localhost=20 > [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA Which means that the Java side did not issue any SMTP commands after connecting and issuing an EHLO or HELO. Which perhaps indicates that the sendmail side didn't respond with the expected '250-smtp.example.com Hello ...' and following list of capabilities in response. What do you see if you telnet to localhost port 25 and then type in an EHLO command? It should look something like this, although you probably won't have the AUTH or STARTTLS parts unless you've modified your sendmail: % telnet localhost 25 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 220 smtp.infracaninophile.co.uk ESMTP Sendmail 8.12.11/8.12.11; Sat, 24= Apr 2004 08:59:29 +0100 (BST) EHLO localhost 250-smtp.infracaninophile.co.uk Hello localhost [127.0.0.1], pleased to= meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN 250-STARTTLS 250-DELIVERBY 250 HELP quit 221 2.0.0 smtp.infracaninophile.co.uk closing connection Connection closed by foreign host. Nb. That sequence generates precisely the sort of log message you saw: Apr 24 08:59:41 happy-idiot-talk sm-mta[8543]: i3O7xTra008543: localhos= t [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to IPv4 > when my Tomcat serlvets attempt to send an email from my web app. >=20 > I only want sendmail listing on 127.0.0.1:25, and the web app is=20 > configured to use 127.0.0.1 as it's mail server. It works fine on my Red= =20 > Hat implementation, but I'm guessing FreeBSD sendmail is tightened up=20 > even more. >=20 > I know that sendmail is working, because I can use the 'mail' MUA and=20 > send myself a quick email. >=20 > I'm guessing this is a little different that just going #mail blahblah,= =20 > because I'm doing mail relaying? But why would sendmail be denying mail= =20 > relaying from itself (localhost). >=20 > Is this fairly simple to address? I know its probably stupid, but I=20 > haven't played with sendmail in about 3 years, and never completely=20 > understood then either. Hmmm... in server.xml I have: mail.smtp.host smtp.infracaninophile.co.uk mail.smtp.port 587 and in the per-application web.xml there is: mail/Session javax.mail.Session Container and that seems to work very well. This is from within a jail, and speaking to sendmail in the host environment, which is why it can't use a connection via localhost. Port 587 is 'submission' -- the port designated for local submission on new messages by the MUA, distinguishing it from port 25 intended now for MTA to MTA transfer of messages. However, that's a new standard that has not yet reached universal acceptance, so speaking on port 25 should work as well. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAih/PdtESqEQa7a0RAh4aAKCdl2ceZ7vecpZkHE+90aXLls/UHwCff6W/ DN+W85GQiPjLWjQs1bQ2JCI= =2obM -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh--