Your qmail-smtpd doesn't seem to know that the client you are connecting from
is a local machine, and therfore it should relay mail from from that client.
(When the recipient's address is outside your local domain, that's relaying)
To tell qmail-smtpd to automatically relay anything that comes in from a particular
SMTP session, qmail-smtpd needs to see a RELAYCLIENT variable in it's
environment.

if smtp line in your /etc/inetd.conf has tcp-env in it, something like this:

smtp stream tcp nowait.200 qmaild /usr/sbin/tcpd /var/qmail/bin/tcp-env 
/var/qmail/bin/qmail-smtpd

Then, you need to tell tcp-env to setup that variable before it calls qmail-smtp.  Add
this to your /etc/hosts.allow file to do that:

tcp-env: 192.168.1., 127.0.0. : setenv = RELAYCLIENT

(Change the IP addresses to the IP's of clients whose mail you want to relay, and
don't forget their trailing dots.)

Eric




kapil sharma wrote:

>
> I am running qmail with redhat 6.1. When I try to send a message to some outside 
>domain then it
> gives me the error
> "553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)"
> Folowing is the session :
>
>
> bash$ telnet 216.6.15.209 25
> Trying 216.6.15.209...
> Connected to 216.6.15.209.
> Escape character is '^]'.
> 220 whlinux021.webhosting.com ESMTP
> mail from:[EMAIL PROTECTED]
> 250 ok
> rcpt to:[EMAIL PROTECTED]
> 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
>
> I have also make entry for baniya.com in rcpthosts! Please advise?
>
> --
> Kapil Sharma
> Acube-software
> [EMAIL PROTECTED]
> http://www.acubesoftware.com
>
>

--
NEEDHAM'S ELECTRONICS
Device Programmers
(916) 924-8037 (Voice)
http://www.needhams.com







Reply via email to