From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Hu8SC-0007Qf-K7 for garchives@archives.gentoo.org; Fri, 01 Jun 2007 14:50:13 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l51Emp4F017647; Fri, 1 Jun 2007 14:48:51 GMT Received: from gabriel.sub.uni-goettingen.de (gabriel.sub.uni-goettingen.de [134.76.163.126]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l51EiUEv012894 for ; Fri, 1 Jun 2007 14:44:31 GMT Received: by gabriel.sub.uni-goettingen.de (Postfix, from userid 8) id 9D1633246B5; Sun, 3 Jun 2007 12:52:22 +0200 (CEST) Received: from localhost (unknown [134.76.161.221]) by gabriel.sub.uni-goettingen.de (Postfix) with ESMTP id 1BB4B3246B4 for ; Sun, 3 Jun 2007 12:52:22 +0200 (CEST) Date: Fri, 1 Jun 2007 16:44:29 +0200 From: Hans-Werner Hilse To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] postfix - how to test Message-Id: <20070601164429.295d1336.hilse@web.de> In-Reply-To: <46602D64.1080106@omesc.com> References: <466014D6.3070103@omesc.com> <1180703253.5404.27.camel@blackwidow.nbk> <20070601153558.571e0223.hilse@web.de> <46602D64.1080106@omesc.com> X-Mailer: Sylpheed 2.4.1 (GTK+ 2.10.12; i586-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on gabriel.sub.uni-goettingen.de X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=ham version=2.64 X-Archives-Salt: 1ec10043-8f72-4966-92e1-981b405192e9 X-Archives-Hash: fb677f20489478f0411d719051783753 Hi, On Fri, 01 Jun 2007 16:29:56 +0200 Johannes Skov Frandsen wrote: > Well I guess I should have expected it to rather simple to test. But I > have never tried to configure a mailserver before > hence my somewhat naive question. > > So what I did was to change my smtp server in thunderbird to use > localhost (with my postfix server running) and the send a > mail. This failed! Thunderbirds just claims that it could not connect > to the server... > > I'm obvious doing something really simple completely wrong, but > what? Start with telnet or even better netcat ("nc") and try connecting directly, e.g. "nc localhost smtp" (replace "nc" by "telnet" if you have that installed -- you might need to install one of the utilities, in that case, chose netcat). The server should respond with "220 ESMTP ". If not, check - whether "localhost" can be resolved (your /etc/hosts might be borked) - if there's a overly jealous firewall active, that doesn't allow this traffic. You can then try talking to your mail server directly (simple SMTP is fast to learn), e.g. enter ---snip MAIL FROM: blah@blubb.org RCPT TO: myuser@mydomain.com DATA Subject: Test this is a test. . QUIT ---snip (server will send replies not printed here) Do the same coming from the outside, in order to make sure that those attempts are blocked. Otherwise you'll create an open relay and you'll be blocked very soon on several other hosts. If you're not sure what is wrong, that might warrant a look into postfix' log files (below /var/log). -hwh -- gentoo-user@gentoo.org mailing list