From owner-freebsd-questions Thu Feb 8 8:37: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from dsl-64-193-218-89.telocity.com (dsl-64-193-218-89.telocity.com [64.193.218.89]) by hub.freebsd.org (Postfix) with SMTP id 1D4ED37B491 for ; Thu, 8 Feb 2001 08:36:43 -0800 (PST) Received: (qmail 24679 invoked by uid 1000); 8 Feb 2001 16:33:34 -0000 Date: Thu, 8 Feb 2001 10:33:34 -0600 From: Lucas Bergman To: David Cc: questions@freebsd.org Subject: Re: relaying with qmail (was: courier-imap/qmail/tcpserver) Message-ID: <20010208103334.B15630@billygoat.slb.to> Reply-To: lucas@slb.to References: <20010207223917.A493@datasphereweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010207223917.A493@datasphereweb.com>; from davidd@datasphereweb.com on Wed, Feb 07, 2001 at 10:39:17PM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is, as you say, off-topic, so if you choose to respond to me, you should probably do so off the list. > Everything works fine receiving mail through imap/qmail but I'm > unable to send mail. I just keep getting "domain is not in rcpthosts > file." In other words, relaying doesn't work. What I mean is, if someone logs into your SMTP server (through IMAP or otherwise!) and tries to send mail to a machine other than the localhost, qmail freaks out. Right? The accepted fix for this is to run qmail-smtpd through ucspi-tcp (specifically, tcpserver) and set the RELAYCLIENT environment variable if the connecting client is someone authorized to relay mail through your server. This is what I use; it works fine, though it's not what I'd call easy for newbies to setup. Or, you could put every host any of your clients will ever send mail to in the file /var/qmail/control/rcpthosts. This is almost never practical. The final "fix," used by a disturbing number of sites, is to turn off RCPT host checking (rm /var/qmail/control/{,more}rcpthosts), so all mail to/from anywhere is accepted by your server. If you do this, you *will* be used as a spam pipeline, and because of this, mail through your site *will* eventually be rejected by many hosts. If you've tried to setup some solution and failed, please send me a little more information, and I'll try to help sort it out. Failing that, there's a qmail-specific mailing list that might help, too. As I've implied, I'll bet this has nothing to with your IMAP setupu. qmail's a great program, but getting it setup properly (in a non-trivial environment) requires a certain mentality. Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message