Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Feb 2001 10:33:34 -0600
From:      Lucas Bergman <lucas@slb.to>
To:        David <davidd@datasphereweb.com>
Cc:        questions@freebsd.org
Subject:   Re: relaying with qmail (was: courier-imap/qmail/tcpserver)
Message-ID:  <20010208103334.B15630@billygoat.slb.to>
In-Reply-To: <20010207223917.A493@datasphereweb.com>; from davidd@datasphereweb.com on Wed, Feb 07, 2001 at 10:39:17PM -0800
References:  <20010207223917.A493@datasphereweb.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010208103334.B15630>